mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
Upd examples.
This commit is contained in:
parent
7d75813f21
commit
801ca1558e
4 changed files with 14 additions and 25 deletions
|
|
@ -8,6 +8,7 @@ import logging
|
|||
from aiogram import Bot, types
|
||||
from aiogram.dispatcher import Dispatcher
|
||||
from aiogram.types import ParseMode
|
||||
from aiogram.utils.executor import start_pooling
|
||||
from aiogram.utils.markdown import *
|
||||
|
||||
API_TOKEN = 'BOT TOKEN HERE'
|
||||
|
|
@ -39,7 +40,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