mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-10 17:53:17 +00:00
Upd examples.
This commit is contained in:
parent
7d75813f21
commit
801ca1558e
4 changed files with 14 additions and 25 deletions
|
|
@ -7,6 +7,7 @@ from aiogram import Bot, types
|
|||
from aiogram.dispatcher import Dispatcher
|
||||
from aiogram.types import ParseMode
|
||||
from aiogram.utils.emoji import emojize
|
||||
from aiogram.utils.executor import start_pooling
|
||||
from aiogram.utils.markdown import text, bold, italic, code
|
||||
|
||||
# Configure bot here
|
||||
|
|
@ -66,7 +67,4 @@ async def main():
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
loop.run_until_complete(main())
|
||||
except KeyboardInterrupt:
|
||||
loop.stop()
|
||||
start_pooling(dp, loop=loop, skip_updates=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue