Commit Graph

56 Commits

Author SHA1 Message Date
Dan
aa135ea457 Reformat project 2019-08-01 19:11:43 +02:00
Dan
2dec2442e5 Add examples to all available methods 2019-07-25 11:22:14 +02:00
Dan
d119998212 Remove get_user_dc method, add dc_id attribute to User 2019-07-10 20:20:22 +02:00
Dan
6a62d1b8c4 Fix tiny typo: contact -> contacts 2019-07-09 23:51:43 +02:00
Dan
40bcd4e59d Fix delete_profile_photos. Closes #259 2019-06-26 21:43:08 +02:00
ColinShark
1fd31cac1e Add convenience methods to block and unblock Users 2019-06-17 14:34:49 +02:00
Dan
93082ce894 Reword get_user_dc docstrings 2019-06-12 13:43:28 +02:00
Dan
4f2928e7b5 Improve get_profile_photos and get_profile_photos_count 2019-06-12 11:37:43 +02:00
Dan
a21858a262
Merge pull request #251 from pyrogram/types-revamp
Types revamp
2019-06-12 10:48:10 +02:00
Dan
b9b50bad94 Fix get_users and get_contacts not returning pretty-printable lists 2019-06-11 16:46:10 +02:00
Dan
7baa00353d Add a FAQ about DC migration 2019-06-11 15:59:39 +02:00
Dan
1ee8487712 Merge branch 'develop' into types-revamp
# Conflicts:
#	pyrogram/client/methods/users/get_profile_photos.py
2019-06-11 14:45:21 +02:00
Dan
af08606087 Fix get_profile_photos not working when passing "me"/"self" as argument 2019-06-09 13:01:24 +02:00
Dan
cfbc5298df Remove Messages type 2019-06-08 15:13:52 +02:00
Dan
797de058e8 Remove ProfilePhotos type 2019-06-08 14:09:16 +02:00
Dan
2e05c81a5c Update docs about Telegram data centers 2019-06-08 11:33:52 +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
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
0340271b33 Refactor docstrings 2019-05-30 15:23:43 +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
87ad981420 Add get_user_dc method 2019-05-27 14:39:10 +02:00
Dan
b6ea451ee5 Reword some method return type docstrings 2019-05-17 13:44:44 +02:00
Dan
ef912d21ef Use more concise and cleaner description of a method and a type 2019-05-12 19:49:06 +02:00
Dan
e4b0a78f1a Docs revamp. Part 2 2019-05-10 16:14:10 +02:00
Dan
1737ba5f49 Revamp docs about the main Pyrogram package 2019-05-09 04:28:46 +02:00
Dan
08554633ce Add get_user_profile_photos_count method 2019-05-06 17:07:41 +02:00
Dan
b5c6db6db0 Refactor project and move errors namespace out from pyrogram.api 2019-03-25 11:23:45 +01:00
Dan
921800f902 Clean up docstrings 2019-03-22 11:53:25 +01:00
Dan
3e18945f3c Reformat code 2019-03-16 19:23:23 +01:00
Dan
34b51b6481 Force keyword arguments for all TL types 2019-03-16 16:53:52 +01:00
bakatrouble
fda25f6534 Add client.set_username() method (#208)
* Add client.set_username() method

* Rename set_username() to update_user_username(); allow None as username

* Add client.update_chat_username() method

* Update update_chat_username.py

* Update update_user_username.py

Rename update_user_username to update_username
Add more details in docstrings
Fix style

* Rename update_user_username.py to update_username.py

* Update __init__.py

* Update 400_BAD_REQUEST.tsv
2019-03-01 18:06:17 +01:00
Dan
4d7b1bafac Update copyright year 2019-01-01 12:36:16 +01:00
Dan
84fef9ecf1 Add missing file_reference argument where applicable 2018-12-23 00:55:00 +01:00
Dan
4bf6831be8 Fix some non-importable types for type hint 2018-12-22 11:22:58 +01:00
Dan
a0355a5cc4 Type hint all methods return values 2018-12-19 15:59:15 +01:00
Dan
b593463bd7 Type hint all the remaining method parameters 2018-12-19 14:50:23 +01:00
Dan
27052e31ca Fix all those unresolved references caused by the refactor 2018-12-18 09:45:49 +01:00
Dan
1873344467 Update get_users to use the refactored User type 2018-12-17 16:27:16 +01:00
Dan
8cbb9c9316 Refactor UserProfilePhotos 2018-12-17 13:51:08 +01:00
Dan
45129658b0 Revisit docstrings 2018-11-03 10:49:11 +01:00
Dan
22998af784 Fix docstrings 2018-10-16 11:45:39 +02:00
Dan
29201674ef Rename delete_profile_photos to delete_user_profile_photos
For consistency with other method names
2018-10-16 11:45:20 +02:00
Dan
8fc5b8a545 Rename set_profile_photo to set_user_profile_photo 2018-10-16 11:43:54 +02:00
Dan
93018a7f6c Add set_profile_photo method 2018-10-15 11:03:07 +02:00