2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-24 10:58:29 +00:00

161 Commits

Author SHA1 Message Date
Dan
76546b0a13 Add MenuButton related classes 2022-04-24 11:56:07 +02:00
Dan
c54be38696 Rename can_manage_voice_chats to can_manage_video_chats 2022-04-24 11:56:07 +02:00
Dan
a3c7f5e991 Rename voice_* related fields to video_* 2022-04-24 11:56:07 +02:00
Dan
6b0dca09de Add WebAppInfo and field web_app to (Inline)KeyboardButton. 2022-04-24 11:56:07 +02:00
Dan
d48cef9a26 Add ChatJoiner and get_chat_join_requests
Rename get_chat_invite_link_{members -> joiners}
Rename get_chat_invite_link_{members -> joiners}_count
2022-04-24 11:56:07 +02:00
Dan
e3419f0f3d Add InlineQueryResultContact and InlineQueryResultDocument 2022-04-24 11:56:07 +02:00
Dan
b2c4d26ce6 Fix Message.download() docstrings 2022-04-24 11:56:07 +02:00
Dan
01ca652f8c Add support for in-memory downloads 2022-04-24 11:56:07 +02:00
Dan
6eadb75086 Recursively bind when using Object.bind() 2022-04-24 11:56:07 +02:00
Dan
296b866234 Improve performance by adding a message cache 2022-04-24 11:56:07 +02:00
Dan
6fa4cdff15 Fix user mentions for deleted accounts 2022-04-24 11:56:07 +02:00
Dan
124bcb4db7 Remove API key requirement for existing sessions 2022-04-24 11:56:07 +02:00
Dan
1e66ac2636 Small documentation fix 2022-04-24 11:56:07 +02:00
Dan
b47591e6d2 Turn examples asynchronous 2022-04-24 11:56:07 +02:00
Dan
84f0b3a97a Rename some enums 2022-04-24 11:56:07 +02:00
Dan
5f2dcf70ed Fix invited_by being optional 2022-04-24 11:56:07 +02:00
Dan
78efb04b40 Rename Client.send to Client.invoke 2022-04-24 11:56:07 +02:00
Dan
32624ef5e6 Improve type hints 2022-04-24 11:56:06 +02:00
Dan
4ebf5cf7e9 Remove ability to access attributes via bracket notation 2022-04-24 11:56:06 +02:00
Dan
274650cda9 Rename Message.message_id to Message.id 2022-04-24 11:56:06 +02:00
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
Stark Programmer
abc84b829a
Add bound method Chat.unpin_all_messages (#959) 2022-04-16 18:33:26 +02:00
Tofik Denianto
874709c258
Remove hide_via param from reply_inline_bot_result (#952) 2022-04-11 23:52:32 +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
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
8ee5ea02b1 Update pin_chat_message to return Message instead of bool 2022-03-19 20:57:17 +01:00
Mr. Developer
5ee6f3d2c7
Add some missing parameters to Message.reply_text 2022-03-07 13:13:22 +01:00
scrazzz
4dc771b64a
Fix docstring for message.reply_photo (#903) 2022-02-26 11:13:52 +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
Dan
05bfaa3d87 Add support for video stickers
Add Sticker.is_video attribute
2022-02-01 11:38:58 +01:00
Dan
b1250e6575 Fix accessing non-existent attribute
Closes #865
2022-01-29 13:02:32 +01:00
Mahesh
149685f9d3
Add placeholder in ForceReply & ReplyKeyboardMarkup (#717)
* Added placeholder

* Fix docs
2022-01-29 11:54:00 +01:00
W4RR10R
244606eed6
Add approve() and decline() bound methods to ChatJoinRequest (#863)
* Bound method approve() and decline()

* Style fixes

Co-authored-by: ArUn Pt <46273006+CW4RR10R@users.noreply.github.com>
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2022-01-29 11:36:15 +01:00
Dan
cb6cef37e6 Update copyright year 2022-01-07 12:21:24 +01:00
Dan
626a1bd938 Update copyright year 2022-01-07 10:23:45 +01:00
Dan
8c8288412f Various improvements 2022-01-07 10:18:51 +01:00
Dan
80d0966691 Merge branch 'set-chat-protected-content' 2022-01-07 09:51:47 +01:00
Dan
ac3d2b8d7a Rename methods and add proper docs 2022-01-05 12:50:44 +01:00
Fernando Werneck
b283bce262
Add No Forwards chat option (#839)
* Add No Forwards chat option

* Fix chat.py
2022-01-05 12:37:25 +01:00
Dan
0a29890da4 Merge branch 'layer-136' 2022-01-03 11:19:15 +01:00
Dan
f6625192d0 Add parameter protect_content to send_* methods 2022-01-03 11:12:24 +01:00
Dan
fb64e143b6 Add field Message.reactions 2021-12-30 13:46:44 +01:00
Dan
2799011c07 Add type Reaction 2021-12-30 13:46:07 +01:00
Dan
b0a9d28bda Add field Chat.available_reactions 2021-12-30 13:43:44 +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
9c67084170 Merge remote-tracking branch 'origin/master' 2021-12-24 16:29:35 +01:00