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 description in the given language as the class BotDescription using the method getMyDescription.

This commit is contained in:
coder2020official
2023-03-11 15:35:00 +04:00
parent c84b771e5a
commit 65dcd67140
5 changed files with 63 additions and 0 deletions

View File

@@ -1161,6 +1161,13 @@ def set_my_description(token, description=None, language_code=None):
payload['language_code'] = language_code
return _make_request(token, method_url, params=payload, method='post')
def get_my_description(token, language_code=None):
method_url = r'getMyDescription'
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 = {}