dispatchTelegramCommand no-break space fix.

This commit is contained in:
Shelomentsev Dmitriy 2016-03-13 02:15:48 +03:00
parent 196d1fcc3d
commit 3d89f6b284

View file

@ -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,