Commit graph

251 commits

Author SHA1 Message Date
wulan17
2d117929a6
Pyrofork: fix docs
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-09-02 19:42:53 +07:00
wulan17
202176c3b4
Pyrofork: add MessageStory media type
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-29 18:04:42 +07:00
wulan17
34fcefe534
Pyrofork: Add get_bot_info and set_bot_info method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 16:41:08 +07:00
wulan17
654076edd4
PyroFork: Add protect_content and drop_author parameters to forward bound method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 16:40:59 +07:00
wulan17
b670101dac
Pyrofork: Add Story Support
Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add Story and StoryViews

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add get_stories method

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add StoriesPrivacy

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add send_story method

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add edit_story method

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add delete_story method

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add export_story_link method

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add story bound method

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 16:34:41 +07:00
wulan17
4cf50e6e04
pyrofork: Add spoiler support for copy_message and send_cached_media methods #18
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 16:34:39 +07:00
wulan17
f44c80c1a2
pyrofork: Append message_thread_id to reply bound methods if the message is a topic message
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 16:34:38 +07:00
wulan17
6b45a89f2b
Pyrofork: Add channel_shared and user_shared service message types
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 16:34:38 +07:00
wulan17
fc406b8286
Pyrofork: Add request_channel parameters to KeyboardButton class
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 16:34:37 +07:00
wulan17
4a938a7986
Pyrofork: Add request_chat and request_user parameters to KeyboardButton class
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 16:34:35 +07:00
wulan17
58025e9cb6
Pyrofork: Add is_participants_hidden field to Chat
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 16:34:35 +07:00
wulan17
d91cf7f120
PyroFork: Add Sticker methods and types
Signed-off-by: wulan17 <wulan17@nusantararom.org>

PyroFork: Add CreateStickerSet Methods

Signed-off-by: wulan17 <wulan17@nusantararom.org>

PyroFork: Add AddStickerToSet Methods

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 03:30:37 +07:00
wulan17
ea33dc43a4
Pyrofork: Add Forum Topic Support
Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add ForumTopicCreated, ForumTopicClosed, ForumTopicReopened, ForumTopicEdited service message types

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add can_manage_topics fields to ChatPrivileges and ChatPermissions class

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add manage_topics parameter to promote_chat_member, restrict_chat_member, and set_chat_permissions methods

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add message_thread_id parameter to send_{animation,audio,cached_media,contact,dice,document,location,media_group,message,photo,poll,sticker,venue,video,video_note,voice} methods

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrogram: Add message_thread_id parameter to forward_message() method and forward() bound method

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add message_thread_id parameter to send_game() method and copy() bound method

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrogram: Add ForumTopic and some cleanup

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add {create,close,reopen,edit,delete}_forum_topic methods

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add message_thread_id parameter to copy_message method

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add {CREATED,EDITED,DELETED}_FORUM_TOPIC ChatEvent

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: utils: Check if messages has topics atribut

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrogram: types: Message: Add error handling and is_topic_message

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: Add message_thread_id parameter to send_inline_bot_result()

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: add GeneralTopicHidden and GeneralTopicUnhidden service messages types

Signed-off-by: wulan17 <wulan17@nusantararom.org>

Pyrofork: add message_thread_id parameter to send_chat_action

Signed-off-by: wulan17 <wulan17@nusantararom.org>

PyroFork: Add CloseGeneralTopic, EditGeneralTopic, ReopenGeneralTopic, HideGeneralTopic. UnhideGeneralTopic, and some cleanup

Signed-off-by: wulan17 <wulan17@nusantararom.org>

PyroFork: Add get_forum_topic and get_forum_topic_by_id methods

Signed-off-by: wulan17 <galihgustip@gmail.com>

Pyrofork: Update some methods to layer 160

Signed-off-by: wulan17 <wulan17@nusantararom.org>

pyrofork: Add InputReplyToMessage

Signed-off-by: wulan17 <wulan17@nusantararom.org>

PyroFork: docs: Add missing PeerUser and PeerChannel

and some cleanup

