Commit Graph

1323 Commits

Author SHA1 Message Date
Dan
5f3b7b97aa Add archive_chats and unarchive_chats methods 2019-06-08 19:15:19 +02:00
Dan
2e05c81a5c Update docs about Telegram data centers 2019-06-08 11:33:52 +02:00
Dan
e63b915ec2 Fix trailing commas breaking older Python versions 2019-06-07 18:51:04 +02:00
Dan
c65e210c03 Fix FileData namedtuple using Python 3.7+ features 2019-06-07 18:48:34 +02:00
Dan
89e6f4137b Fix get_chat_member always returning self for basic groups 2019-06-07 18:00:00 +02:00
Dan
a80c5c1dbb Fix broken links on decorators' docs 2019-06-07 15:49:16 +02:00
Dan
da515af959 Rearrange code 2019-06-06 19:29:44 +02:00
Dan
b205c6cce0 Rename Photos to ProfilePhotos 2019-06-06 19:09:52 +02:00
Dan
8151270a94 Update docs 2019-06-06 18:25:23 +02:00
Dan
6bebe2297e Rename "thumbnails" to "thumbs" 2019-06-05 21:03:46 +02:00
Dan
17ddb0d1b7 Update get_chat_member docstrings 2019-06-05 13:58:32 +02:00
Dan
a35e2620f8 Fix export_chat_invite_link for basic groups in Layer 100 2019-06-04 23:36:10 +02:00
Dan
a425e00a96 Add read_history method 2019-06-04 19:16:30 +02:00
Dan
896c9fa4fd Add "unsave" parameter to send_animation 2019-06-04 16:32:42 +02:00
Dan
9a44c79a82 Rename PyrogramType to Object 2019-06-03 16:56:37 +02:00
Dan
d5517f4d5f Rename Object to TLObject 2019-06-03 14:19:50 +02:00
Dan
4d97aae933 Merge remote-tracking branch 'origin/develop' into develop 2019-06-02 18:58:06 +02:00
Dan
cfec26d3db Add PyrogramList type 2019-06-02 16:16:16 +02:00
ColinShark
5cb709ee75 Make it one-line 2019-06-02 00:25:59 +02:00
ColinShark
12cc6fa4eb Removed Placeholder, break down comparison 2019-06-02 00:13:52 +02:00
ColinShark
d3cb386a6f Appropiate naming 2019-06-01 23:39:26 +02:00
ColinShark
04aada818e Less arbitrary name for Filter, Adapt Docstring 2019-06-01 23:36:45 +02:00
ColinShark
2eba6e58f9 Remove Optionality for args 2019-06-01 23:34:20 +02:00
ColinShark
0a96355c5d Add Filter for Callback_Query.data 2019-06-01 23:31:17 +02:00
Dan
acc0fab311 Fix animated stickers media type. They are documents for now 2019-06-01 14:07:45 +02:00
Dan
1f2be4f1ce Add send_animated_sticker method 2019-06-01 14:05:25 +02:00
Dan
dc94da3895 Add application/x-tgsticker mime type with .tgs as extension 2019-06-01 14:04:39 +02:00
Dan
d243ebc2cd Performance improvements 2019-06-01 13:18:48 +02:00
Dan
e7f6e9ec66 Cast is_bot value to bool 2019-06-01 13:15:41 +02:00
Dan
a984558860 Rename methods dealing with profile pictures 2019-05-31 00:20:09 +02:00
Dan
cb3addab1e Add iter_profile_photos method 2019-05-31 00:18:43 +02:00
Dan
4ca87682af Fix Document.date attribute being a tuple
Thanks Python...
2019-05-31 00:16:31 +02:00
Dan
0340271b33 Refactor docstrings 2019-05-30 15:23:43 +02:00
Dan
715ae14751 Update send_* methods (for file_ids) 2019-05-30 14:57:52 +02:00
Dan
376909f356 Add get_input_media_from_file_id utility method
For internal usage
2019-05-30 14:56:59 +02:00
Dan
55599e33c6 Rework download_media to accommodate L100 changes 2019-05-29 10:40:37 +02:00
Dan
3208b22849 Update all media types' thumbnails
They are now a List of Thumbnail objects
2019-05-29 09:50:41 +02:00
Dan
b217bf3784 Refactor ChatPhoto to accommodate L100 changes 2019-05-29 09:49:50 +02:00
Dan
fda456cd1e Rename UserProfilePhotos to just Photos for brevity and elegance 2019-05-29 09:49:13 +02:00
Dan
3a882b870b Add StrippedThumbnail type
Still a WIP
2019-05-29 09:47:43 +02:00
Dan
aaa569a08d Revamp Thumbnail type (ex PhotoSize) 2019-05-29 09:47:14 +02:00
Dan
807dcb67be Hide phone numbers and show human-friendly date formats when printing 2019-05-29 09:46:21 +02:00
Dan
41d5a13b5f Extend Chat and User types with new fields
is_verified, is_restricted, is_scam and is_support (user only)
2019-05-29 09:44:57 +02:00
Dan
38de4299c5 Add get_user_dc method 2019-05-29 09:43:48 +02:00
Dan
09d012b696 Rename get_user_profile_photos to get_user_photos 2019-05-29 09:43:33 +02:00
Dan
86a4f63d37 Rename set_user_profile_photo to set_photo
Users can only set a photo for themselves.
2019-05-29 09:42:55 +02:00
Dan
83cd828386 Rename get_user_profile_photos_count to get_user_photos_count 2019-05-29 09:41:59 +02:00
Dan
1390797f58 Rename delete_user_profile_photos to just delete_photos.
It's implied an user can only delete own photos.
2019-05-29 09:41:04 +02:00
Dan
c2424029b5 Fix dialogs after L100 update 2019-05-29 09:37:50 +02:00
Dan
e94dcd3b0b Update docs 2019-05-28 16:41:55 +02:00