Added documentation for polling/webhook modes

This commit is contained in:
Alex Root Junior 2023-08-06 16:55:40 +03:00
parent 62d4b9014c
commit e5520c39c8
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
36 changed files with 2594 additions and 692 deletions

View file

@ -39,7 +39,7 @@ def is_bot_token(value: str) -> Union[bool, Dict[str, Any]]:
return True
@main_router.message(Command(commands=["add"], magic=F.args.func(is_bot_token)))
@main_router.message(Command("add", magic=F.args.func(is_bot_token)))
async def command_add_bot(message: Message, command: CommandObject, bot: Bot) -> Any:
new_bot = Bot(token=command.args, session=bot.session)
try: