1
0
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:
_run 2023-03-15 05:46:03 +04:00 committed by GitHub
parent 9d2f7c02a4
commit 67a52b2e98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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