Commit Graph

130 Commits

Author SHA1 Message Date
Dan
99aee987bd Add an automatic sleep mechanism for flood wait exceptions 2020-05-07 12:53:45 +02:00
SuperCz1
c05c5c4441
Add session name in "Sleeping for Xs" log lines (#401)
* Update send_media_group.py

* Update get_dialogs.py

* Update get_dialogs.py

* Update get_messages.py

* Update get_history.py

* Update get_chat_members.py
2020-05-07 11:35:08 +02:00
Dan
99604baaf4 Update restrict_chat_member and set_chat_permissions methods 2020-04-12 13:42:00 +02:00
Yusuf_M_Thon_iD
b913590cea
add missing file_ref in set_chat_photo (#369) 2020-03-21 16:03:54 +01:00
Dan
1996fb1481 Update Copyright 2020-03-21 15:43:32 +01:00
Dan
28cee8d01f Do not ever use "recent" filtering automatically
That code existed to improve members fetching performance
for channels/supergroups with less than 10k+1 members, but
it was causing troubles when fetching members based on a
query string and for channels with less than 10k+1 subscribers
2020-02-20 20:41:08 +01:00
Dan
73d9af51ef Don't use the "recent" filter when passing a query argument 2020-02-20 13:54:51 +01:00
Dan
062a6ce6dd Fix AttributeError raising when receiving ChatParticipantsForbidden 2020-02-03 14:51:53 +01:00
Dan
ce93f0ac64 Fix set_administrator_title giving full permissions 2020-02-01 16:01:41 +01:00
Dan
42c9bafa0c Update copyright notice 2020-02-01 14:04:33 +01:00
kalmengr
c5cc85f007 Add method delete_user_history (#282)
* Add method delete_all_user_messages

* Update delete_all_user_messages.py

* Rename delete_all_user_messages.py to delete_user_history.py

Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2019-12-23 19:05:30 +01:00
Dan
d71d9686d7 Add set_slow_mode method 2019-10-27 11:02:38 +01:00
Dan
71148758c9 Tiny documentation fixes 2019-09-09 15:42:38 +02:00
Dan
aaf0e82cdf Optimize join_chat code 2019-09-09 15:28:27 +02:00
Dan
80c7a6e988 Rename set_custom_title to set_administrator_title and clarify 2019-09-09 15:28:05 +02:00
Dan
a015f998fa Revert "Stop instantiating logger objects and directly use the logging module"
This reverts commit 792068d7
2019-09-08 19:24:06 +02:00
Dan
792068d7c8 Stop instantiating logger objects and directly use the logging module 2019-09-08 12:59:28 +02:00
Dan
c0298542a5 Add set_custom_title method 2019-09-07 17:08:30 +02:00
Dan
0011d12be5 Fix set_chat_photo not working because of new file ids 2019-08-21 09:56:33 +02:00
Dan
55f5a1a36c Fix IndexError when parsing empty nearby chats 2019-08-17 22:30:34 +02:00
Dan
95051d7fb1 Add get_nearby_chats method 2019-08-17 22:23:34 +02:00
Dan
937987a361 Finally remove ports from older schemas and fix export_chat_invite_link 2019-08-03 19:40:45 +02:00
Dan
c6f346f83d [Bot API 4.4] Update chat permissions
- Move can_* permissions back to ChatMember objects
- Rename restrict_chat to set_chat_permissions
- Update restrict_chat_member to accept a single ChatPermissions arg.
- Update ChatPermissions to be the same as the one on the Bot API
2019-08-03 19:30:32 +02:00
Dan
ad0f8284f6 Use the correct way to parse peer identifiers 2019-08-01 19:07:08 +02:00
Dan
2dec2442e5 Add examples to all available methods 2019-07-25 11:22:14 +02:00
Dan
036a73997a Add new methods: add_chat_members, create_* and delete_* chats
- add_chat_members
- create_group
- create_channel
- create_supergroup
- delete_channel
- delete_supergroup
2019-07-21 23:08:30 +02:00
Dan
f9ea45f987 Fix restrict_chat and restrict_chat_member combined permissions 2019-07-11 01:32:18 +02:00
Dan
bdd554575a Fix export_chat_invite_link not working for bots on channels/supergroups
Telegram still hasn't enabled this for bots...
Closes
2019-07-04 21:00:22 +02:00
Dan
580c684cb3 Fix export_chat_invite_link not working correctly (channels/supergroups) 2019-06-30 16:13:10 +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
5f3b7b97aa Add archive_chats and unarchive_chats methods 2019-06-08 19:15:19 +02:00
Dan
c8fd446cb6 Remove Dialogs type 2019-06-08 14:00:00 +02:00
Dan
2db2ca3283 Remove ChatMembers type 2019-06-08 13:50:17 +02:00
Dan
89e6f4137b Fix get_chat_member always returning self for basic groups 2019-06-07 18:00:00 +02:00
Dan
da515af959 Rearrange code 2019-06-06 19:29:44 +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
0340271b33 Refactor docstrings 2019-05-30 15:23:43 +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
Dan
b6ea451ee5 Reword some method return type docstrings 2019-05-17 13:44:44 +02:00
Dan
53d0cc30f6 Remove get_chat_preview and have get_chat deal with ChatPreview objects 2019-05-17 13:18:24 +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
1737ba5f49 Revamp docs about the main Pyrogram package 2019-05-09 04:28:46 +02:00
Dan
692073c856 Fix get_dialogs_count breaking in case of less than 200 dialogs 2019-05-06 17:09:44 +02:00
Dan
4e77ead181 Add get_dialogs_count method 2019-05-06 16:58:59 +02:00
Dan
cc9bc56391 Add important note to export_chat_invite_link 2019-04-30 11:29:54 +02:00
Dan
d83a2a951d Revert "Fix export_chat_invite_link broken because of Layer update Fixes #244"
This reverts commit 2aad5985
2019-04-30 11:22:23 +02:00
Dan
2aad59856d Fix export_chat_invite_link broken because of Layer update
Fixes #244
2019-04-30 11:04:37 +02:00
Dan
1e635f00ea Fix set_chat_description not working anymore with the new Layer 2019-04-13 16:10:15 +02:00