mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-02-16 18:31:45 +01:00
dispatchTelegramCommand no-break space fix.
This commit is contained in:
parent
196d1fcc3d
commit
3d89f6b284
1 changed files with 1 additions and 1 deletions
|
@ -548,7 +548,7 @@ class Dispatcher:
|
|||
command
|
||||
"""
|
||||
|
||||
command = update.message.text.split(' ')[0][1:].split('@')[0]
|
||||
command = update.message.text.decode('utf-8').split()[0][1:].split('@')[0]
|
||||
|
||||
if command in self.telegram_command_handlers:
|
||||
self.dispatchTo(self.telegram_command_handlers[command], update,
|
||||
|
|
Loading…
Add table
Reference in a new issue