2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-31 22:35:36 +00:00

Revamp bot commands and bot command scopes

Closes #777
This commit is contained in:
Dan
2022-03-28 13:23:12 +02:00
parent aa41ac5fd2
commit 7bfcd5ac5f
16 changed files with 543 additions and 95 deletions

View File

@@ -288,6 +288,8 @@ def pyrogram_api():
set_game_score
get_game_high_scores
set_bot_commands
get_bot_commands
delete_bot_commands
""",
authorization="""
Authorization
@@ -395,8 +397,8 @@ def pyrogram_api():
VoiceChatEnded
VoiceChatMembersInvited
""",
bots_keyboard="""
Bots & Keyboards
bot_keyboards="""
Bot keyboards
ReplyKeyboardMarkup
KeyboardButton
ReplyKeyboardRemove
@@ -407,7 +409,18 @@ def pyrogram_api():
CallbackQuery
GameHighScore
CallbackGame
""",
bot_commands="""
Bot commands
BotCommand
BotCommandScope
BotCommandScopeDefault
BotCommandScopeAllPrivateChats
BotCommandScopeAllGroupChats
BotCommandScopeAllChatAdministrators
BotCommandScopeChat
BotCommandScopeChatAdministrators
BotCommandScopeChatMember
""",
input_media="""
Input Media

View File

@@ -51,18 +51,31 @@ Messages & Media
{messages_media}
Bots & Keyboards
----------------
Bot keyboards
-------------
.. autosummary::
:nosignatures:
{bots_keyboard}
{bot_keyboards}
.. toctree::
:hidden:
{bots_keyboard}
{bot_keyboards}
Bot commands
-------------
.. autosummary::
:nosignatures:
{bot_commands}
.. toctree::
:hidden:
{bot_commands}
Input Media
-----------