Signed-off-by: wulan17 <galihgustip@gmail.com>
2023-08-18 03:30:36 +07:00
MrMissx
02acefd6e2
Fix AttributeError when received ChatForbidden
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 03:30:25 +07:00
reaitten
86621ba836
InputMessageContent.write is a coroutine
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 03:30:24 +07:00
Deshdeepak
06c081d171
Add file_name where missing and pass thumb as Union
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 03:30:23 +07:00
Devesh Pal
165ade92d5
Add bound method stop() to the Poll object
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 03:30:22 +07:00
Alisson Lauffer
c0efd663fd
Make some methods static
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 03:30:21 +07:00
wulan17
9d9b8dcac8
PyroFork: Add usernames field to User
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 03:30:20 +07:00
wulan17
73c1c179d0
PyroFork: Add usernames field to Chat
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 03:30:16 +07:00
Alisson Lauffer
244ad93229
Add full_name property to User and Chat objects
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 03:28:59 +07:00
wulan17
367be6f6eb
Pyrofork: Add chat_joined_by_request
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 03:28:52 +07:00
Jins Mathew
2e82fcecff
Add missing has_spoiler parameter to reply_{animation,photo,video} 2023-02-11 10:08:29 +01:00
Dan
a09c5a3b98 Set has_media_spoiler only in case of Photo, Video or Animation media 2022-12-30 20:16:25 +01:00
Dan
50d87bf5e9 Add the field is_persistent to the class ReplyKeyboardMarkup 2022-12-30 15:10:53 +01:00
Dan
a116ea42c8 Add the field has_spoiler to relevant InputMedia* classes
- InputMediaPhoto
- InputMediaVideo
- InputMediaAnimation
2022-12-30 15:10:20 +01:00
Dan
ef29b3c519 Add the field has_media_spoiler to the class Message 2022-12-30 15:06:51 +01:00
Dan
01cd8bb57f Optimize log calls 2022-12-26 16:38:12 +01:00
Dan
3cf1ac7d92 Update the order in which media messages are parsed 2022-12-06 18:09:42 +01:00
Dan
d734fbb180 Fix User.emoji_status type hint 2022-12-06 18:08:38 +01:00
Dan
1699ef0d4c Disable parse mode when copying messages
The entities are already taken from the original message
2022-11-15 11:13:53 +01:00
Ihor Boichuk
c98963973e
Add Message.forwards field (#1103)
* Added missing field: forwards

* Update message.py

Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2022-11-13 14:22:12 +01:00
Dan
81895d74c7 Fix Chat.available_reactions type hint 2022-09-18 16:04:07 +02:00
Dan
53584bc1db Add chosen_order to Reaction 2022-09-18 15:44:18 +02:00
Dan
f9aacd814a Update poll parsing 2022-09-06 19:04:47 +02:00
Dan
5d11c03b4e Add set_emoji_status method 2022-09-03 14:18:12 +02:00
Dan
6496a87029 Add message_reactions.py 2022-09-03 13:46:37 +02:00
Dan
9eb7589a7f Add chat_reactions.py 2022-09-03 13:43:38 +02:00
Dan
fe7fcf3448 Update reaction.py 2022-09-03 13:42:16 +02:00
Dan
1fb04b7616 Update EmojiStatus 2022-09-03 13:41:53 +02:00
Dan
7a53c3da57 Add support for emoji status 2022-09-03 13:10:27 +02:00
Dan
ed008dd3bb Fix message entity parsing and serialization 2022-08-28 20:32:43 +02:00
Dan
803f8f0073 Fix Sticker parsing 2022-08-14 22:37:09 +02:00
Dan
e94d3c1876 Merge branch 'sticker-attributes' 2022-08-14 11:30:28 +02:00
Dan
2e46514012 Refactor Sticker parsing 2022-08-14 11:19:01 +02:00
LёNya
95de5f7eae
Fix determining video sticker resolution. Add sticker duration to Sticker type (#1065) 2022-08-14 10:50:48 +02:00
Dan
6b7e5dcd1a Fix sending custom emoji 2022-08-14 10:46:48 +02:00
Dan
9aefff9f8d Fix join applications for public chats 2022-08-12 18:20:05 +02:00
Dan
cd69fb6d76 Add support for CUSTOM_EMOJI message entity type 2022-08-12 17:18:08 +02:00
dogghi
8da0851984
Add support for BytesIO in InputMedia objects (#1047)
fix docstrings and fix "TypeError: stat: path should be string, bytes, os.PathLike or integer, not BytesIO" when passing a BytesIO object to an InputMedia subclass
2022-08-11 13:58:36 +02:00