mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Apply suggestions from code review
This commit is contained in:
parent
9d2f7c02a4
commit
67a52b2e98
@ -1157,7 +1157,7 @@ def set_chat_title(token, chat_id, title):
|
||||
def set_my_description(token, description=None, language_code=None):
|
||||
method_url = r'setMyDescription'
|
||||
payload = {}
|
||||
if description:
|
||||
if description is not None:
|
||||
payload['description'] = description
|
||||
if language_code:
|
||||
payload['language_code'] = language_code
|
||||
|
Loading…
Reference in New Issue
Block a user