mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
add default None for get_my_commands parameters scope and language_code sync\async, add examples for bot.set_my_commands
This commit is contained in:
@ -1899,8 +1899,8 @@ class TeleBot:
|
||||
"""
|
||||
return apihelper.delete_chat_photo(self.token, chat_id)
|
||||
|
||||
def get_my_commands(self, scope: Optional[types.BotCommandScope],
|
||||
language_code: Optional[str]) -> List[types.BotCommand]:
|
||||
def get_my_commands(self, scope: Optional[types.BotCommandScope]=None,
|
||||
language_code: Optional[str]=None) -> List[types.BotCommand]:
|
||||
"""
|
||||
Use this method to get the current list of the bot's commands.
|
||||
Returns List of BotCommand on success.
|
||||
@ -3415,4 +3415,4 @@ class TeleBot:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -2443,8 +2443,8 @@ class AsyncTeleBot:
|
||||
"""
|
||||
return await asyncio_helper.delete_chat_photo(self.token, chat_id)
|
||||
|
||||
async def get_my_commands(self, scope: Optional[types.BotCommandScope],
|
||||
language_code: Optional[str]) -> List[types.BotCommand]:
|
||||
async def get_my_commands(self, scope: Optional[types.BotCommandScope]=None,
|
||||
language_code: Optional[str]=None) -> List[types.BotCommand]:
|
||||
"""
|
||||
Use this method to get the current list of the bot's commands.
|
||||
Returns List of BotCommand on success.
|
||||
|
Reference in New Issue
Block a user