mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Update README.md
This commit is contained in:
parent
cc4fddf7b0
commit
bc62df75d6
1 changed files with 4 additions and 2 deletions
|
@ -39,7 +39,8 @@ fn main() {
|
|||
<h3>aiogram (Python)</h3>
|
||||
<pre lang="python">
|
||||
import logging
|
||||
from aiogram import Bot, Dispatcher, executor, types
|
||||
from aiogram import Bot, Dispatcher, executor,
|
||||
types
|
||||
<br>
|
||||
API_TOKEN = 'BOT TOKEN HERE'
|
||||
<br>
|
||||
|
@ -56,7 +57,8 @@ async def cats(message: types.Message):
|
|||
<br>
|
||||
@dp.message_handler()
|
||||
async def echo(message: types.Message):
|
||||
await message.reply(message.text, reply=False)
|
||||
await message.reply
|
||||
(message.text, reply=False)
|
||||
<br>
|
||||
executor.start_polling(dp, skip_updates=True)
|
||||
</pre>
|
||||
|
|
Loading…
Add table
Reference in a new issue