mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
Webhook docs (#1248)
* Added documentation for polling/webhook modes * Added changelog * Added changelog
This commit is contained in:
parent
62d4b9014c
commit
b311d59fce
37 changed files with 2595 additions and 692 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue