Commit Graph

22 Commits

Author SHA1 Message Date
Dan
6238f984b4 Add dedicated parse function for inline callback queries 2018-06-06 12:29:05 +02:00
Dan
e3bd7d57a2 Remove TODO 2018-06-06 12:28:36 +02:00
Dan
656e5036c1 Fix callback query id not being a string 2018-06-06 12:28:25 +02:00
Dan
745049bda3 Protect client by renaming the property to _client 2018-06-03 17:54:57 +02:00
Dan
73c101b49d Revert "Add Empty parse mode"
This reverts commit d8dbcb5
2018-05-31 13:03:20 +02:00
Dan
d8dbcb5b4e Add Empty parse mode 2018-05-27 20:16:30 +02:00
Dan
9001ccd11f Add DisconnectHandler 2018-05-23 14:27:17 +02:00
Dan
5b300ef83c Fix some GIF not having video attributes 2018-05-20 12:45:37 +02:00
Dan
f69da98c99 Remove TODO 2018-05-17 16:49:35 +02:00
Dan
3d74941bed Add slots 2018-05-14 00:48:53 +02:00
Dan
0955826b6c Change sig and parent class init call 2018-05-14 00:48:18 +02:00
Dan
33207c2138 Lazily compute html and markdown styled texts 2018-05-14 00:02:58 +02:00
Dan
ef93fee7aa Add new Messages object and make get_history return it 2018-05-11 18:00:16 +02:00
Dan
34d7749dbf Add html attribute to message.text 2018-05-11 13:38:12 +02:00
Dan
e1e0029cc5 Rename media type 1 to chat_photo 2018-05-11 11:57:05 +02:00
Dan
84f9c2145c Add support for GIF files 2018-05-11 11:56:27 +02:00
Dan
30c6741ec6 Update Str class 2018-05-10 15:52:53 +02:00
Dan
dc47d8e386 Add custom Str and use it for texts and captions.
This would allow usages like message.text.markdown which will
return the unparsed markdown text
2018-05-10 14:47:15 +02:00
Dan
14f23d388c Clean get_history 2018-05-09 20:27:29 +02:00
Dan
781edda56a Handle get_messages flood wait 2018-05-09 19:50:57 +02:00
Dan
a1c3e40800 Make parse_messages accept a list of messages 2018-05-09 19:29:23 +02:00
Dan
8454d438be Refactor the project by using Mixin classes
This will cut client.py down from ~4k to ~1k SLOC and also
makes the whole project tidier and more organized.
2018-05-07 14:30:55 +02:00