PyroFork: docs: Add missing ChatJoinedByRequest, PeerUser and PeerChannel

and some cleanup

Signed-off-by: wulan17 <galihgustip@gmail.com>
This commit is contained in:
wulan17 2023-01-04 09:59:40 +07:00
parent 609d8985d4
commit 00fb071215
No known key found for this signature in database
GPG key ID: A1EF50E174745C55
3 changed files with 11 additions and 11 deletions

View file

@ -397,10 +397,13 @@ def pyrogram_api():
ChatMemberUpdated
ChatJoinRequest
ChatJoiner
ChatJoinedByRequest
Dialog
Restriction
EmojiStatus
ForumTopic
PeerUser
PeerChannel
""",
messages_media="""
Messages & Media

View file

@ -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,

View file

@ -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__(