Commit Graph

4035 Commits

Author SHA1 Message Date
Dan
b697826b5a Replace integer timestamps with datetime objects 2022-04-24 11:56:06 +02:00
Dan
bbad58a83f Add enumerations 2022-04-24 11:56:06 +02:00
Dan
9661b804b6 Revamp ChatMember, add ChatPrivileges and support for banned chats 2022-04-24 11:56:06 +02:00
Dan
976c2c47a2 Rename update- to set_username and set_chat_username 2022-04-24 11:56:06 +02:00
Dan
499822118f Update Pyrogram to v1.4.16 2022-04-17 17:42:14 +02:00
Dan
fde55a4a7f Improve interoperability with threads 2022-04-17 17:36:58 +02:00
Dan
1885acd594 Reformat code 2022-04-16 20:02:10 +02:00
Dan
42fdb03d24 Revert "Remove unneeded parts"
This reverts commit 849321e5ca.
2022-04-16 20:01:38 +02:00
Stark Programmer
abc84b829a
Add bound method Chat.unpin_all_messages (#959) 2022-04-16 18:33:26 +02:00
Mahesh
1c225776c9
Removed unnecessary create_task (#706) 2022-04-15 13:55:03 +02:00
Marco Burro
7a5ab4bffa
Fix inline query results typing (#958) 2022-04-15 11:35:21 +02:00
Shohih Abdul
acc2c72d6d
Improve type hinting for join_chat method (#957) 2022-04-14 20:34:55 +02:00
Dan
cb3d389b9d Update Pyrogram to v1.4.15 2022-04-12 14:03:09 +02:00
Danstiv
69a50fb3b2
Fix TLObject.__repr__ (#953)
* Fix __repr__ method

* Style fixes

Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2022-04-12 14:01:40 +02:00
Tofik Denianto
874709c258
Remove hide_via param from reply_inline_bot_result (#952) 2022-04-11 23:52:32 +02:00
Dan
0c0a4b5a5c Remove unneeded parameter hide_via from send_inline_bot_result 2022-04-11 15:17:16 +02:00
Dan
16de8b7325 Update Pyrogram to v1.4.14 2022-04-11 14:53:31 +02:00
Dan
d6c80ff0f9 Fix non-flags parameters with the same name "flags" being treated as TL flags 2022-04-11 14:52:59 +02:00
Dan
82b029c3bf Use Optional[Type] instead of Union[Type, None] 2022-04-11 14:34:29 +02:00
Dan
e8250bd576 Add missing backslash to the pattern 2022-04-11 14:29:17 +02:00
Dan
849321e5ca Remove unneeded parts 2022-04-11 14:27:20 +02:00
Dan
2017493c9e Update Pyrogram to v1.4.13 2022-04-11 12:54:19 +02:00
Dan
8b92ac8b7f Add support for multiple TL flags 2022-04-11 12:46:29 +02:00
dogghi
a4fe5fbfc8
Add missing on_chat_join_request decorator to docs (#947) 2022-04-11 11:21:28 +02:00
Nick
688c24bc3e
Update API schema to Layer 140 (#949) 2022-04-11 11:16:26 +02:00
Dan
71f3125c6b Update Pyrogram to v1.4.12 2022-03-28 21:04:25 +02:00
Krishna-singhal
0825b977ea
Add bound method Message.react (#937)
* Bound method `react` to send reaction

* Update message.py

* Update message.py

* Update compiler.py

Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2022-03-28 21:03:37 +02:00
Dan
e50b58980a Update Pyrogram to v1.4.11 2022-03-28 20:13:46 +02:00
andrew-ld
06ee482b23
Faster RLE codec implementation (#938)
* faster pyrogram lre encode implementation

* Update file_id.py

* optimized rle decode

Co-authored-by: andrew (from workstation) <andrew-ld@protonmail.com>
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2022-03-28 20:10:52 +02:00
Dan
190760cf0e Update Pyrogram to v1.4.10 2022-03-28 13:25:59 +02:00
Dan
7bfcd5ac5f Revamp bot commands and bot command scopes
Closes #777
2022-03-28 13:23:12 +02:00
Andrea Maugeri
aa41ac5fd2
Fix issue in set_bot_commands (#778) 2022-03-28 11:48:15 +02:00
Dan
65a53aeeb3 Update Pyrogram to v1.4.9 2022-03-19 21:00:36 +01:00
Dan
8ee5ea02b1 Update pin_chat_message to return Message instead of bool 2022-03-19 20:57:17 +01:00
Dan
58eb10a676 Remove unneeded try...except block 2022-03-14 12:07:34 +01:00
Dan
d0e2235835 Improve the RLE codec 2022-03-11 12:29:05 +01:00
Nick
8d7b62654c
Update API schema to Layer 139 (#936) 2022-03-11 12:14:59 +01:00
Mr. Developer
5ee6f3d2c7
Add some missing parameters to Message.reply_text 2022-03-07 13:13:22 +01:00
Dan
748222131d Update Pyrogram to v1.4.8 2022-02-28 12:49:52 +01:00
scrazzz
4dc771b64a
Fix docstring for message.reply_photo (#903) 2022-02-26 11:13:52 +01:00
blank X
e0eccfa8fb
Respect file_name if file passed is a file object (#912)
Fixes #911
2022-02-26 11:13:08 +01:00
Dan
bf233e3b5b Update Filters.reply to check for Message.reply_to_message_id 2022-02-17 11:42:42 +01:00
Dan
bca7e6461e Add reply_to_message_id and reply_to_top_message_id to Message 2022-02-17 11:41:14 +01:00
Sam
54f8ca25fb
Add 400 CHANNEL_ADD_INVALID error (#894)
* Add RPC Error: CHANNEL_ADD_INVALID

* Update 400_BAD_REQUEST.tsv

Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2022-02-13 11:37:43 +01:00
Gor
d9d7a867b5
Add 406 CHANNEL_PRIVATE error (#899) 2022-02-13 11:37:14 +01:00
Nik
325569d73f
Fix custom List __repr__ (#901) 2022-02-13 11:32:34 +01:00
Dan
7edfda7f41 Update Pyrogram to v1.4.7 2022-02-10 20:16:34 +01:00
Dan
9279b67319 Display a more meaningful error message 2022-02-10 20:15:48 +01:00
Dan
84b0e15e2b Revert "Make Connection.send() raise the actual exception"
This reverts commit ed2db45a03.
2022-02-10 20:14:09 +01:00
Dan
22f2b1dd99 Update Pyrogram to v1.4.6 2022-02-10 06:46:28 +01:00