X Tutup
Skip to content

Commit a409fc5

Browse files
committed
Improve raise of empty chat_id
1 parent 69d705a commit a409fc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telegram/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def decorator(self, *args, **kwargs):
138138
"""
139139
url, data = func(self, *args, **kwargs)
140140

141-
if not kwargs.get('chat_id'):
141+
if not data.get('chat_id'):
142142
raise TelegramError('Invalid chat_id.')
143143

144144
if kwargs.get('reply_to_message_id'):

0 commit comments

Comments
 (0)
X Tutup