X Tutup
Skip to content

Commit 752b647

Browse files
evgfilim1jh0ker
authored andcommitted
1 parent f3b75d9 commit 752b647

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

telegram/ext/commandhandler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def check_update(self, update):
9999
if message.text:
100100
command = message.text[1:].split(' ')[0].split('@')
101101
command.append(
102-
update.message.bot.username) # in case the command was send without a username
102+
message.bot.username) # in case the command was send without a username
103103

104104
if self.filters is None:
105105
res = True
@@ -109,7 +109,7 @@ def check_update(self, update):
109109
res = self.filters(message)
110110

111111
return res and (message.text.startswith('/') and command[0] == self.command
112-
and command[1].lower() == update.message.bot.username.lower())
112+
and command[1].lower() == message.bot.username.lower())
113113
else:
114114
return False
115115

0 commit comments

Comments
 (0)
X Tutup