diff --git a/README.md b/README.md index 8e062033..cde38f3f 100644 --- a/README.md +++ b/README.md @@ -23,45 +23,8 @@ ## An echo bot - - - - - -
-

async-telegram-bot (Rust)

-
-const API_TOKEN: &str = "BOT TOKEN HERE";
-
+```rust fn main() { let bot = Bot::new(API_TOKEN).bla().bla(); } -
-
-

aiogram (Python)

-
-import logging
-from aiogram import Bot, Dispatcher, executor,
-  types
-
-API_TOKEN = 'BOT TOKEN HERE' -
-logging.basicConfig(level=logging.INFO) -
-bot = Bot(token=API_TOKEN) -dp = Dispatcher(bot) -
-@dp.message_handler(regexp='(^cat[s]?$|puss)') -async def cats(message: types.Message): - with open('data/cats.jpg', 'rb') as photo: - await message.reply_photo - (photo, caption='Cats are here 😺') -
-@dp.message_handler() -async def echo(message: types.Message): - await message.reply - (message.text, reply=False) -
-executor.start_polling(dp, skip_updates=True) -
-
+```