Fixed some documentation mistakes

This commit is contained in:
KurimuzonAkuma 2024-04-20 14:14:58 +03:00
parent 826881dd65
commit 904d0ba884
4 changed files with 47 additions and 16 deletions

View File

@ -32,7 +32,7 @@ class BlockUser:
.. include:: /_includes/usable-by/users.rst
Parameters:
user_id (``int`` | ``str``)::
user_id (``int`` | ``str``):
Unique identifier (int) or username (str) of the target user.
For you yourself you can simply use "me" or "self".
For a contact that exists in your Telegram address book you can use his phone number (str).

View File

@ -19,31 +19,34 @@
from .animation import Animation
from .audio import Audio
from .boosts_status import BoostsStatus
from .business_message import BusinessMessage
from .checked_gift_code import CheckedGiftCode
from .contact import Contact
from .dice import Dice
from .document import Document
from .forum_topic import ForumTopic
from .forum_topic_created import ForumTopicCreated
from .forum_topic_closed import ForumTopicClosed
from .forum_topic_reopened import ForumTopicReopened
from .forum_topic_created import ForumTopicCreated
from .forum_topic_edited import ForumTopicEdited
from .forum_topic_reopened import ForumTopicReopened
from .game import Game
from .general_forum_topic_hidden import GeneralTopicHidden
from .general_forum_topic_unhidden import GeneralTopicUnhidden
from .game import Game
from .gift_code import GiftCode
from .giveaway import Giveaway
from .giveaway_result import GiveawayResult
from .location import Location
from .message import Message
from .message_entity import MessageEntity
from .message_reactions import MessageReactions
from .my_boost import MyBoost
from .photo import Photo
from .poll import Poll
from .poll_option import PollOption
from .reaction import Reaction
from .sticker import Sticker
from .stripped_thumbnail import StrippedThumbnail
from .story import Story
from .stripped_thumbnail import StrippedThumbnail
from .thumbnail import Thumbnail
from .venue import Venue
from .video import Video
@ -51,14 +54,44 @@ from .video_note import VideoNote
from .voice import Voice
from .web_app_data import WebAppData
from .web_page import WebPage
from .message_reactions import MessageReactions
from .my_boost import MyBoost
__all__ = [
"Animation", "Audio", "BoostsStatus", "CheckedGiftCode", "Contact", "Document", "ForumTopic", "ForumTopicCreated",
"ForumTopicClosed", "ForumTopicReopened", "ForumTopicEdited", "GeneralTopicHidden",
"GeneralTopicUnhidden", "Game", "GiftCode", "Giveaway", "GiveawayResult", "Location",
"Message", "MessageEntity", "Photo", "Thumbnail", "StrippedThumbnail", "Story", "Poll",
"PollOption", "Sticker", "Venue", "Video", "VideoNote", "Voice", "WebPage", "Dice", "Reaction",
"WebAppData", "MessageReactions", "MyBoost"
"Animation",
"Audio",
"BoostsStatus",
"BusinessMessage",
"CheckedGiftCode",
"Contact",
"Dice",
"Document",
"ForumTopic",
"ForumTopicClosed",
"ForumTopicCreated",
"ForumTopicEdited",
"ForumTopicReopened",
"Game",
"GeneralTopicHidden",
"GeneralTopicUnhidden",
"GiftCode",
"Giveaway",
"GiveawayResult",
"Location",
"Message",
"MessageEntity",
"MessageReactions",
"MyBoost",
"Photo",
"Poll",
"PollOption",
"Reaction",
"Sticker",
"Story",
"StrippedThumbnail",
"Thumbnail",
"Venue",
"Video",
"VideoNote",
"Voice",
"WebAppData",
"WebPage",
]

View File

@ -24,7 +24,7 @@ from ..object import Object
class BusinessMessage(Object):
"""Business working hours.
"""A Business message.
Parameters:
shortcut_id (``int``):

View File

@ -20,7 +20,6 @@ from .birthday import Birthday
from .business_connection import BusinessConnection
from .business_info import BusinessInfo
from .business_intro import BusinessIntro
from .business_message import BusinessMessage
from .business_recipients import BusinessRecipients
from .business_weekly_open import BusinessWeeklyOpen
from .business_working_hours import BusinessWorkingHours
@ -56,7 +55,6 @@ __all__ = [
"BusinessConnection",
"BusinessInfo",
"BusinessIntro",
"BusinessMessage",
"BusinessRecipients",
"BusinessWeeklyOpen",
"BusinessWorkingHours",