Dan
b0a9d28bda
Add field Chat.available_reactions
2021-12-30 13:43:44 +01:00
Dan
46d3d8aaf6
Update REACTION_INVALID error message
2021-12-30 13:39:58 +01:00
SUBIN
00c91120d8
Handle the case when default_send_as is None ( #842 )
...
* fix parsing send_as peer.
* Update chat.py
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-12-30 11:06:37 +01:00
Dan
f7b9137a68
Add support for "spoiler" MessageEntity
2021-12-30 09:14:49 +01:00
Dan
42c690757d
Update API schema to Layer 136
2021-12-30 08:57:02 +01:00
Dan
9c67084170
Merge remote-tracking branch 'origin/master'
2021-12-24 16:29:35 +01:00
Dan
a3fab6af4b
Merge branch 'mtproto-checks'
...
# Conflicts:
# pyrogram/errors/__init__.py
# pyrogram/session/session.py
2021-12-24 16:28:29 +01:00
Udith Amasura
cc4a850134
Make bot_username optional for LoginUrl ( #817 )
...
* make bot username optional
* Update login_url.py
* Update login_url.py
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-12-23 17:56:22 +01:00
Dan
9a2bc25bc7
Add support for "send_as" chats
...
- Add methods get_send_as_chats() and set_send_as_chat()
- Add field Chat.send_as_chat
2021-12-23 16:53:03 +01:00
Dan
e8076d1b8a
Add method get_discussion_message
2021-12-22 15:00:03 +01:00
Dan
a138b46668
Add Message/Chat.has_protected_content
2021-12-22 14:49:28 +01:00
Dan
2024b3c120
Rename kick(ed) occurrences to ban(ned)
2021-12-22 14:39:52 +01:00
Dan
a909dc12e7
Add support for user profile buttons
2021-12-22 14:36:02 +01:00
Dan
d103ae48fe
Add support for ChatJoinRequest events
2021-12-22 14:34:12 +01:00
Dan
8f8c85e8f3
Update ChatInviteLink
2021-12-22 14:13:44 +01:00
Dan
7d917f43e5
Add approve/decline_chat_join_request
2021-12-22 14:12:57 +01:00
Dan
29b4615848
Update create/edit_chat_invite_link
2021-12-22 14:08:24 +01:00
Dan
56e7e11037
Use a specialized exception for handling BadMsgNotification
2021-12-22 14:01:05 +01:00
David Hu
419ecb1af5
Add RPC Error: CHAT_FORWARDS_RESTRICTED ( #825 )
...
* Add RPC Error: CHAT_FORWARD_RESTRICTED
* Fix the typo in the previous commit
Sorry, made a typo in the error name
* Update 400_BAD_REQUEST.tsv
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-12-20 20:40:32 +01:00
Robert Schütz
4bb57a4da3
Include tests in sdist ( #819 )
2021-12-20 20:37:08 +01:00
fe764e0e2b
Update session string format ( #818 )
2021-12-20 20:34:57 +01:00
AduchiMergen
ef6125b57a
Fix -503 Timeout errors #664 ( #812 )
2021-12-20 20:22:56 +01:00
Dan
a917596cb1
Merge branch 'master' of https://github.com/pyrogram/pyrogram
2021-12-17 11:50:14 +01:00
Dan
9b28a120e2
Fix megagroup attribute on ChatForbidden objects
2021-12-17 11:49:53 +01:00
Adek
6fb427fb9a
Add new chat actions ( #751 )
...
* Add new chat action
* Update send_chat_action.py
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-12-17 10:41:39 +01:00
Dan
ea3281b5f6
Raise directly when not checking a boolean expression
2021-12-16 21:39:52 +01:00
Dan
8aa358129c
Use specialized exceptions for handling security checks
2021-12-16 21:38:24 +01:00
Dan
a720726479
Remove unneeded assertion
2021-12-16 21:05:01 +01:00
Dan
ed9c7e4694
Simplify the error handling a bit
2021-12-15 19:26:54 +01:00
Dan
c2a29c8c30
Tune stored_msg_ids max size
2021-12-15 16:56:08 +01:00
Dan
2a1af2b8e9
Close and reestablish the TCP connection in case of mismatch
2021-12-15 16:02:39 +01:00
Dan
bc420da0e2
Maintain a sorted list of stored_msg_ids
2021-12-15 15:04:44 +01:00
Dan
cd027b8c1c
Implement missing MTProto checks
2021-12-15 13:18:13 +01:00
Abir Hasan
cebecb99c0
Fix renamed raw API function ( #810 )
...
`raw.functions.channels.DeleteUserHistory` to `raw.functions.channels.DeleteParticipantHistory`
2021-12-13 13:20:55 +01:00
Dan
bf9e186414
Also fetch peer_id user details
2021-12-09 20:12:13 +01:00
Dan
a73f990667
Improve parsing of Chat
2021-12-08 07:46:41 +01:00
Dan
8a08dcb92a
Update UserFull according to the new schema
2021-12-08 07:43:02 +01:00
Dan
439935b401
Fix wrong sender_chat
2021-12-07 22:39:56 +01:00
Dan
e2cce1b1e6
Check empty messages first of all
2021-12-07 20:29:46 +01:00
Dan
8d03850d03
Don't propagate errors when fetching missing user details
2021-12-07 20:22:29 +01:00
Dan
85ee6c3785
Fetch user details in case they are missing
2021-12-07 19:40:06 +01:00
Dan
34b6002c68
Fix joinchat links regex
2021-12-06 14:16:49 +01:00
Dan
f7db103071
Fix missing argument
2021-12-04 18:40:22 +01:00
Dan
2e964b3fa9
Update MAX_USER_ID
2021-12-04 18:39:35 +01:00
Dan
804d00fa0f
Update get_me.py
2021-11-26 18:07:28 +01:00
Dan
ca29ea1db4
Update API schema to Layer 135
2021-11-26 18:03:17 +01:00
Dan
a460d12a82
Update API schema to Layer 134
2021-11-10 10:23:10 +01:00
Dan
aba5304fd6
Fix Actions on Python 3.10
2021-10-11 14:34:05 +02:00
Dan
e27f30dade
Enable Actions on Python 3.10
2021-10-11 14:31:00 +02:00
Dan
2265d282f5
Add search_global_count and search_messages_count methods ( #768 )
2021-10-11 14:27:31 +02:00