X Tutup
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions telegram/ext/commandhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def check_update(self, update):
if message.text:
command = message.text[1:].split(' ')[0].split('@')
command.append(
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

if self.filters is None:
res = True
Expand All @@ -109,7 +109,7 @@ def check_update(self, update):
res = self.filters(message)

return res and (message.text.startswith('/') and command[0] == self.command
and command[1].lower() == update.message.bot.username.lower())
and command[1].lower() == message.bot.username.lower())
else:
return False

Expand Down
X Tutup