python-telegram-bot/telegram/utils
Jacob Bom faddb92395 Clean up Bot code a bit (#673)
* Clean up Bot code a bit

- Move decorators to module. It really wasn't clear how decorators inside classes work, and why they didn't have a self parameter, but still wasn't static. This also makes them effectively private without having to underscore them, which I think we should have done long time ago atm. Note that this might break backwards compatibility slightly (only if people are daft enough to have used the decorators themselves)
- Don't call _message_wrapper directly. Ever. Instead always use the message decorator, since it's what it's there for. Closes #627
- Don't use the message decorator if the method isn't supposed to return a message. The decorator could handle values like True (which is often the return value), but to someone reading the code, it seems like it's a message returning method even when it wasn't.
- Always document timeout and **kwargs
- Log all methods

* Add test to make sure timeout propagates properly despite decorators
2017-06-18 12:14:24 +02:00
..
__init__.py Merging testing 2015-09-04 23:21:31 -03:00
botan.py move botan to contrib 2016-05-28 09:12:10 +02:00
deprecate.py Better deprecation warnings 2017-05-25 13:53:35 +02:00
helpers.py sanitize html and markdown in Message.text_html and text_markdown (#621) 2017-05-19 19:11:40 +02:00
promise.py When Promise running throws an uncaught exception - log it 2017-06-03 16:34:03 +03:00
request.py Clean up Bot code a bit (#673) 2017-06-18 12:14:24 +02:00
webhookhandler.py Class methods (#362) 2016-09-20 06:36:55 +02:00