mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 22:45:09 +01:00
Improve raise of empty chat_id
This commit is contained in:
parent
69d705a99f
commit
a409fc511d
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ class Bot(TelegramObject):
|
|||
"""
|
||||
url, data = func(self, *args, **kwargs)
|
||||
|
||||
if not kwargs.get('chat_id'):
|
||||
if not data.get('chat_id'):
|
||||
raise TelegramError('Invalid chat_id.')
|
||||
|
||||
if kwargs.get('reply_to_message_id'):
|
||||
|
|
Loading…
Reference in a new issue