-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Description
Steps to reproduce
-
Make a bot with a CommandHandler
-
Send a command with \n after it without space! Like this:
/feedback
some text
Expected behaviour
Command should not be ignored...
Actual behaviour
...but it is ignored instead
Configuration
Operating System:
Gentoo
Version of Python, python-telegram-bot & dependencies:
$ python -m telegram
Traceback (most recent call last):
File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/kisik21/Projects/Nadeko/.virtualenv/lib64/python3.6/site-packages/telegram/__main__.py", line 3, in <module>
import urllib3
ModuleNotFoundError: No module named 'urllib3'
Okay, I installed urllib3...
python-telegram-bot 6.1.0
urllib3 1.22
certifi 2017.04.17
future 0.16.0
Python 3.6.1 (default, Sep 25 2017, 22:51:25) [GCC 5.4.0]
Logs
Don't think this applies here.
The issue is probably the CommandHandler - I read the code, it thinks of \n as a part of command string. We need to strip these while detecting command names, I think...
Metadata
Metadata
Assignees
Labels
No labels