Improve documentation.
This commit is contained in:
parent
504ac111af
commit
1c921dd2b1
@ -1547,13 +1547,13 @@ messageReplyToStory story_sender_chat_id:int53 story_id:int32 = MessageReplyTo;
|
||||
//@class InputMessageReplyTo @description Contains information about the message or the story to be replied
|
||||
|
||||
//@description Describes a message to be replied in the same chat and forum topic
|
||||
//@message_id The identifier of the message to be replied in the same chat and forum topic. A message can be replied in the same chat and forum topic only if message.can_be_replied
|
||||
//@message_id The identifier of the message to be replied in the same chat and forum topic. A message can be replied in the same chat and forum topic only if messageProperties.can_be_replied
|
||||
//@quote Quote from the message to be replied; pass null if none. Must always be null for replies in secret chats
|
||||
inputMessageReplyToMessage message_id:int53 quote:inputTextQuote = InputMessageReplyTo;
|
||||
|
||||
//@description Describes a message to be replied that is from a different chat or a forum topic; not supported in secret chats
|
||||
//@chat_id The identifier of the chat to which the message to be replied belongs
|
||||
//@message_id The identifier of the message to be replied in the specified chat. A message can be replied in another chat or forum topic only if message.can_be_replied_in_another_chat
|
||||
//@message_id The identifier of the message to be replied in the specified chat. A message can be replied in another chat or forum topic only if messageProperties.can_be_replied_in_another_chat
|
||||
//@quote Quote from the message to be replied; pass null if none
|
||||
inputMessageReplyToExternalMessage chat_id:int53 message_id:int53 quote:inputTextQuote = InputMessageReplyTo;
|
||||
|
||||
@ -2896,7 +2896,9 @@ paymentReceipt product_info:productInfo date:int32 seller_bot_user_id:int53 type
|
||||
|
||||
//@class InputInvoice @description Describes an invoice to process
|
||||
|
||||
//@description An invoice from a message of the type messageInvoice or paid media purchase from messagePaidMedia @chat_id Chat identifier of the message @message_id Message identifier
|
||||
//@description An invoice from a message of the type messageInvoice or paid media purchase from messagePaidMedia
|
||||
//@chat_id Chat identifier of the message
|
||||
//@message_id Message identifier
|
||||
inputInvoiceMessage chat_id:int53 message_id:int53 = InputInvoice;
|
||||
|
||||
//@description An invoice from a link of the type internalLinkTypeInvoice @name Name of the invoice
|
||||
@ -3821,7 +3823,7 @@ inputMessageStory story_sender_chat_id:int53 story_id:int32 = InputMessageConten
|
||||
|
||||
//@description A forwarded message
|
||||
//@from_chat_id Identifier for the chat this forwarded message came from
|
||||
//@message_id Identifier of the message to forward. A message can be forwarded only if message.can_be_forwarded
|
||||
//@message_id Identifier of the message to forward. A message can be forwarded only if messageProperties.can_be_forwarded
|
||||
//@in_game_share True, if a game message is being shared from a launched game; applies only to game messages
|
||||
//@copy_options Options to be used to copy content of the message without reference to the original sender; pass null to forward the message as usual
|
||||
inputMessageForwarded from_chat_id:int53 message_id:int53 in_game_share:Bool copy_options:messageCopyOptions = InputMessageContent;
|
||||
@ -3844,7 +3846,7 @@ inputMessageForwarded from_chat_id:int53 message_id:int53 in_game_share:Bool cop
|
||||
//@can_get_media_timestamp_links True, if media timestamp links can be generated for media timestamp entities in the message text, caption or link preview description using getMessageLink
|
||||
//@can_get_message_thread True, if information about the message thread is available through getMessageThread and getMessageThreadHistory
|
||||
//@can_get_read_date True, if read date of the message can be received through getMessageReadDate
|
||||
//@can_get_statistics True, if the message statistics are available through getMessageStatistics
|
||||
//@can_get_statistics True, if the message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards
|
||||
//@can_get_viewers True, if chat members already viewed the message can be received through getMessageViewers
|
||||
//@can_report_reactions True, if reactions on the message can be reported through reportMessageReactions
|
||||
messageProperties can_be_deleted_only_for_self:Bool can_be_deleted_for_all_users:Bool can_be_edited:Bool can_be_forwarded:Bool can_be_paid:Bool can_be_replied:Bool can_be_replied_in_another_chat:Bool can_be_reported:Bool can_be_saved:Bool can_be_shared_in_story:Bool can_get_added_reactions:Bool can_get_link:Bool can_get_media_timestamp_links:Bool can_get_message_thread:Bool can_get_read_date:Bool can_get_statistics:Bool can_get_viewers:Bool can_report_reactions:Bool = MessageProperties;
|
||||
@ -4124,7 +4126,7 @@ inputStoryAreaTypeSuggestedReaction reaction_type:ReactionType is_dark:Bool is_f
|
||||
|
||||
//@description An area pointing to a message
|
||||
//@chat_id Identifier of the chat with the message. Currently, the chat must be a supergroup or a channel chat
|
||||
//@message_id Identifier of the message. Only successfully sent non-scheduled messages can be specified
|
||||
//@message_id Identifier of the message. Use messageProperties.can_be_shared_in_story to check whether the message is suitable
|
||||
inputStoryAreaTypeMessage chat_id:int53 message_id:int53 = InputStoryAreaType;
|
||||
|
||||
//@description An area pointing to a HTTP or tg:// link
|
||||
@ -8079,15 +8081,15 @@ getMessages chat_id:int53 message_ids:vector<int53> = Messages;
|
||||
//@description Returns properties of a message; this is an offline request @chat_id Chat identifier @message_id Identifier of the message
|
||||
getMessageProperties chat_id:int53 message_id:int53 = MessageProperties;
|
||||
|
||||
//@description Returns information about a message thread. Can be used only if message.can_get_message_thread == true @chat_id Chat identifier @message_id Identifier of the message
|
||||
//@description Returns information about a message thread. Can be used only if messageProperties.can_get_message_thread == true @chat_id Chat identifier @message_id Identifier of the message
|
||||
getMessageThread chat_id:int53 message_id:int53 = MessageThreadInfo;
|
||||
|
||||
//@description Returns read date of a recent outgoing message in a private chat. The method can be called if message.can_get_read_date == true and the message is read
|
||||
//@description Returns read date of a recent outgoing message in a private chat. The method can be called if messageProperties.can_get_read_date == true
|
||||
//@chat_id Chat identifier
|
||||
//@message_id Identifier of the message
|
||||
getMessageReadDate chat_id:int53 message_id:int53 = MessageReadDate;
|
||||
|
||||
//@description Returns viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only users, opened content of the message, are returned. The method can be called if message.can_get_viewers == true
|
||||
//@description Returns viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only users, opened content of the message, are returned. The method can be called if messageProperties.can_get_viewers == true
|
||||
//@chat_id Chat identifier
|
||||
//@message_id Identifier of the message
|
||||
getMessageViewers chat_id:int53 message_id:int53 = MessageViewers;
|
||||
@ -8243,7 +8245,7 @@ getGroupsInCommon user_id:int53 offset_chat_id:int53 limit:int32 = Chats;
|
||||
//@only_local Pass true to get only messages that are available without sending network requests
|
||||
getChatHistory chat_id:int53 from_message_id:int53 offset:int32 limit:int32 only_local:Bool = Messages;
|
||||
|
||||
//@description Returns messages in a message thread of a message. Can be used only if message.can_get_message_thread == true. Message thread of a channel message is in the channel's linked supergroup.
|
||||
//@description Returns messages in a message thread of a message. Can be used only if messageProperties.can_get_message_thread == true. Message thread of a channel message is in the channel's linked supergroup.
|
||||
//-The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib
|
||||
//@chat_id Chat identifier
|
||||
//@message_id Message identifier, which thread history needs to be returned
|
||||
@ -8515,7 +8517,7 @@ sendInlineQueryResultMessage chat_id:int53 message_thread_id:int53 reply_to:Inpu
|
||||
//@chat_id Identifier of the chat to which to forward messages
|
||||
//@message_thread_id If not 0, the message thread identifier in which the message will be sent; for forum threads only
|
||||
//@from_chat_id Identifier of the chat from which to forward messages
|
||||
//@message_ids Identifiers of the messages to forward. Message identifiers must be in a strictly increasing order. At most 100 messages can be forwarded simultaneously. A message can be forwarded only if message.can_be_forwarded
|
||||
//@message_ids Identifiers of the messages to forward. Message identifiers must be in a strictly increasing order. At most 100 messages can be forwarded simultaneously. A message can be forwarded only if messageProperties.can_be_forwarded
|
||||
//@options Options to be used to send the messages; pass null to use default options
|
||||
//@send_copy Pass true to copy content of the messages without reference to the original sender. Always true if the messages are forwarded to a secret chat or are local
|
||||
//@remove_caption Pass true to remove media captions of message copies. Ignored if send_copy is false
|
||||
@ -8542,7 +8544,10 @@ resendMessages chat_id:int53 message_ids:vector<int53> quote:inputTextQuote = Me
|
||||
//@input_message_content The content of the message to be added
|
||||
addLocalMessage chat_id:int53 sender_id:MessageSender reply_to:InputMessageReplyTo disable_notification:Bool input_message_content:InputMessageContent = Message;
|
||||
|
||||
//@description Deletes messages @chat_id Chat identifier @message_ids Identifiers of the messages to be deleted @revoke Pass true to delete messages for all chat members. Always true for supergroups, channels and secret chats
|
||||
//@description Deletes messages
|
||||
//@chat_id Chat identifier
|
||||
//@message_ids Identifiers of the messages to be deleted. Use messageProperties.can_be_deleted_only_for_self and messageProperties.can_be_deleted_for_all_users to get suitable messages
|
||||
//@revoke Pass true to delete messages for all chat members. Always true for supergroups, channels and secret chats
|
||||
deleteMessages chat_id:int53 message_ids:vector<int53> revoke:Bool = Ok;
|
||||
|
||||
//@description Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires can_delete_messages administrator privileges @chat_id Chat identifier @sender_id Identifier of the sender of messages to delete
|
||||
@ -8557,17 +8562,16 @@ deleteChatMessagesByDate chat_id:int53 min_date:int32 max_date:int32 revoke:Bool
|
||||
|
||||
|
||||
//@description Edits the text of a message (or a text of a game message). Returns the edited message after the edit is completed on the server side.
|
||||
//-Can be used only if message.can_be_edited == true
|
||||
//@chat_id The chat the message belongs to
|
||||
//@message_id Identifier of the message
|
||||
//@message_id Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited
|
||||
//@reply_markup The new message reply markup; pass null if none; for bots only
|
||||
//@input_message_content New text content of the message. Must be of type inputMessageText
|
||||
editMessageText chat_id:int53 message_id:int53 reply_markup:ReplyMarkup input_message_content:InputMessageContent = Message;
|
||||
|
||||
//@description Edits the message content of a live location. Messages can be edited for a limited period of time specified in the live location.
|
||||
//-Returns the edited message after the edit is completed on the server side. Can be used only if message.can_be_edited == true
|
||||
//-Returns the edited message after the edit is completed on the server side
|
||||
//@chat_id The chat the message belongs to
|
||||
//@message_id Identifier of the message
|
||||
//@message_id Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited
|
||||
//@reply_markup The new message reply markup; pass null if none; for bots only
|
||||
//@location New location content of the message; pass null to stop sharing the live location
|
||||
//@live_period New time relative to the message send date, for which the location can be updated, in seconds. If 0x7FFFFFFF specified, then the location can be updated forever.
|
||||
@ -8578,26 +8582,24 @@ editMessageLiveLocation chat_id:int53 message_id:int53 reply_markup:ReplyMarkup
|
||||
|
||||
//@description Edits the content of a message with an animation, an audio, a document, a photo or a video, including message caption. If only the caption needs to be edited, use editMessageCaption instead.
|
||||
//-The media can't be edited if the message was set to self-destruct or to a self-destructing media. The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa.
|
||||
//-Returns the edited message after the edit is completed on the server side. Can be used only if message.can_be_edited == true
|
||||
//-Returns the edited message after the edit is completed on the server side
|
||||
//@chat_id The chat the message belongs to
|
||||
//@message_id Identifier of the message
|
||||
//@message_id Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited
|
||||
//@reply_markup The new message reply markup; pass null if none; for bots only
|
||||
//@input_message_content New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo
|
||||
editMessageMedia chat_id:int53 message_id:int53 reply_markup:ReplyMarkup input_message_content:InputMessageContent = Message;
|
||||
|
||||
//@description Edits the message content caption. Returns the edited message after the edit is completed on the server side.
|
||||
//-Can be used only if message.can_be_edited == true
|
||||
//@chat_id The chat the message belongs to
|
||||
//@message_id Identifier of the message
|
||||
//@message_id Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited
|
||||
//@reply_markup The new message reply markup; pass null if none; for bots only
|
||||
//@caption New message content caption; 0-getOption("message_caption_length_max") characters; pass null to remove caption
|
||||
//@show_caption_above_media Pass true to show the caption above the media; otherwise, the caption will be shown below the media. Can be true only for animation, photo, and video messages
|
||||
editMessageCaption chat_id:int53 message_id:int53 reply_markup:ReplyMarkup caption:formattedText show_caption_above_media:Bool = Message;
|
||||
|
||||
//@description Edits the message reply markup; for bots only. Returns the edited message after the edit is completed on the server side.
|
||||
//-Can be used only if message.can_be_edited == true
|
||||
//@chat_id The chat the message belongs to
|
||||
//@message_id Identifier of the message
|
||||
//@message_id Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited
|
||||
//@reply_markup The new message reply markup; pass null if none
|
||||
editMessageReplyMarkup chat_id:int53 message_id:int53 reply_markup:ReplyMarkup = Message;
|
||||
|
||||
@ -8885,7 +8887,7 @@ setMessageReactions chat_id:int53 message_id:int53 reaction_types:vector<Reactio
|
||||
|
||||
//@description Returns reactions added for a message, along with their sender
|
||||
//@chat_id Identifier of the chat to which the message belongs
|
||||
//@message_id Identifier of the message
|
||||
//@message_id Identifier of the message. Use messageProperties.can_get_added_reactions to check whether added reactions can be received for the message
|
||||
//@reaction_type Type of the reactions to return; pass null to return all added reactions
|
||||
//@offset Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results
|
||||
//@limit The maximum number of reactions to be returned; must be positive and can't be greater than 100
|
||||
@ -8970,9 +8972,9 @@ setPollAnswer chat_id:int53 message_id:int53 option_ids:vector<int32> = Ok;
|
||||
//@limit The maximum number of voters to be returned; must be positive and can't be greater than 50. For optimal performance, the number of returned voters is chosen by TDLib and can be smaller than the specified limit, even if the end of the voter list has not been reached
|
||||
getPollVoters chat_id:int53 message_id:int53 option_id:int32 offset:int32 limit:int32 = MessageSenders;
|
||||
|
||||
//@description Stops a poll. A poll in a message can be stopped when the message has can_be_edited flag is set
|
||||
//@description Stops a poll
|
||||
//@chat_id Identifier of the chat to which the poll belongs
|
||||
//@message_id Identifier of the message containing the poll
|
||||
//@message_id Identifier of the message containing the poll. Use messageProperties.can_be_edited to check whether the poll can be stopped
|
||||
//@reply_markup The new message reply markup; pass null if none; for bots only
|
||||
stopPoll chat_id:int53 message_id:int53 reply_markup:ReplyMarkup = Ok;
|
||||
|
||||
@ -10681,7 +10683,9 @@ toggleSupergroupIsForum supergroup_id:int53 is_forum:Bool = Ok;
|
||||
//@description Upgrades supergroup to a broadcast group; requires owner privileges in the supergroup @supergroup_id Identifier of the supergroup
|
||||
toggleSupergroupIsBroadcastGroup supergroup_id:int53 = Ok;
|
||||
|
||||
//@description Reports messages in a supergroup as spam; requires administrator rights in the supergroup @supergroup_id Supergroup identifier @message_ids Identifiers of messages to report
|
||||
//@description Reports messages in a supergroup as spam; requires administrator rights in the supergroup
|
||||
//@supergroup_id Supergroup identifier
|
||||
//@message_ids Identifiers of messages to report. Use messageProperties.can_be_reported to check whether the message can be reported
|
||||
reportSupergroupSpam supergroup_id:int53 message_ids:vector<int53> = Ok;
|
||||
|
||||
//@description Reports a false deletion of a message by aggressive anti-spam checks; requires administrator rights in the supergroup. Can be called only for messages from chatEventMessageDeleted with can_report_anti_spam_false_positive == true
|
||||
@ -10897,7 +10901,7 @@ removeChatActionBar chat_id:int53 = Ok;
|
||||
|
||||
//@description Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.can_be_reported
|
||||
//@chat_id Chat identifier
|
||||
//@message_ids Identifiers of reported messages; may be empty to report the whole chat
|
||||
//@message_ids Identifiers of reported messages; may be empty to report the whole chat. Use messageProperties.can_be_reported to check whether the message can be reported
|
||||
//@reason The reason for reporting the chat
|
||||
//@text Additional report details; 0-1024 characters
|
||||
reportChat chat_id:int53 message_ids:vector<int53> reason:ReportReason text:string = Ok;
|
||||
@ -10909,7 +10913,7 @@ reportChat chat_id:int53 message_ids:vector<int53> reason:ReportReason text:stri
|
||||
//@text Additional report details; 0-1024 characters
|
||||
reportChatPhoto chat_id:int53 file_id:int32 reason:ReportReason text:string = Ok;
|
||||
|
||||
//@description Reports reactions set on a message to the Telegram moderators. Reactions on a message can be reported only if message.can_report_reactions
|
||||
//@description Reports reactions set on a message to the Telegram moderators. Reactions on a message can be reported only if messageProperties.can_report_reactions
|
||||
//@chat_id Chat identifier
|
||||
//@message_id Message identifier
|
||||
//@sender_id Identifier of the sender, which added the reaction
|
||||
@ -10950,10 +10954,10 @@ getStarAdAccountUrl owner_id:MessageSender = HttpUrl;
|
||||
//@description Returns detailed statistics about a chat. Currently, this method can be used only for supergroups and channels. Can be used only if supergroupFullInfo.can_get_statistics == true @chat_id Chat identifier @is_dark Pass true if a dark theme is used by the application
|
||||
getChatStatistics chat_id:int53 is_dark:Bool = ChatStatistics;
|
||||
|
||||
//@description Returns detailed statistics about a message. Can be used only if message.can_get_statistics == true @chat_id Chat identifier @message_id Message identifier @is_dark Pass true if a dark theme is used by the application
|
||||
//@description Returns detailed statistics about a message. Can be used only if messageProperties.can_get_statistics == true @chat_id Chat identifier @message_id Message identifier @is_dark Pass true if a dark theme is used by the application
|
||||
getMessageStatistics chat_id:int53 message_id:int53 is_dark:Bool = MessageStatistics;
|
||||
|
||||
//@description Returns forwarded copies of a channel message to different public channels and public reposts as a story. Can be used only if message.can_get_statistics == true. For optimal performance, the number of returned messages and stories is chosen by TDLib
|
||||
//@description Returns forwarded copies of a channel message to different public channels and public reposts as a story. Can be used only if messageProperties.can_get_statistics == true. For optimal performance, the number of returned messages and stories is chosen by TDLib
|
||||
//@chat_id Chat identifier of the message
|
||||
//@message_id Message identifier
|
||||
//@offset Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results
|
||||
|
Loading…
x
Reference in New Issue
Block a user