1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Added the ability to get the current bot short description in the given language as the class BotShortDescription using the method getMyShortDescription.

This commit is contained in:
coder2020official
2023-03-11 15:46:35 +04:00
parent 9b81a29a6a
commit 09e4a2a437
5 changed files with 64 additions and 1 deletions

View File

@@ -1178,6 +1178,13 @@ def set_my_short_description(token, short_description=None, language_code=None):
payload['language_code'] = language_code
return _make_request(token, method_url, params=payload, method='post')
def get_my_short_description(token, language_code=None):
method_url = r'getMyShortDescription'
payload = {}
if language_code:
payload['language_code'] = language_code
return _make_request(token, method_url, params=payload)
def get_my_commands(token, scope=None, language_code=None):
method_url = r'getMyCommands'
payload = {}