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
1 changed files with 1 additions and 1 deletions

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