From 00fb071215f79eff3e17f6c49b8a5eacd08bbe12 Mon Sep 17 00:00:00 2001 From: wulan17 Date: Wed, 4 Jan 2023 09:59:40 +0700 Subject: [PATCH] PyroFork: docs: Add missing ChatJoinedByRequest, PeerUser and PeerChannel and some cleanup Signed-off-by: wulan17 --- compiler/docs/compiler.py | 3 +++ pyrogram/types/messages_and_media/message.py | 8 ++++---- pyrogram/types/user_and_chats/forum_topic.py | 11 ++++------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/compiler/docs/compiler.py b/compiler/docs/compiler.py index 97b1bf44..7c377681 100644 --- a/compiler/docs/compiler.py +++ b/compiler/docs/compiler.py @@ -397,10 +397,13 @@ def pyrogram_api(): ChatMemberUpdated ChatJoinRequest ChatJoiner + ChatJoinedByRequest Dialog Restriction EmojiStatus ForumTopic + PeerUser + PeerChannel """, messages_media=""" Messages & Media diff --git a/pyrogram/types/messages_and_media/message.py b/pyrogram/types/messages_and_media/message.py index b6238b8d..90bb6d11 100644 --- a/pyrogram/types/messages_and_media/message.py +++ b/pyrogram/types/messages_and_media/message.py @@ -305,10 +305,10 @@ class Message(Object, Update): forum_topic_edited (:obj:`~pyrogram.types.ForumTopicEdited`, *optional*): Service message: forum topic edited - general_topic_hidden (:obj:`~pyrogram.types.GeneralForumTopicHidden`, *optional*): + general_topic_hidden (:obj:`~pyrogram.types.GeneralTopicHidden`, *optional*): Service message: forum general topic hidden - general_topic_unhidden (:obj:`~pyrogram.types.GeneralForumTopicUnhidden`, *optional*): + general_topic_unhidden (:obj:`~pyrogram.types.GeneralTopicUnhidden`, *optional*): Service message: forum general topic unhidden video_chat_scheduled (:obj:`~pyrogram.types.VideoChatScheduled`, *optional*): @@ -413,8 +413,8 @@ class Message(Object, Update): forum_topic_closed: "types.ForumTopicClosed" = None, forum_topic_reopened: "types.ForumTopicReopened" = None, forum_topic_edited: "types.ForumTopicEdited" = None, - general_topic_hidden: "types.GeneralForumTopicHidden" = None, - general_topic_unhidden: "types.GeneralForumTopicUnhidden" = None, + general_topic_hidden: "types.GeneralTopicHidden" = None, + general_topic_unhidden: "types.GeneralTopicUnhidden" = None, video_chat_scheduled: "types.VideoChatScheduled" = None, video_chat_started: "types.VideoChatStarted" = None, video_chat_ended: "types.VideoChatEnded" = None, diff --git a/pyrogram/types/user_and_chats/forum_topic.py b/pyrogram/types/user_and_chats/forum_topic.py index 241bde0e..ac4c7d39 100644 --- a/pyrogram/types/user_and_chats/forum_topic.py +++ b/pyrogram/types/user_and_chats/forum_topic.py @@ -22,6 +22,9 @@ from ..object import Object class ForumTopic(Object): + # todo + # notify_settings: `~pyrogram.types.PeerNotifySettings` + # draft: `~pyrogram.types.DraftMessage` """A forum topic. @@ -56,12 +59,9 @@ class ForumTopic(Object): unread_reactions_count (``Integer``): N/A - from_id (:obj:``~pyrogram.Union[types.PeerChannel``|:obj:``~pyrogram.types.PeerUser``): + from_id (:obj:`~pyrogram.types.PeerChannel` | :obj:`~pyrogram.types.PeerUser`): Topic creator. - #notify_settings (:obj:``~pyrogram.types.PeerNotifySettings``): //todo - N/A - my (``Boolean``, *optional*): N/A @@ -77,9 +77,6 @@ class ForumTopic(Object): icon_emoji_id (``Integer``, *optional*): Unique identifier of the custom emoji shown as the topic icon - #draft (:obj:``~pyrogram.types.DraftMessage``, *optional*): //todo - N/A - """ def __init__(