Update telebot/apihelper.py

This commit is contained in:
_run 2023-03-15 05:48:16 +04:00 committed by GitHub
parent 67a52b2e98
commit 535a14ca0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1159,7 +1159,7 @@ def set_my_description(token, description=None, language_code=None):
payload = {}
if description is not None:
payload['description'] = description
if language_code:
if language_code is not None:
payload['language_code'] = language_code
return _make_request(token, method_url, params=payload, method='post')