We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3b75d9 commit 752b647Copy full SHA for 752b647
telegram/ext/commandhandler.py
@@ -99,7 +99,7 @@ def check_update(self, update):
99
if message.text:
100
command = message.text[1:].split(' ')[0].split('@')
101
command.append(
102
- update.message.bot.username) # in case the command was send without a username
+ message.bot.username) # in case the command was send without a username
103
104
if self.filters is None:
105
res = True
@@ -109,7 +109,7 @@ def check_update(self, update):
109
res = self.filters(message)
110
111
return res and (message.text.startswith('/') and command[0] == self.command
112
- and command[1].lower() == update.message.bot.username.lower())
+ and command[1].lower() == message.bot.username.lower())
113
else:
114
return False
115
0 commit comments