python-telegram-bot/telegram
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
..
contrib fix yapf 2016-08-26 11:17:05 +02:00
ext Rename shortcut functions to snake_case (#661) 2017-06-14 00:07:03 +02:00
utils Clean up Bot code a bit (#673) 2017-06-18 12:14:24 +02:00
vendor Fix setup.py with urllib3 vendoring 2017-05-26 19:24:54 +03:00
__init__.py tiny changes upon PR review 2017-06-08 09:47:19 +08:00
__main__.py Botapi2.3 (#471) 2016-12-11 22:44:52 +01:00
animation.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
audio.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
base.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
bot.py Clean up Bot code a bit (#673) 2017-06-18 12:14:24 +02:00
callbackgame.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
callbackquery.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
chat.py Rename shortcut functions to snake_case (#661) 2017-06-14 00:07:03 +02:00
chataction.py VideoNote chatactions 2017-05-20 19:26:26 +02:00
chatmember.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
choseninlineresult.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
constants.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
contact.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
document.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
emoji.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
error.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
file.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
forcereply.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
game.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
gamehighscore.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinekeyboardbutton.py Add pay inlinekeyboardbutton type 2017-05-19 19:49:31 +02:00
inlinekeyboardmarkup.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequery.py Rename shortcut functions to snake_case (#661) 2017-06-14 00:07:03 +02:00
inlinequeryresult.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequeryresultarticle.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequeryresultaudio.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequeryresultcachedaudio.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequeryresultcacheddocument.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequeryresultcachedgif.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequeryresultcachedmpeg4gif.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequeryresultcachedphoto.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequeryresultcachedsticker.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequeryresultcachedvideo.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequeryresultcachedvoice.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequeryresultcontact.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequeryresultdocument.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequeryresultgame.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequeryresultgif.py Move *_duration attributes as to keep backwardscompat 2017-05-25 14:05:08 +02:00
inlinequeryresultlocation.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequeryresultmpeg4gif.py Move *_duration attributes as to keep backwardscompat 2017-05-25 14:05:08 +02:00
inlinequeryresultphoto.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequeryresultvenue.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequeryresultvideo.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inlinequeryresultvoice.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inputcontactmessagecontent.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inputfile.py Merge branch 'master' into fix-docs 2017-06-07 13:12:32 +02:00
inputlocationmessagecontent.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inputmessagecontent.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inputtextmessagecontent.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
inputvenuemessagecontent.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
invoice.py payment: cr fixes 2017-06-01 21:52:47 +03:00
keyboardbutton.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
labeledprice.py payment: cr fixes 2017-06-01 21:52:47 +03:00
location.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
message.py Rename shortcut functions to snake_case (#661) 2017-06-14 00:07:03 +02:00
messageentity.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
orderinfo.py payment: cr fixes 2017-06-01 21:52:47 +03:00
parsemode.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
photosize.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
precheckoutquery.py Rename shortcut functions to snake_case (#661) 2017-06-14 00:07:03 +02:00
replykeyboardmarkup.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
replykeyboardremove.py Remove more warnings 2017-06-07 13:07:45 +02:00
replymarkup.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
shippingaddress.py payment: cr fixes 2017-06-01 21:52:47 +03:00
shippingoption.py payment: cr fixes 2017-06-01 21:52:47 +03:00
shippingquery.py Rename shortcut functions to snake_case (#661) 2017-06-14 00:07:03 +02:00
sticker.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
successfulpayment.py payment: cr fixes 2017-06-01 21:52:47 +03:00
update.py tiny changes upon PR review 2017-06-08 09:47:19 +08:00
user.py Rename shortcut functions to snake_case (#661) 2017-06-14 00:07:03 +02:00
userprofilephotos.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
venue.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
version.py Bump version to v6.0.3 2017-05-29 22:55:15 +02:00
video.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
videonote.py Add VideoNote 2017-05-20 19:25:24 +02:00
voice.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00
webhookinfo.py Update copyright notice to include 2017 2017-05-15 00:36:49 +03:00