mirror of
https://github.com/c0re100/gotdlib.git
synced 2026-09-04 03:17:06 +02:00
Update to TDLib 1.8.67
This commit is contained in:
parent
4dfe20c5c8
commit
4e279fb246
4 changed files with 1922 additions and 107 deletions
|
|
@ -3187,6 +3187,93 @@ func (client *Client) SetPinnedSavedMessagesTopics(req *SetPinnedSavedMessagesTo
|
||||||
return UnmarshalOk(result.Data)
|
return UnmarshalOk(result.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type LoadCommunityFullInfoRequest struct {
|
||||||
|
// Community identifier
|
||||||
|
CommunityId int64 `json:"community_id"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Returns full information about a community. The data will be sent through update.
|
||||||
|
func (client *Client) LoadCommunityFullInfo(req *LoadCommunityFullInfoRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "loadCommunityFullInfo",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"community_id": req.CommunityId,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
type CreateCommunityRequest struct {
|
||||||
|
// Name of the new community
|
||||||
|
Name string `json:"name"`
|
||||||
|
// Identifier of the chat in the community; only chats with owned bots and owned basic group, supergroup and channel chats are allowed; basic group chats will be automatically upgraded to supergroup chats
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
// Pass true if the chat will be visible only to administrators of the community
|
||||||
|
IsChatHidden bool `json:"is_chat_hidden"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Creates a new community for the given chat. Returns identifier of the created community
|
||||||
|
func (client *Client) CreateCommunity(req *CreateCommunityRequest) (*CommunityId, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "createCommunity",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"name": req.Name,
|
||||||
|
"chat_id": req.ChatId,
|
||||||
|
"is_chat_hidden": req.IsChatHidden,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalCommunityId(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
type SetCommunityNameRequest struct {
|
||||||
|
// Identifier of the community
|
||||||
|
CommunityId int64 `json:"community_id"`
|
||||||
|
// New name of the community
|
||||||
|
Name string `json:"name"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Changes name of the given community; requires can_change_info administrator right in the community
|
||||||
|
func (client *Client) SetCommunityName(req *SetCommunityNameRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "setCommunityName",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"community_id": req.CommunityId,
|
||||||
|
"name": req.Name,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
type GetGroupsInCommonRequest struct {
|
type GetGroupsInCommonRequest struct {
|
||||||
// User identifier
|
// User identifier
|
||||||
UserId int64 `json:"user_id"`
|
UserId int64 `json:"user_id"`
|
||||||
|
|
@ -5589,15 +5676,19 @@ type SendEphemeralMessageRequest struct {
|
||||||
ReceiverUserId int64 `json:"receiver_user_id"`
|
ReceiverUserId int64 `json:"receiver_user_id"`
|
||||||
// Identifier of the callback query which triggered the message; for bots only
|
// Identifier of the callback query which triggered the message; for bots only
|
||||||
CallbackQueryId JsonInt64 `json:"callback_query_id"`
|
CallbackQueryId JsonInt64 `json:"callback_query_id"`
|
||||||
|
// Pass true if the ephemeral message must replace the message from which the callback query originated; for bots only
|
||||||
|
ReplaceCallbackQueryMessage bool `json:"replace_callback_query_message"`
|
||||||
// Information about the message to be replied; pass null if none. The message can be an incoming ephemeral message
|
// Information about the message to be replied; pass null if none. The message can be an incoming ephemeral message
|
||||||
ReplyTo InputMessageReplyTo `json:"reply_to"`
|
ReplyTo InputMessageReplyTo `json:"reply_to"`
|
||||||
|
// Pass true if the content of the message must be protected from forwarding and saving; for bots only
|
||||||
|
ProtectContent bool `json:"protect_content"`
|
||||||
// Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates
|
// Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates
|
||||||
SendingId int32 `json:"sending_id"`
|
SendingId int32 `json:"sending_id"`
|
||||||
// Pass true to get a fake message instead of actually sending them
|
// Pass true to get a fake message instead of actually sending them
|
||||||
OnlyPreview bool `json:"only_preview"`
|
OnlyPreview bool `json:"only_preview"`
|
||||||
// Markup for replying to the message; pass null if none; for bots only
|
// Markup for replying to the message; pass null if none; for bots only
|
||||||
ReplyMarkup ReplyMarkup `json:"reply_markup"`
|
ReplyMarkup ReplyMarkup `json:"reply_markup"`
|
||||||
// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote, inputMessageLocation, inputMessageVenue, inputMessageContact
|
// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote, inputMessageLocation, inputMessageVenue, inputMessageContact
|
||||||
InputMessageContent InputMessageContent `json:"input_message_content"`
|
InputMessageContent InputMessageContent `json:"input_message_content"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -5612,7 +5703,9 @@ func (client *Client) SendEphemeralMessage(req *SendEphemeralMessageRequest) (*M
|
||||||
"topic_id": req.TopicId,
|
"topic_id": req.TopicId,
|
||||||
"receiver_user_id": req.ReceiverUserId,
|
"receiver_user_id": req.ReceiverUserId,
|
||||||
"callback_query_id": req.CallbackQueryId,
|
"callback_query_id": req.CallbackQueryId,
|
||||||
|
"replace_callback_query_message": req.ReplaceCallbackQueryMessage,
|
||||||
"reply_to": req.ReplyTo,
|
"reply_to": req.ReplyTo,
|
||||||
|
"protect_content": req.ProtectContent,
|
||||||
"sending_id": req.SendingId,
|
"sending_id": req.SendingId,
|
||||||
"only_preview": req.OnlyPreview,
|
"only_preview": req.OnlyPreview,
|
||||||
"reply_markup": req.ReplyMarkup,
|
"reply_markup": req.ReplyMarkup,
|
||||||
|
|
@ -5705,7 +5798,7 @@ type DeleteEphemeralMessageRequest struct {
|
||||||
ChatId int64 `json:"chat_id"`
|
ChatId int64 `json:"chat_id"`
|
||||||
// Identifier of the user who received the message
|
// Identifier of the user who received the message
|
||||||
ReceiverUserId int64 `json:"receiver_user_id"`
|
ReceiverUserId int64 `json:"receiver_user_id"`
|
||||||
// Identifiers of the message to be deleted
|
// Identifier of the message to be deleted
|
||||||
EphemeralMessageId int32 `json:"ephemeral_message_id"`
|
EphemeralMessageId int32 `json:"ephemeral_message_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -6175,11 +6268,11 @@ type EditEphemeralMessageRequest struct {
|
||||||
EphemeralMessageId int32 `json:"ephemeral_message_id"`
|
EphemeralMessageId int32 `json:"ephemeral_message_id"`
|
||||||
// The new message reply markup; pass null if none
|
// The new message reply markup; pass null if none
|
||||||
ReplyMarkup ReplyMarkup `json:"reply_markup"`
|
ReplyMarkup ReplyMarkup `json:"reply_markup"`
|
||||||
// New content of the message; pass null to edit only reply markup. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote
|
// New content of the message; pass null to edit only reply markup. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote
|
||||||
InputMessageContent InputMessageContent `json:"input_message_content"`
|
InputMessageContent InputMessageContent `json:"input_message_content"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Edits the text, caption or reply markup of an ephemeral message sent by the bot; for bots only
|
// Edits the text, media, or reply markup of an ephemeral message sent by the bot; for bots only
|
||||||
func (client *Client) EditEphemeralMessage(req *EditEphemeralMessageRequest) (*Ok, error) {
|
func (client *Client) EditEphemeralMessage(req *EditEphemeralMessageRequest) (*Ok, error) {
|
||||||
result, err := client.Send(Request{
|
result, err := client.Send(Request{
|
||||||
meta: meta{
|
meta: meta{
|
||||||
|
|
@ -6204,6 +6297,82 @@ func (client *Client) EditEphemeralMessage(req *EditEphemeralMessageRequest) (*O
|
||||||
return UnmarshalOk(result.Data)
|
return UnmarshalOk(result.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type EditEphemeralMessageCaptionRequest struct {
|
||||||
|
// The chat the message belongs to
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
// Identifier of the user who received the message
|
||||||
|
ReceiverUserId int64 `json:"receiver_user_id"`
|
||||||
|
// Identifier of the ephemeral message
|
||||||
|
EphemeralMessageId int32 `json:"ephemeral_message_id"`
|
||||||
|
// The new message reply markup; pass null if none
|
||||||
|
ReplyMarkup ReplyMarkup `json:"reply_markup"`
|
||||||
|
// New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters
|
||||||
|
Caption *FormattedText `json:"caption"`
|
||||||
|
// Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages
|
||||||
|
ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Edits the caption and reply markup of an ephemeral message sent by the bot; for bots only
|
||||||
|
func (client *Client) EditEphemeralMessageCaption(req *EditEphemeralMessageCaptionRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "editEphemeralMessageCaption",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"chat_id": req.ChatId,
|
||||||
|
"receiver_user_id": req.ReceiverUserId,
|
||||||
|
"ephemeral_message_id": req.EphemeralMessageId,
|
||||||
|
"reply_markup": req.ReplyMarkup,
|
||||||
|
"caption": req.Caption,
|
||||||
|
"show_caption_above_media": req.ShowCaptionAboveMedia,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
type EditCallbackQueryMessageRequest struct {
|
||||||
|
// Identifier of the callback query
|
||||||
|
CallbackQueryId JsonInt64 `json:"callback_query_id"`
|
||||||
|
// Pass true if the content of the message must be protected from forwarding and saving
|
||||||
|
ProtectContent bool `json:"protect_content"`
|
||||||
|
// The new message reply markup; pass null if none
|
||||||
|
ReplyMarkup ReplyMarkup `json:"reply_markup"`
|
||||||
|
// New content of the message. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote
|
||||||
|
InputMessageContent InputMessageContent `json:"input_message_content"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Edits the message from which a callback query has originated with an ephemeral message; for bots only
|
||||||
|
func (client *Client) EditCallbackQueryMessage(req *EditCallbackQueryMessageRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "editCallbackQueryMessage",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"callback_query_id": req.CallbackQueryId,
|
||||||
|
"protect_content": req.ProtectContent,
|
||||||
|
"reply_markup": req.ReplyMarkup,
|
||||||
|
"input_message_content": req.InputMessageContent,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
type EditMessageSchedulingStateRequest struct {
|
type EditMessageSchedulingStateRequest struct {
|
||||||
// The chat the message belongs to
|
// The chat the message belongs to
|
||||||
ChatId int64 `json:"chat_id"`
|
ChatId int64 `json:"chat_id"`
|
||||||
|
|
@ -6236,6 +6405,35 @@ func (client *Client) EditMessageSchedulingState(req *EditMessageSchedulingState
|
||||||
return UnmarshalOk(result.Data)
|
return UnmarshalOk(result.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DeleteMessageEphemeralContentRequest struct {
|
||||||
|
// The chat the message belongs to
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
// Identifier of the message
|
||||||
|
MessageId int64 `json:"message_id"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Removes message ephemeral content and reverts message state to the original
|
||||||
|
func (client *Client) DeleteMessageEphemeralContent(req *DeleteMessageEphemeralContentRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "deleteMessageEphemeralContent",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"chat_id": req.ChatId,
|
||||||
|
"message_id": req.MessageId,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
type SetMessageFactCheckRequest struct {
|
type SetMessageFactCheckRequest struct {
|
||||||
// The channel chat the message belongs to
|
// The channel chat the message belongs to
|
||||||
ChatId int64 `json:"chat_id"`
|
ChatId int64 `json:"chat_id"`
|
||||||
|
|
@ -7289,7 +7487,7 @@ type ReaddQuickReplyShortcutMessagesRequest struct {
|
||||||
MessageIds []int64 `json:"message_ids"`
|
MessageIds []int64 `json:"message_ids"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Re-adds quick reply messages which failed to add. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed. If a message is re-added, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in message_ids. If a message can't be readded, null will be returned instead of the message
|
// Re-adds quick reply messages which failed to add. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed. If a message is re-added, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in message_ids. If a message can't be re-added, null will be returned instead of the message
|
||||||
func (client *Client) ReaddQuickReplyShortcutMessages(req *ReaddQuickReplyShortcutMessagesRequest) (*QuickReplyMessages, error) {
|
func (client *Client) ReaddQuickReplyShortcutMessages(req *ReaddQuickReplyShortcutMessagesRequest) (*QuickReplyMessages, error) {
|
||||||
result, err := client.Send(Request{
|
result, err := client.Send(Request{
|
||||||
meta: meta{
|
meta: meta{
|
||||||
|
|
@ -7343,6 +7541,148 @@ func (client *Client) EditQuickReplyMessage(req *EditQuickReplyMessageRequest) (
|
||||||
return UnmarshalOk(result.Data)
|
return UnmarshalOk(result.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type LoadChatWelcomeMessagesRequest struct {
|
||||||
|
// The identifier of the chat
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Loads welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat. The loaded messages will be sent through updateChatWelcomeMessages
|
||||||
|
func (client *Client) LoadChatWelcomeMessages(req *LoadChatWelcomeMessagesRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "loadChatWelcomeMessages",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"chat_id": req.ChatId,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
type AddChatWelcomeMessageRequest struct {
|
||||||
|
// The identifier of the chat
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote, inputMessageLocation, inputMessageVenue, inputMessageContact
|
||||||
|
InputMessageContent InputMessageContent `json:"input_message_content"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Adds a message to the list of welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat. There can be up to getOption("welcome_message_count_max") welcome messages in a chat
|
||||||
|
func (client *Client) AddChatWelcomeMessage(req *AddChatWelcomeMessageRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "addChatWelcomeMessage",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"chat_id": req.ChatId,
|
||||||
|
"input_message_content": req.InputMessageContent,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
type EditChatWelcomeMessageRequest struct {
|
||||||
|
// The identifier of the chat
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
// The identifier of the welcome message
|
||||||
|
WelcomeMessageId int32 `json:"welcome_message_id"`
|
||||||
|
// New content of the message. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote
|
||||||
|
InputMessageContent InputMessageContent `json:"input_message_content"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Edits a welcome message of a chat; requires can_send_welcome_messages administrator right in the chat
|
||||||
|
func (client *Client) EditChatWelcomeMessage(req *EditChatWelcomeMessageRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "editChatWelcomeMessage",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"chat_id": req.ChatId,
|
||||||
|
"welcome_message_id": req.WelcomeMessageId,
|
||||||
|
"input_message_content": req.InputMessageContent,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
type DeleteChatWelcomeMessageRequest struct {
|
||||||
|
// The identifier of the chat
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
// The identifier of the welcome message
|
||||||
|
WelcomeMessageId int32 `json:"welcome_message_id"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deletes a welcome message of a chat; requires can_send_welcome_messages administrator right in the chat
|
||||||
|
func (client *Client) DeleteChatWelcomeMessage(req *DeleteChatWelcomeMessageRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "deleteChatWelcomeMessage",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"chat_id": req.ChatId,
|
||||||
|
"welcome_message_id": req.WelcomeMessageId,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
type DeleteAllChatWelcomeMessagesRequest struct {
|
||||||
|
// The identifier of the chat
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deletes all welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat
|
||||||
|
func (client *Client) DeleteAllChatWelcomeMessages(req *DeleteAllChatWelcomeMessagesRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "deleteAllChatWelcomeMessages",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"chat_id": req.ChatId,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
// Returns the list of custom emoji, which can be used as forum topic icon by all users
|
// Returns the list of custom emoji, which can be used as forum topic icon by all users
|
||||||
func (client *Client) GetForumTopicDefaultIcons() (*Stickers, error) {
|
func (client *Client) GetForumTopicDefaultIcons() (*Stickers, error) {
|
||||||
result, err := client.Send(Request{
|
result, err := client.Send(Request{
|
||||||
|
|
@ -10440,6 +10780,10 @@ type SendTextMessageDraftRequest struct {
|
||||||
ForumTopicId int32 `json:"forum_topic_id"`
|
ForumTopicId int32 `json:"forum_topic_id"`
|
||||||
// Unique identifier of the draft
|
// Unique identifier of the draft
|
||||||
DraftId JsonInt64 `json:"draft_id"`
|
DraftId JsonInt64 `json:"draft_id"`
|
||||||
|
// Pass true to show the user a button to stop further drafts
|
||||||
|
CanStop bool `json:"can_stop"`
|
||||||
|
// Pass true to keep the current draft when the user stops further generation
|
||||||
|
KeepOnStop bool `json:"keep_on_stop"`
|
||||||
// Draft text of the message; pass null to show a "Thinking..." placeholder
|
// Draft text of the message; pass null to show a "Thinking..." placeholder
|
||||||
Text *FormattedText `json:"text"`
|
Text *FormattedText `json:"text"`
|
||||||
}
|
}
|
||||||
|
|
@ -10454,6 +10798,8 @@ func (client *Client) SendTextMessageDraft(req *SendTextMessageDraftRequest) (*O
|
||||||
"chat_id": req.ChatId,
|
"chat_id": req.ChatId,
|
||||||
"forum_topic_id": req.ForumTopicId,
|
"forum_topic_id": req.ForumTopicId,
|
||||||
"draft_id": req.DraftId,
|
"draft_id": req.DraftId,
|
||||||
|
"can_stop": req.CanStop,
|
||||||
|
"keep_on_stop": req.KeepOnStop,
|
||||||
"text": req.Text,
|
"text": req.Text,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
@ -10475,6 +10821,10 @@ type SendRichMessageDraftRequest struct {
|
||||||
ForumTopicId int32 `json:"forum_topic_id"`
|
ForumTopicId int32 `json:"forum_topic_id"`
|
||||||
// Unique identifier of the draft
|
// Unique identifier of the draft
|
||||||
DraftId JsonInt64 `json:"draft_id"`
|
DraftId JsonInt64 `json:"draft_id"`
|
||||||
|
// Pass true to show the user a button to stop further drafts
|
||||||
|
CanStop bool `json:"can_stop"`
|
||||||
|
// Pass true to keep the current draft when the user stops further generation
|
||||||
|
KeepOnStop bool `json:"keep_on_stop"`
|
||||||
// Draft of the message; file upload isn't supported
|
// Draft of the message; file upload isn't supported
|
||||||
Message *InputRichMessage `json:"message"`
|
Message *InputRichMessage `json:"message"`
|
||||||
}
|
}
|
||||||
|
|
@ -10489,6 +10839,8 @@ func (client *Client) SendRichMessageDraft(req *SendRichMessageDraftRequest) (*O
|
||||||
"chat_id": req.ChatId,
|
"chat_id": req.ChatId,
|
||||||
"forum_topic_id": req.ForumTopicId,
|
"forum_topic_id": req.ForumTopicId,
|
||||||
"draft_id": req.DraftId,
|
"draft_id": req.DraftId,
|
||||||
|
"can_stop": req.CanStop,
|
||||||
|
"keep_on_stop": req.KeepOnStop,
|
||||||
"message": req.Message,
|
"message": req.Message,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
@ -10503,6 +10855,38 @@ func (client *Client) SendRichMessageDraft(req *SendRichMessageDraftRequest) (*O
|
||||||
return UnmarshalOk(result.Data)
|
return UnmarshalOk(result.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type StopPendingMessageRequest struct {
|
||||||
|
// Identifier of the chat with the bot
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
// Identifier of the topic in which the action is performed; pass null if none
|
||||||
|
TopicId MessageTopic `json:"topic_id"`
|
||||||
|
// Unique identifier of the message draft within the message thread
|
||||||
|
DraftId JsonInt64 `json:"draft_id"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Stops a pending message generation by a bot
|
||||||
|
func (client *Client) StopPendingMessage(req *StopPendingMessageRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "stopPendingMessage",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"chat_id": req.ChatId,
|
||||||
|
"topic_id": req.TopicId,
|
||||||
|
"draft_id": req.DraftId,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
type OpenChatRequest struct {
|
type OpenChatRequest struct {
|
||||||
// Chat identifier
|
// Chat identifier
|
||||||
ChatId int64 `json:"chat_id"`
|
ChatId int64 `json:"chat_id"`
|
||||||
|
|
@ -12448,7 +12832,7 @@ type SetChatDraftMessageRequest struct {
|
||||||
ChatId int64 `json:"chat_id"`
|
ChatId int64 `json:"chat_id"`
|
||||||
// Topic in which the draft will be changed; pass null to change the draft for the chat itself
|
// Topic in which the draft will be changed; pass null to change the draft for the chat itself
|
||||||
TopicId MessageTopic `json:"topic_id"`
|
TopicId MessageTopic `json:"topic_id"`
|
||||||
// New draft message; pass null to remove the draft. All files in draft message content must be of the type inputFileLocal. Media thumbnails and captions are ignored
|
// New draft message; pass null to remove the draft
|
||||||
DraftMessage *DraftMessage `json:"draft_message"`
|
DraftMessage *DraftMessage `json:"draft_message"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -13083,7 +13467,7 @@ type AddChatMembersRequest struct {
|
||||||
UserIds []int64 `json:"user_ids"`
|
UserIds []int64 `json:"user_ids"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adds multiple new members to a chat; requires can_invite_users member right. Currently, this method is only available for supergroups and channels. This method can't be used to join a chat. Members can't be added to a channel if it has more than 200 members. Returns information about members that weren't added
|
// Adds multiple new members to a chat; requires can_invite_users member right. Currently, this method is available only in supergroups and channels. This method can't be used to join a chat. Members can't be added to a channel if it has more than 200 members. Returns information about members that weren't added
|
||||||
func (client *Client) AddChatMembers(req *AddChatMembersRequest) (*FailedToAddMembers, error) {
|
func (client *Client) AddChatMembers(req *AddChatMembersRequest) (*FailedToAddMembers, error) {
|
||||||
result, err := client.Send(Request{
|
result, err := client.Send(Request{
|
||||||
meta: meta{
|
meta: meta{
|
||||||
|
|
@ -13140,7 +13524,7 @@ func (client *Client) SetChatMemberStatus(req *SetChatMemberStatusRequest) (*Ok,
|
||||||
type SetChatMemberTagRequest struct {
|
type SetChatMemberTagRequest struct {
|
||||||
// Chat identifier
|
// Chat identifier
|
||||||
ChatId int64 `json:"chat_id"`
|
ChatId int64 `json:"chat_id"`
|
||||||
// Identifier of the user, which tag is changed. Chats can't have member tags
|
// Identifier of the user whose tag is changed. Chats can't have member tags
|
||||||
UserId int64 `json:"user_id"`
|
UserId int64 `json:"user_id"`
|
||||||
// The new tag of the member in the chat; 0-16 characters without emoji
|
// The new tag of the member in the chat; 0-16 characters without emoji
|
||||||
Tag string `json:"tag"`
|
Tag string `json:"tag"`
|
||||||
|
|
@ -16125,7 +16509,7 @@ type EditChatInviteLinkRequest struct {
|
||||||
CreatesJoinRequest bool `json:"creates_join_request"`
|
CreatesJoinRequest bool `json:"creates_join_request"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Edits a non-primary invite link for a chat. Available for basic groups, supergroups, and channels. If the link creates a subscription, then expiration_date, member_limit and creates_join_request must not be used. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links
|
// Edits a non-primary invite link for a chat. Available in basic groups, supergroups, and channels. If the link creates a subscription, then expiration_date, member_limit and creates_join_request must not be used. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links
|
||||||
func (client *Client) EditChatInviteLink(req *EditChatInviteLinkRequest) (*ChatInviteLink, error) {
|
func (client *Client) EditChatInviteLink(req *EditChatInviteLinkRequest) (*ChatInviteLink, error) {
|
||||||
result, err := client.Send(Request{
|
result, err := client.Send(Request{
|
||||||
meta: meta{
|
meta: meta{
|
||||||
|
|
@ -16324,7 +16708,7 @@ type RevokeChatInviteLinkRequest struct {
|
||||||
InviteLink string `json:"invite_link"`
|
InviteLink string `json:"invite_link"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Revokes invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links. If a primary link is revoked, then additionally to the revoked link returns new primary link
|
// Revokes invite link for a chat. Available in basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links. If a primary link is revoked, then additionally to the revoked link returns new primary link
|
||||||
func (client *Client) RevokeChatInviteLink(req *RevokeChatInviteLinkRequest) (*ChatInviteLinks, error) {
|
func (client *Client) RevokeChatInviteLink(req *RevokeChatInviteLinkRequest) (*ChatInviteLinks, error) {
|
||||||
result, err := client.Send(Request{
|
result, err := client.Send(Request{
|
||||||
meta: meta{
|
meta: meta{
|
||||||
|
|
@ -23306,7 +23690,7 @@ type GetChatEventLogRequest struct {
|
||||||
UserIds []int64 `json:"user_ids"`
|
UserIds []int64 `json:"user_ids"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only for supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i.e., in order of decreasing event_id)
|
// Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only in supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i.e., in order of decreasing event_id)
|
||||||
func (client *Client) GetChatEventLog(req *GetChatEventLogRequest) (*ChatEvents, error) {
|
func (client *Client) GetChatEventLog(req *GetChatEventLogRequest) (*ChatEvents, error) {
|
||||||
result, err := client.Send(Request{
|
result, err := client.Send(Request{
|
||||||
meta: meta{
|
meta: meta{
|
||||||
|
|
@ -24181,6 +24565,10 @@ type SendResoldGiftRequest struct {
|
||||||
OwnerId MessageSender `json:"owner_id"`
|
OwnerId MessageSender `json:"owner_id"`
|
||||||
// The price that the user agreed to pay for the gift
|
// The price that the user agreed to pay for the gift
|
||||||
Price GiftResalePrice `json:"price"`
|
Price GiftResalePrice `json:"price"`
|
||||||
|
// Text to show along with the gift; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed. Must be empty if the receiver enabled paid messages and the price of the gift is less than the price of a paid message to the user
|
||||||
|
Text *FormattedText `json:"text"`
|
||||||
|
// Pass true to show gift text and sender only to the gift receiver; otherwise, everyone will be able to see them
|
||||||
|
IsPrivate bool `json:"is_private"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sends an upgraded gift that is available for resale to another user or channel chat; gifts already owned by the current user must be transferred using transferGift and can't be passed to the method
|
// Sends an upgraded gift that is available for resale to another user or channel chat; gifts already owned by the current user must be transferred using transferGift and can't be passed to the method
|
||||||
|
|
@ -24193,6 +24581,8 @@ func (client *Client) SendResoldGift(req *SendResoldGiftRequest) (GiftResaleResu
|
||||||
"gift_name": req.GiftName,
|
"gift_name": req.GiftName,
|
||||||
"owner_id": req.OwnerId,
|
"owner_id": req.OwnerId,
|
||||||
"price": req.Price,
|
"price": req.Price,
|
||||||
|
"text": req.Text,
|
||||||
|
"is_private": req.IsPrivate,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
@ -24508,7 +24898,7 @@ func (client *Client) GetUpgradedGiftsPromotionalAnimation() (*Animation, error)
|
||||||
type SetGiftResalePriceRequest struct {
|
type SetGiftResalePriceRequest struct {
|
||||||
// Identifier of the unique gift
|
// Identifier of the unique gift
|
||||||
ReceivedGiftId string `json:"received_gift_id"`
|
ReceivedGiftId string `json:"received_gift_id"`
|
||||||
// The new price for the unique gift; pass null to disallow gift resale. The current user will receive getOption("gift_resale_star_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for the gift if the gift price is in Telegram Stars or getOption("gift_resale_ton_earnings_per_mille") TON Grams for each 1000 Grams paid for the gift if the gift price is in Grams
|
// The new price for the unique gift; pass null to disallow gift resale. The current user will receive getOption("gift_resale_star_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for the gift if the gift price is in Telegram Stars or getOption("gift_resale_gram_earnings_per_mille") TON Grams for each 1000 Grams paid for the gift if the gift price is in Grams
|
||||||
Price GiftResalePrice `json:"price"`
|
Price GiftResalePrice `json:"price"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -28184,7 +28574,7 @@ func (client *Client) ApplyPremiumGiftCode(req *ApplyPremiumGiftCodeRequest) (*O
|
||||||
}
|
}
|
||||||
|
|
||||||
type GiftPremiumWithStarsRequest struct {
|
type GiftPremiumWithStarsRequest struct {
|
||||||
// Identifier of the user which will receive Telegram Premium
|
// Identifier of the user who will receive Telegram Premium
|
||||||
UserId int64 `json:"user_id"`
|
UserId int64 `json:"user_id"`
|
||||||
// The number of Telegram Stars to pay for subscription
|
// The number of Telegram Stars to pay for subscription
|
||||||
StarCount int64 `json:"star_count"`
|
StarCount int64 `json:"star_count"`
|
||||||
|
|
@ -30027,6 +30417,9 @@ func (client *Client) TestUseUpdate() (Update, error) {
|
||||||
case TypeUpdateMessageContent:
|
case TypeUpdateMessageContent:
|
||||||
return UnmarshalUpdateMessageContent(result.Data)
|
return UnmarshalUpdateMessageContent(result.Data)
|
||||||
|
|
||||||
|
case TypeUpdateMessageEphemeralContent:
|
||||||
|
return UnmarshalUpdateMessageEphemeralContent(result.Data)
|
||||||
|
|
||||||
case TypeUpdateMessageEdited:
|
case TypeUpdateMessageEdited:
|
||||||
return UnmarshalUpdateMessageEdited(result.Data)
|
return UnmarshalUpdateMessageEdited(result.Data)
|
||||||
|
|
||||||
|
|
@ -30162,6 +30555,9 @@ func (client *Client) TestUseUpdate() (Update, error) {
|
||||||
case TypeUpdateChatHasScheduledMessages:
|
case TypeUpdateChatHasScheduledMessages:
|
||||||
return UnmarshalUpdateChatHasScheduledMessages(result.Data)
|
return UnmarshalUpdateChatHasScheduledMessages(result.Data)
|
||||||
|
|
||||||
|
case TypeUpdateChatHasWelcomeMessages:
|
||||||
|
return UnmarshalUpdateChatHasWelcomeMessages(result.Data)
|
||||||
|
|
||||||
case TypeUpdateChatFolders:
|
case TypeUpdateChatFolders:
|
||||||
return UnmarshalUpdateChatFolders(result.Data)
|
return UnmarshalUpdateChatFolders(result.Data)
|
||||||
|
|
||||||
|
|
@ -30192,6 +30588,9 @@ func (client *Client) TestUseUpdate() (Update, error) {
|
||||||
case TypeUpdateQuickReplyShortcutMessages:
|
case TypeUpdateQuickReplyShortcutMessages:
|
||||||
return UnmarshalUpdateQuickReplyShortcutMessages(result.Data)
|
return UnmarshalUpdateQuickReplyShortcutMessages(result.Data)
|
||||||
|
|
||||||
|
case TypeUpdateChatWelcomeMessages:
|
||||||
|
return UnmarshalUpdateChatWelcomeMessages(result.Data)
|
||||||
|
|
||||||
case TypeUpdateForumTopicInfo:
|
case TypeUpdateForumTopicInfo:
|
||||||
return UnmarshalUpdateForumTopicInfo(result.Data)
|
return UnmarshalUpdateForumTopicInfo(result.Data)
|
||||||
|
|
||||||
|
|
@ -30225,6 +30624,9 @@ func (client *Client) TestUseUpdate() (Update, error) {
|
||||||
case TypeUpdatePendingMessage:
|
case TypeUpdatePendingMessage:
|
||||||
return UnmarshalUpdatePendingMessage(result.Data)
|
return UnmarshalUpdatePendingMessage(result.Data)
|
||||||
|
|
||||||
|
case TypeUpdateStopMessageDraft:
|
||||||
|
return UnmarshalUpdateStopMessageDraft(result.Data)
|
||||||
|
|
||||||
case TypeUpdateCommunity:
|
case TypeUpdateCommunity:
|
||||||
return UnmarshalUpdateCommunity(result.Data)
|
return UnmarshalUpdateCommunity(result.Data)
|
||||||
|
|
||||||
|
|
@ -30252,6 +30654,9 @@ func (client *Client) TestUseUpdate() (Update, error) {
|
||||||
case TypeUpdateSupergroupFullInfo:
|
case TypeUpdateSupergroupFullInfo:
|
||||||
return UnmarshalUpdateSupergroupFullInfo(result.Data)
|
return UnmarshalUpdateSupergroupFullInfo(result.Data)
|
||||||
|
|
||||||
|
case TypeUpdateCommunityFullInfo:
|
||||||
|
return UnmarshalUpdateCommunityFullInfo(result.Data)
|
||||||
|
|
||||||
case TypeUpdateServiceNotification:
|
case TypeUpdateServiceNotification:
|
||||||
return UnmarshalUpdateServiceNotification(result.Data)
|
return UnmarshalUpdateServiceNotification(result.Data)
|
||||||
|
|
||||||
|
|
|
||||||
954
client/type.go
954
client/type.go
File diff suppressed because it is too large
Load diff
|
|
@ -2835,6 +2835,9 @@ func UnmarshalDraftMessageContent(data json.RawMessage) (DraftMessageContent, er
|
||||||
case TypeDraftMessageContentRichMessage:
|
case TypeDraftMessageContentRichMessage:
|
||||||
return UnmarshalDraftMessageContentRichMessage(data)
|
return UnmarshalDraftMessageContentRichMessage(data)
|
||||||
|
|
||||||
|
case TypeDraftMessageContentInputRichMessage:
|
||||||
|
return UnmarshalDraftMessageContentInputRichMessage(data)
|
||||||
|
|
||||||
case TypeDraftMessageContentVideoNote:
|
case TypeDraftMessageContentVideoNote:
|
||||||
return UnmarshalDraftMessageContentVideoNote(data)
|
return UnmarshalDraftMessageContentVideoNote(data)
|
||||||
|
|
||||||
|
|
@ -3106,6 +3109,9 @@ func UnmarshalButtonStyle(data json.RawMessage) (ButtonStyle, error) {
|
||||||
case TypeButtonStyleSuccess:
|
case TypeButtonStyleSuccess:
|
||||||
return UnmarshalButtonStyleSuccess(data)
|
return UnmarshalButtonStyleSuccess(data)
|
||||||
|
|
||||||
|
case TypeButtonStyleLink:
|
||||||
|
return UnmarshalButtonStyleLink(data)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||||
}
|
}
|
||||||
|
|
@ -3216,6 +3222,9 @@ func UnmarshalInlineKeyboardButtonType(data json.RawMessage) (InlineKeyboardButt
|
||||||
case TypeInlineKeyboardButtonTypeCopyText:
|
case TypeInlineKeyboardButtonTypeCopyText:
|
||||||
return UnmarshalInlineKeyboardButtonTypeCopyText(data)
|
return UnmarshalInlineKeyboardButtonTypeCopyText(data)
|
||||||
|
|
||||||
|
case TypeInlineKeyboardButtonTypeDisabled:
|
||||||
|
return UnmarshalInlineKeyboardButtonTypeDisabled(data)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||||
}
|
}
|
||||||
|
|
@ -3501,6 +3510,9 @@ func UnmarshalRichText(data json.RawMessage) (RichText, error) {
|
||||||
case TypeRichTextMathematicalExpression:
|
case TypeRichTextMathematicalExpression:
|
||||||
return UnmarshalRichTextMathematicalExpression(data)
|
return UnmarshalRichTextMathematicalExpression(data)
|
||||||
|
|
||||||
|
case TypeRichTextButton:
|
||||||
|
return UnmarshalRichTextButton(data)
|
||||||
|
|
||||||
case TypeRichTextDiff:
|
case TypeRichTextDiff:
|
||||||
return UnmarshalRichTextDiff(data)
|
return UnmarshalRichTextDiff(data)
|
||||||
|
|
||||||
|
|
@ -3669,6 +3681,9 @@ func UnmarshalPageBlock(data json.RawMessage) (PageBlock, error) {
|
||||||
case TypePageBlockBlockQuote:
|
case TypePageBlockBlockQuote:
|
||||||
return UnmarshalPageBlockBlockQuote(data)
|
return UnmarshalPageBlockBlockQuote(data)
|
||||||
|
|
||||||
|
case TypePageBlockExpandableBlockQuote:
|
||||||
|
return UnmarshalPageBlockExpandableBlockQuote(data)
|
||||||
|
|
||||||
case TypePageBlockPullQuote:
|
case TypePageBlockPullQuote:
|
||||||
return UnmarshalPageBlockPullQuote(data)
|
return UnmarshalPageBlockPullQuote(data)
|
||||||
|
|
||||||
|
|
@ -3678,6 +3693,9 @@ func UnmarshalPageBlock(data json.RawMessage) (PageBlock, error) {
|
||||||
case TypePageBlockAudio:
|
case TypePageBlockAudio:
|
||||||
return UnmarshalPageBlockAudio(data)
|
return UnmarshalPageBlockAudio(data)
|
||||||
|
|
||||||
|
case TypePageBlockDocument:
|
||||||
|
return UnmarshalPageBlockDocument(data)
|
||||||
|
|
||||||
case TypePageBlockPhoto:
|
case TypePageBlockPhoto:
|
||||||
return UnmarshalPageBlockPhoto(data)
|
return UnmarshalPageBlockPhoto(data)
|
||||||
|
|
||||||
|
|
@ -3717,6 +3735,12 @@ func UnmarshalPageBlock(data json.RawMessage) (PageBlock, error) {
|
||||||
case TypePageBlockMap:
|
case TypePageBlockMap:
|
||||||
return UnmarshalPageBlockMap(data)
|
return UnmarshalPageBlockMap(data)
|
||||||
|
|
||||||
|
case TypePageBlockButtonRow:
|
||||||
|
return UnmarshalPageBlockButtonRow(data)
|
||||||
|
|
||||||
|
case TypePageBlockUnsupported:
|
||||||
|
return UnmarshalPageBlockUnsupported(data)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||||
}
|
}
|
||||||
|
|
@ -4693,6 +4717,9 @@ func UnmarshalMessageContent(data json.RawMessage) (MessageContent, error) {
|
||||||
case TypeMessageChatJoinByRequest:
|
case TypeMessageChatJoinByRequest:
|
||||||
return UnmarshalMessageChatJoinByRequest(data)
|
return UnmarshalMessageChatJoinByRequest(data)
|
||||||
|
|
||||||
|
case TypeMessageChatJoinFromCommunity:
|
||||||
|
return UnmarshalMessageChatJoinFromCommunity(data)
|
||||||
|
|
||||||
case TypeMessageChatDeleteMember:
|
case TypeMessageChatDeleteMember:
|
||||||
return UnmarshalMessageChatDeleteMember(data)
|
return UnmarshalMessageChatDeleteMember(data)
|
||||||
|
|
||||||
|
|
@ -4783,8 +4810,8 @@ func UnmarshalMessageContent(data json.RawMessage) (MessageContent, error) {
|
||||||
case TypeMessageGiftedStars:
|
case TypeMessageGiftedStars:
|
||||||
return UnmarshalMessageGiftedStars(data)
|
return UnmarshalMessageGiftedStars(data)
|
||||||
|
|
||||||
case TypeMessageGiftedTon:
|
case TypeMessageGiftedGrams:
|
||||||
return UnmarshalMessageGiftedTon(data)
|
return UnmarshalMessageGiftedGrams(data)
|
||||||
|
|
||||||
case TypeMessageGiveawayPrizeStars:
|
case TypeMessageGiveawayPrizeStars:
|
||||||
return UnmarshalMessageGiveawayPrizeStars(data)
|
return UnmarshalMessageGiveawayPrizeStars(data)
|
||||||
|
|
@ -5287,6 +5314,9 @@ func UnmarshalInputPageBlock(data json.RawMessage) (InputPageBlock, error) {
|
||||||
case TypeInputPageBlockBlockQuote:
|
case TypeInputPageBlockBlockQuote:
|
||||||
return UnmarshalInputPageBlockBlockQuote(data)
|
return UnmarshalInputPageBlockBlockQuote(data)
|
||||||
|
|
||||||
|
case TypeInputPageBlockExpandableBlockQuote:
|
||||||
|
return UnmarshalInputPageBlockExpandableBlockQuote(data)
|
||||||
|
|
||||||
case TypeInputPageBlockPullQuote:
|
case TypeInputPageBlockPullQuote:
|
||||||
return UnmarshalInputPageBlockPullQuote(data)
|
return UnmarshalInputPageBlockPullQuote(data)
|
||||||
|
|
||||||
|
|
@ -5296,6 +5326,9 @@ func UnmarshalInputPageBlock(data json.RawMessage) (InputPageBlock, error) {
|
||||||
case TypeInputPageBlockAudio:
|
case TypeInputPageBlockAudio:
|
||||||
return UnmarshalInputPageBlockAudio(data)
|
return UnmarshalInputPageBlockAudio(data)
|
||||||
|
|
||||||
|
case TypeInputPageBlockDocument:
|
||||||
|
return UnmarshalInputPageBlockDocument(data)
|
||||||
|
|
||||||
case TypeInputPageBlockPhoto:
|
case TypeInputPageBlockPhoto:
|
||||||
return UnmarshalInputPageBlockPhoto(data)
|
return UnmarshalInputPageBlockPhoto(data)
|
||||||
|
|
||||||
|
|
@ -5320,6 +5353,9 @@ func UnmarshalInputPageBlock(data json.RawMessage) (InputPageBlock, error) {
|
||||||
case TypeInputPageBlockMap:
|
case TypeInputPageBlockMap:
|
||||||
return UnmarshalInputPageBlockMap(data)
|
return UnmarshalInputPageBlockMap(data)
|
||||||
|
|
||||||
|
case TypeInputPageBlockButtonRow:
|
||||||
|
return UnmarshalInputPageBlockButtonRow(data)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||||
}
|
}
|
||||||
|
|
@ -5539,6 +5575,9 @@ func UnmarshalSearchMessagesChatTypeFilter(data json.RawMessage) (SearchMessages
|
||||||
case TypeSearchMessagesChatTypeFilterChannel:
|
case TypeSearchMessagesChatTypeFilterChannel:
|
||||||
return UnmarshalSearchMessagesChatTypeFilterChannel(data)
|
return UnmarshalSearchMessagesChatTypeFilterChannel(data)
|
||||||
|
|
||||||
|
case TypeSearchMessagesChatTypeFilterCommunity:
|
||||||
|
return UnmarshalSearchMessagesChatTypeFilterCommunity(data)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||||
}
|
}
|
||||||
|
|
@ -10224,6 +10263,9 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
|
||||||
case TypeUpdateMessageContent:
|
case TypeUpdateMessageContent:
|
||||||
return UnmarshalUpdateMessageContent(data)
|
return UnmarshalUpdateMessageContent(data)
|
||||||
|
|
||||||
|
case TypeUpdateMessageEphemeralContent:
|
||||||
|
return UnmarshalUpdateMessageEphemeralContent(data)
|
||||||
|
|
||||||
case TypeUpdateMessageEdited:
|
case TypeUpdateMessageEdited:
|
||||||
return UnmarshalUpdateMessageEdited(data)
|
return UnmarshalUpdateMessageEdited(data)
|
||||||
|
|
||||||
|
|
@ -10359,6 +10401,9 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
|
||||||
case TypeUpdateChatHasScheduledMessages:
|
case TypeUpdateChatHasScheduledMessages:
|
||||||
return UnmarshalUpdateChatHasScheduledMessages(data)
|
return UnmarshalUpdateChatHasScheduledMessages(data)
|
||||||
|
|
||||||
|
case TypeUpdateChatHasWelcomeMessages:
|
||||||
|
return UnmarshalUpdateChatHasWelcomeMessages(data)
|
||||||
|
|
||||||
case TypeUpdateChatFolders:
|
case TypeUpdateChatFolders:
|
||||||
return UnmarshalUpdateChatFolders(data)
|
return UnmarshalUpdateChatFolders(data)
|
||||||
|
|
||||||
|
|
@ -10389,6 +10434,9 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
|
||||||
case TypeUpdateQuickReplyShortcutMessages:
|
case TypeUpdateQuickReplyShortcutMessages:
|
||||||
return UnmarshalUpdateQuickReplyShortcutMessages(data)
|
return UnmarshalUpdateQuickReplyShortcutMessages(data)
|
||||||
|
|
||||||
|
case TypeUpdateChatWelcomeMessages:
|
||||||
|
return UnmarshalUpdateChatWelcomeMessages(data)
|
||||||
|
|
||||||
case TypeUpdateForumTopicInfo:
|
case TypeUpdateForumTopicInfo:
|
||||||
return UnmarshalUpdateForumTopicInfo(data)
|
return UnmarshalUpdateForumTopicInfo(data)
|
||||||
|
|
||||||
|
|
@ -10422,6 +10470,9 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
|
||||||
case TypeUpdatePendingMessage:
|
case TypeUpdatePendingMessage:
|
||||||
return UnmarshalUpdatePendingMessage(data)
|
return UnmarshalUpdatePendingMessage(data)
|
||||||
|
|
||||||
|
case TypeUpdateStopMessageDraft:
|
||||||
|
return UnmarshalUpdateStopMessageDraft(data)
|
||||||
|
|
||||||
case TypeUpdateCommunity:
|
case TypeUpdateCommunity:
|
||||||
return UnmarshalUpdateCommunity(data)
|
return UnmarshalUpdateCommunity(data)
|
||||||
|
|
||||||
|
|
@ -10449,6 +10500,9 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
|
||||||
case TypeUpdateSupergroupFullInfo:
|
case TypeUpdateSupergroupFullInfo:
|
||||||
return UnmarshalUpdateSupergroupFullInfo(data)
|
return UnmarshalUpdateSupergroupFullInfo(data)
|
||||||
|
|
||||||
|
case TypeUpdateCommunityFullInfo:
|
||||||
|
return UnmarshalUpdateCommunityFullInfo(data)
|
||||||
|
|
||||||
case TypeUpdateServiceNotification:
|
case TypeUpdateServiceNotification:
|
||||||
return UnmarshalUpdateServiceNotification(data)
|
return UnmarshalUpdateServiceNotification(data)
|
||||||
|
|
||||||
|
|
@ -13854,6 +13908,14 @@ func UnmarshalProfileAccentColor(data json.RawMessage) (*ProfileAccentColor, err
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalCommunityId(data json.RawMessage) (*CommunityId, error) {
|
||||||
|
var resp CommunityId
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalCommunityPermissions(data json.RawMessage) (*CommunityPermissions, error) {
|
func UnmarshalCommunityPermissions(data json.RawMessage) (*CommunityPermissions, error) {
|
||||||
var resp CommunityPermissions
|
var resp CommunityPermissions
|
||||||
|
|
||||||
|
|
@ -13918,6 +13980,22 @@ func UnmarshalCommunity(data json.RawMessage) (*Community, error) {
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalCommunityChat(data json.RawMessage) (*CommunityChat, error) {
|
||||||
|
var resp CommunityChat
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalCommunityFullInfo(data json.RawMessage) (*CommunityFullInfo, error) {
|
||||||
|
var resp CommunityFullInfo
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalUserRating(data json.RawMessage) (*UserRating, error) {
|
func UnmarshalUserRating(data json.RawMessage) (*UserRating, error) {
|
||||||
var resp UserRating
|
var resp UserRating
|
||||||
|
|
||||||
|
|
@ -14878,6 +14956,14 @@ func UnmarshalFactCheck(data json.RawMessage) (*FactCheck, error) {
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalEphemeralMessageContent(data json.RawMessage) (*EphemeralMessageContent, error) {
|
||||||
|
var resp EphemeralMessageContent
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalMessage(data json.RawMessage) (*Message, error) {
|
func UnmarshalMessage(data json.RawMessage) (*Message, error) {
|
||||||
var resp Message
|
var resp Message
|
||||||
|
|
||||||
|
|
@ -15270,6 +15356,14 @@ func UnmarshalDraftMessageContentRichMessage(data json.RawMessage) (*DraftMessag
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalDraftMessageContentInputRichMessage(data json.RawMessage) (*DraftMessageContentInputRichMessage, error) {
|
||||||
|
var resp DraftMessageContentInputRichMessage
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalDraftMessageContentVideoNote(data json.RawMessage) (*DraftMessageContentVideoNote, error) {
|
func UnmarshalDraftMessageContentVideoNote(data json.RawMessage) (*DraftMessageContentVideoNote, error) {
|
||||||
var resp DraftMessageContentVideoNote
|
var resp DraftMessageContentVideoNote
|
||||||
|
|
||||||
|
|
@ -15654,6 +15748,14 @@ func UnmarshalButtonStyleSuccess(data json.RawMessage) (*ButtonStyleSuccess, err
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalButtonStyleLink(data json.RawMessage) (*ButtonStyleLink, error) {
|
||||||
|
var resp ButtonStyleLink
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalKeyboardButtonTypeText(data json.RawMessage) (*KeyboardButtonTypeText, error) {
|
func UnmarshalKeyboardButtonTypeText(data json.RawMessage) (*KeyboardButtonTypeText, error) {
|
||||||
var resp KeyboardButtonTypeText
|
var resp KeyboardButtonTypeText
|
||||||
|
|
||||||
|
|
@ -15806,6 +15908,14 @@ func UnmarshalInlineKeyboardButtonTypeCopyText(data json.RawMessage) (*InlineKey
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalInlineKeyboardButtonTypeDisabled(data json.RawMessage) (*InlineKeyboardButtonTypeDisabled, error) {
|
||||||
|
var resp InlineKeyboardButtonTypeDisabled
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalKeyboardButtonSourceMessage(data json.RawMessage) (*KeyboardButtonSourceMessage, error) {
|
func UnmarshalKeyboardButtonSourceMessage(data json.RawMessage) (*KeyboardButtonSourceMessage, error) {
|
||||||
var resp KeyboardButtonSourceMessage
|
var resp KeyboardButtonSourceMessage
|
||||||
|
|
||||||
|
|
@ -16030,6 +16140,14 @@ func UnmarshalThemeSettings(data json.RawMessage) (*ThemeSettings, error) {
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalInlineButton(data json.RawMessage) (*InlineButton, error) {
|
||||||
|
var resp InlineButton
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalRichTextPlain(data json.RawMessage) (*RichTextPlain, error) {
|
func UnmarshalRichTextPlain(data json.RawMessage) (*RichTextPlain, error) {
|
||||||
var resp RichTextPlain
|
var resp RichTextPlain
|
||||||
|
|
||||||
|
|
@ -16214,6 +16332,14 @@ func UnmarshalRichTextMathematicalExpression(data json.RawMessage) (*RichTextMat
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalRichTextButton(data json.RawMessage) (*RichTextButton, error) {
|
||||||
|
var resp RichTextButton
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalRichTextDiff(data json.RawMessage) (*RichTextDiff, error) {
|
func UnmarshalRichTextDiff(data json.RawMessage) (*RichTextDiff, error) {
|
||||||
var resp RichTextDiff
|
var resp RichTextDiff
|
||||||
|
|
||||||
|
|
@ -16478,6 +16604,14 @@ func UnmarshalPageBlockBlockQuote(data json.RawMessage) (*PageBlockBlockQuote, e
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalPageBlockExpandableBlockQuote(data json.RawMessage) (*PageBlockExpandableBlockQuote, error) {
|
||||||
|
var resp PageBlockExpandableBlockQuote
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalPageBlockPullQuote(data json.RawMessage) (*PageBlockPullQuote, error) {
|
func UnmarshalPageBlockPullQuote(data json.RawMessage) (*PageBlockPullQuote, error) {
|
||||||
var resp PageBlockPullQuote
|
var resp PageBlockPullQuote
|
||||||
|
|
||||||
|
|
@ -16502,6 +16636,14 @@ func UnmarshalPageBlockAudio(data json.RawMessage) (*PageBlockAudio, error) {
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalPageBlockDocument(data json.RawMessage) (*PageBlockDocument, error) {
|
||||||
|
var resp PageBlockDocument
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalPageBlockPhoto(data json.RawMessage) (*PageBlockPhoto, error) {
|
func UnmarshalPageBlockPhoto(data json.RawMessage) (*PageBlockPhoto, error) {
|
||||||
var resp PageBlockPhoto
|
var resp PageBlockPhoto
|
||||||
|
|
||||||
|
|
@ -16606,6 +16748,22 @@ func UnmarshalPageBlockMap(data json.RawMessage) (*PageBlockMap, error) {
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalPageBlockButtonRow(data json.RawMessage) (*PageBlockButtonRow, error) {
|
||||||
|
var resp PageBlockButtonRow
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalPageBlockUnsupported(data json.RawMessage) (*PageBlockUnsupported, error) {
|
||||||
|
var resp PageBlockUnsupported
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalWebPageInstantView(data json.RawMessage) (*WebPageInstantView, error) {
|
func UnmarshalWebPageInstantView(data json.RawMessage) (*WebPageInstantView, error) {
|
||||||
var resp WebPageInstantView
|
var resp WebPageInstantView
|
||||||
|
|
||||||
|
|
@ -18310,6 +18468,14 @@ func UnmarshalMessageChatJoinByRequest(data json.RawMessage) (*MessageChatJoinBy
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalMessageChatJoinFromCommunity(data json.RawMessage) (*MessageChatJoinFromCommunity, error) {
|
||||||
|
var resp MessageChatJoinFromCommunity
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalMessageChatDeleteMember(data json.RawMessage) (*MessageChatDeleteMember, error) {
|
func UnmarshalMessageChatDeleteMember(data json.RawMessage) (*MessageChatDeleteMember, error) {
|
||||||
var resp MessageChatDeleteMember
|
var resp MessageChatDeleteMember
|
||||||
|
|
||||||
|
|
@ -18550,8 +18716,8 @@ func UnmarshalMessageGiftedStars(data json.RawMessage) (*MessageGiftedStars, err
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func UnmarshalMessageGiftedTon(data json.RawMessage) (*MessageGiftedTon, error) {
|
func UnmarshalMessageGiftedGrams(data json.RawMessage) (*MessageGiftedGrams, error) {
|
||||||
var resp MessageGiftedTon
|
var resp MessageGiftedGrams
|
||||||
|
|
||||||
err := json.Unmarshal(data, &resp)
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
|
@ -19318,6 +19484,14 @@ func UnmarshalInputPageBlockBlockQuote(data json.RawMessage) (*InputPageBlockBlo
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalInputPageBlockExpandableBlockQuote(data json.RawMessage) (*InputPageBlockExpandableBlockQuote, error) {
|
||||||
|
var resp InputPageBlockExpandableBlockQuote
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalInputPageBlockPullQuote(data json.RawMessage) (*InputPageBlockPullQuote, error) {
|
func UnmarshalInputPageBlockPullQuote(data json.RawMessage) (*InputPageBlockPullQuote, error) {
|
||||||
var resp InputPageBlockPullQuote
|
var resp InputPageBlockPullQuote
|
||||||
|
|
||||||
|
|
@ -19342,6 +19516,14 @@ func UnmarshalInputPageBlockAudio(data json.RawMessage) (*InputPageBlockAudio, e
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalInputPageBlockDocument(data json.RawMessage) (*InputPageBlockDocument, error) {
|
||||||
|
var resp InputPageBlockDocument
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalInputPageBlockPhoto(data json.RawMessage) (*InputPageBlockPhoto, error) {
|
func UnmarshalInputPageBlockPhoto(data json.RawMessage) (*InputPageBlockPhoto, error) {
|
||||||
var resp InputPageBlockPhoto
|
var resp InputPageBlockPhoto
|
||||||
|
|
||||||
|
|
@ -19406,6 +19588,14 @@ func UnmarshalInputPageBlockMap(data json.RawMessage) (*InputPageBlockMap, error
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalInputPageBlockButtonRow(data json.RawMessage) (*InputPageBlockButtonRow, error) {
|
||||||
|
var resp InputPageBlockButtonRow
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalInputMessageText(data json.RawMessage) (*InputMessageText, error) {
|
func UnmarshalInputMessageText(data json.RawMessage) (*InputMessageText, error) {
|
||||||
var resp InputMessageText
|
var resp InputMessageText
|
||||||
|
|
||||||
|
|
@ -19782,6 +19972,14 @@ func UnmarshalSearchMessagesChatTypeFilterChannel(data json.RawMessage) (*Search
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalSearchMessagesChatTypeFilterCommunity(data json.RawMessage) (*SearchMessagesChatTypeFilterCommunity, error) {
|
||||||
|
var resp SearchMessagesChatTypeFilterCommunity
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalSearchChatTypeFilterBot(data json.RawMessage) (*SearchChatTypeFilterBot, error) {
|
func UnmarshalSearchChatTypeFilterBot(data json.RawMessage) (*SearchChatTypeFilterBot, error) {
|
||||||
var resp SearchChatTypeFilterBot
|
var resp SearchChatTypeFilterBot
|
||||||
|
|
||||||
|
|
@ -20518,6 +20716,14 @@ func UnmarshalQuickReplyShortcut(data json.RawMessage) (*QuickReplyShortcut, err
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalWelcomeMessage(data json.RawMessage) (*WelcomeMessage, error) {
|
||||||
|
var resp WelcomeMessage
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalPublicForwardMessage(data json.RawMessage) (*PublicForwardMessage, error) {
|
func UnmarshalPublicForwardMessage(data json.RawMessage) (*PublicForwardMessage, error) {
|
||||||
var resp PublicForwardMessage
|
var resp PublicForwardMessage
|
||||||
|
|
||||||
|
|
@ -26550,6 +26756,14 @@ func UnmarshalUpdateMessageContent(data json.RawMessage) (*UpdateMessageContent,
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalUpdateMessageEphemeralContent(data json.RawMessage) (*UpdateMessageEphemeralContent, error) {
|
||||||
|
var resp UpdateMessageEphemeralContent
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalUpdateMessageEdited(data json.RawMessage) (*UpdateMessageEdited, error) {
|
func UnmarshalUpdateMessageEdited(data json.RawMessage) (*UpdateMessageEdited, error) {
|
||||||
var resp UpdateMessageEdited
|
var resp UpdateMessageEdited
|
||||||
|
|
||||||
|
|
@ -26910,6 +27124,14 @@ func UnmarshalUpdateChatHasScheduledMessages(data json.RawMessage) (*UpdateChatH
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalUpdateChatHasWelcomeMessages(data json.RawMessage) (*UpdateChatHasWelcomeMessages, error) {
|
||||||
|
var resp UpdateChatHasWelcomeMessages
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalUpdateChatFolders(data json.RawMessage) (*UpdateChatFolders, error) {
|
func UnmarshalUpdateChatFolders(data json.RawMessage) (*UpdateChatFolders, error) {
|
||||||
var resp UpdateChatFolders
|
var resp UpdateChatFolders
|
||||||
|
|
||||||
|
|
@ -26990,6 +27212,14 @@ func UnmarshalUpdateQuickReplyShortcutMessages(data json.RawMessage) (*UpdateQui
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalUpdateChatWelcomeMessages(data json.RawMessage) (*UpdateChatWelcomeMessages, error) {
|
||||||
|
var resp UpdateChatWelcomeMessages
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalUpdateForumTopicInfo(data json.RawMessage) (*UpdateForumTopicInfo, error) {
|
func UnmarshalUpdateForumTopicInfo(data json.RawMessage) (*UpdateForumTopicInfo, error) {
|
||||||
var resp UpdateForumTopicInfo
|
var resp UpdateForumTopicInfo
|
||||||
|
|
||||||
|
|
@ -27078,6 +27308,14 @@ func UnmarshalUpdatePendingMessage(data json.RawMessage) (*UpdatePendingMessage,
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalUpdateStopMessageDraft(data json.RawMessage) (*UpdateStopMessageDraft, error) {
|
||||||
|
var resp UpdateStopMessageDraft
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalUpdateCommunity(data json.RawMessage) (*UpdateCommunity, error) {
|
func UnmarshalUpdateCommunity(data json.RawMessage) (*UpdateCommunity, error) {
|
||||||
var resp UpdateCommunity
|
var resp UpdateCommunity
|
||||||
|
|
||||||
|
|
@ -27150,6 +27388,14 @@ func UnmarshalUpdateSupergroupFullInfo(data json.RawMessage) (*UpdateSupergroupF
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalUpdateCommunityFullInfo(data json.RawMessage) (*UpdateCommunityFullInfo, error) {
|
||||||
|
var resp UpdateCommunityFullInfo
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalUpdateServiceNotification(data json.RawMessage) (*UpdateServiceNotification, error) {
|
func UnmarshalUpdateServiceNotification(data json.RawMessage) (*UpdateServiceNotification, error) {
|
||||||
var resp UpdateServiceNotification
|
var resp UpdateServiceNotification
|
||||||
|
|
||||||
|
|
@ -29235,6 +29481,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeProfileAccentColor:
|
case TypeProfileAccentColor:
|
||||||
return UnmarshalProfileAccentColor(data)
|
return UnmarshalProfileAccentColor(data)
|
||||||
|
|
||||||
|
case TypeCommunityId:
|
||||||
|
return UnmarshalCommunityId(data)
|
||||||
|
|
||||||
case TypeCommunityPermissions:
|
case TypeCommunityPermissions:
|
||||||
return UnmarshalCommunityPermissions(data)
|
return UnmarshalCommunityPermissions(data)
|
||||||
|
|
||||||
|
|
@ -29259,6 +29508,12 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeCommunity:
|
case TypeCommunity:
|
||||||
return UnmarshalCommunity(data)
|
return UnmarshalCommunity(data)
|
||||||
|
|
||||||
|
case TypeCommunityChat:
|
||||||
|
return UnmarshalCommunityChat(data)
|
||||||
|
|
||||||
|
case TypeCommunityFullInfo:
|
||||||
|
return UnmarshalCommunityFullInfo(data)
|
||||||
|
|
||||||
case TypeUserRating:
|
case TypeUserRating:
|
||||||
return UnmarshalUserRating(data)
|
return UnmarshalUserRating(data)
|
||||||
|
|
||||||
|
|
@ -29619,6 +29874,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeFactCheck:
|
case TypeFactCheck:
|
||||||
return UnmarshalFactCheck(data)
|
return UnmarshalFactCheck(data)
|
||||||
|
|
||||||
|
case TypeEphemeralMessageContent:
|
||||||
|
return UnmarshalEphemeralMessageContent(data)
|
||||||
|
|
||||||
case TypeMessage:
|
case TypeMessage:
|
||||||
return UnmarshalMessage(data)
|
return UnmarshalMessage(data)
|
||||||
|
|
||||||
|
|
@ -29766,6 +30024,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeDraftMessageContentRichMessage:
|
case TypeDraftMessageContentRichMessage:
|
||||||
return UnmarshalDraftMessageContentRichMessage(data)
|
return UnmarshalDraftMessageContentRichMessage(data)
|
||||||
|
|
||||||
|
case TypeDraftMessageContentInputRichMessage:
|
||||||
|
return UnmarshalDraftMessageContentInputRichMessage(data)
|
||||||
|
|
||||||
case TypeDraftMessageContentVideoNote:
|
case TypeDraftMessageContentVideoNote:
|
||||||
return UnmarshalDraftMessageContentVideoNote(data)
|
return UnmarshalDraftMessageContentVideoNote(data)
|
||||||
|
|
||||||
|
|
@ -29910,6 +30171,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeButtonStyleSuccess:
|
case TypeButtonStyleSuccess:
|
||||||
return UnmarshalButtonStyleSuccess(data)
|
return UnmarshalButtonStyleSuccess(data)
|
||||||
|
|
||||||
|
case TypeButtonStyleLink:
|
||||||
|
return UnmarshalButtonStyleLink(data)
|
||||||
|
|
||||||
case TypeKeyboardButtonTypeText:
|
case TypeKeyboardButtonTypeText:
|
||||||
return UnmarshalKeyboardButtonTypeText(data)
|
return UnmarshalKeyboardButtonTypeText(data)
|
||||||
|
|
||||||
|
|
@ -29967,6 +30231,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeInlineKeyboardButtonTypeCopyText:
|
case TypeInlineKeyboardButtonTypeCopyText:
|
||||||
return UnmarshalInlineKeyboardButtonTypeCopyText(data)
|
return UnmarshalInlineKeyboardButtonTypeCopyText(data)
|
||||||
|
|
||||||
|
case TypeInlineKeyboardButtonTypeDisabled:
|
||||||
|
return UnmarshalInlineKeyboardButtonTypeDisabled(data)
|
||||||
|
|
||||||
case TypeKeyboardButtonSourceMessage:
|
case TypeKeyboardButtonSourceMessage:
|
||||||
return UnmarshalKeyboardButtonSourceMessage(data)
|
return UnmarshalKeyboardButtonSourceMessage(data)
|
||||||
|
|
||||||
|
|
@ -30051,6 +30318,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeThemeSettings:
|
case TypeThemeSettings:
|
||||||
return UnmarshalThemeSettings(data)
|
return UnmarshalThemeSettings(data)
|
||||||
|
|
||||||
|
case TypeInlineButton:
|
||||||
|
return UnmarshalInlineButton(data)
|
||||||
|
|
||||||
case TypeRichTextPlain:
|
case TypeRichTextPlain:
|
||||||
return UnmarshalRichTextPlain(data)
|
return UnmarshalRichTextPlain(data)
|
||||||
|
|
||||||
|
|
@ -30120,6 +30390,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeRichTextMathematicalExpression:
|
case TypeRichTextMathematicalExpression:
|
||||||
return UnmarshalRichTextMathematicalExpression(data)
|
return UnmarshalRichTextMathematicalExpression(data)
|
||||||
|
|
||||||
|
case TypeRichTextButton:
|
||||||
|
return UnmarshalRichTextButton(data)
|
||||||
|
|
||||||
case TypeRichTextDiff:
|
case TypeRichTextDiff:
|
||||||
return UnmarshalRichTextDiff(data)
|
return UnmarshalRichTextDiff(data)
|
||||||
|
|
||||||
|
|
@ -30219,6 +30492,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypePageBlockBlockQuote:
|
case TypePageBlockBlockQuote:
|
||||||
return UnmarshalPageBlockBlockQuote(data)
|
return UnmarshalPageBlockBlockQuote(data)
|
||||||
|
|
||||||
|
case TypePageBlockExpandableBlockQuote:
|
||||||
|
return UnmarshalPageBlockExpandableBlockQuote(data)
|
||||||
|
|
||||||
case TypePageBlockPullQuote:
|
case TypePageBlockPullQuote:
|
||||||
return UnmarshalPageBlockPullQuote(data)
|
return UnmarshalPageBlockPullQuote(data)
|
||||||
|
|
||||||
|
|
@ -30228,6 +30504,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypePageBlockAudio:
|
case TypePageBlockAudio:
|
||||||
return UnmarshalPageBlockAudio(data)
|
return UnmarshalPageBlockAudio(data)
|
||||||
|
|
||||||
|
case TypePageBlockDocument:
|
||||||
|
return UnmarshalPageBlockDocument(data)
|
||||||
|
|
||||||
case TypePageBlockPhoto:
|
case TypePageBlockPhoto:
|
||||||
return UnmarshalPageBlockPhoto(data)
|
return UnmarshalPageBlockPhoto(data)
|
||||||
|
|
||||||
|
|
@ -30267,6 +30546,12 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypePageBlockMap:
|
case TypePageBlockMap:
|
||||||
return UnmarshalPageBlockMap(data)
|
return UnmarshalPageBlockMap(data)
|
||||||
|
|
||||||
|
case TypePageBlockButtonRow:
|
||||||
|
return UnmarshalPageBlockButtonRow(data)
|
||||||
|
|
||||||
|
case TypePageBlockUnsupported:
|
||||||
|
return UnmarshalPageBlockUnsupported(data)
|
||||||
|
|
||||||
case TypeWebPageInstantView:
|
case TypeWebPageInstantView:
|
||||||
return UnmarshalWebPageInstantView(data)
|
return UnmarshalWebPageInstantView(data)
|
||||||
|
|
||||||
|
|
@ -30906,6 +31191,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeMessageChatJoinByRequest:
|
case TypeMessageChatJoinByRequest:
|
||||||
return UnmarshalMessageChatJoinByRequest(data)
|
return UnmarshalMessageChatJoinByRequest(data)
|
||||||
|
|
||||||
|
case TypeMessageChatJoinFromCommunity:
|
||||||
|
return UnmarshalMessageChatJoinFromCommunity(data)
|
||||||
|
|
||||||
case TypeMessageChatDeleteMember:
|
case TypeMessageChatDeleteMember:
|
||||||
return UnmarshalMessageChatDeleteMember(data)
|
return UnmarshalMessageChatDeleteMember(data)
|
||||||
|
|
||||||
|
|
@ -30996,8 +31284,8 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeMessageGiftedStars:
|
case TypeMessageGiftedStars:
|
||||||
return UnmarshalMessageGiftedStars(data)
|
return UnmarshalMessageGiftedStars(data)
|
||||||
|
|
||||||
case TypeMessageGiftedTon:
|
case TypeMessageGiftedGrams:
|
||||||
return UnmarshalMessageGiftedTon(data)
|
return UnmarshalMessageGiftedGrams(data)
|
||||||
|
|
||||||
case TypeMessageGiveawayPrizeStars:
|
case TypeMessageGiveawayPrizeStars:
|
||||||
return UnmarshalMessageGiveawayPrizeStars(data)
|
return UnmarshalMessageGiveawayPrizeStars(data)
|
||||||
|
|
@ -31284,6 +31572,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeInputPageBlockBlockQuote:
|
case TypeInputPageBlockBlockQuote:
|
||||||
return UnmarshalInputPageBlockBlockQuote(data)
|
return UnmarshalInputPageBlockBlockQuote(data)
|
||||||
|
|
||||||
|
case TypeInputPageBlockExpandableBlockQuote:
|
||||||
|
return UnmarshalInputPageBlockExpandableBlockQuote(data)
|
||||||
|
|
||||||
case TypeInputPageBlockPullQuote:
|
case TypeInputPageBlockPullQuote:
|
||||||
return UnmarshalInputPageBlockPullQuote(data)
|
return UnmarshalInputPageBlockPullQuote(data)
|
||||||
|
|
||||||
|
|
@ -31293,6 +31584,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeInputPageBlockAudio:
|
case TypeInputPageBlockAudio:
|
||||||
return UnmarshalInputPageBlockAudio(data)
|
return UnmarshalInputPageBlockAudio(data)
|
||||||
|
|
||||||
|
case TypeInputPageBlockDocument:
|
||||||
|
return UnmarshalInputPageBlockDocument(data)
|
||||||
|
|
||||||
case TypeInputPageBlockPhoto:
|
case TypeInputPageBlockPhoto:
|
||||||
return UnmarshalInputPageBlockPhoto(data)
|
return UnmarshalInputPageBlockPhoto(data)
|
||||||
|
|
||||||
|
|
@ -31317,6 +31611,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeInputPageBlockMap:
|
case TypeInputPageBlockMap:
|
||||||
return UnmarshalInputPageBlockMap(data)
|
return UnmarshalInputPageBlockMap(data)
|
||||||
|
|
||||||
|
case TypeInputPageBlockButtonRow:
|
||||||
|
return UnmarshalInputPageBlockButtonRow(data)
|
||||||
|
|
||||||
case TypeInputMessageText:
|
case TypeInputMessageText:
|
||||||
return UnmarshalInputMessageText(data)
|
return UnmarshalInputMessageText(data)
|
||||||
|
|
||||||
|
|
@ -31458,6 +31755,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeSearchMessagesChatTypeFilterChannel:
|
case TypeSearchMessagesChatTypeFilterChannel:
|
||||||
return UnmarshalSearchMessagesChatTypeFilterChannel(data)
|
return UnmarshalSearchMessagesChatTypeFilterChannel(data)
|
||||||
|
|
||||||
|
case TypeSearchMessagesChatTypeFilterCommunity:
|
||||||
|
return UnmarshalSearchMessagesChatTypeFilterCommunity(data)
|
||||||
|
|
||||||
case TypeSearchChatTypeFilterBot:
|
case TypeSearchChatTypeFilterBot:
|
||||||
return UnmarshalSearchChatTypeFilterBot(data)
|
return UnmarshalSearchChatTypeFilterBot(data)
|
||||||
|
|
||||||
|
|
@ -31734,6 +32034,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeQuickReplyShortcut:
|
case TypeQuickReplyShortcut:
|
||||||
return UnmarshalQuickReplyShortcut(data)
|
return UnmarshalQuickReplyShortcut(data)
|
||||||
|
|
||||||
|
case TypeWelcomeMessage:
|
||||||
|
return UnmarshalWelcomeMessage(data)
|
||||||
|
|
||||||
case TypePublicForwardMessage:
|
case TypePublicForwardMessage:
|
||||||
return UnmarshalPublicForwardMessage(data)
|
return UnmarshalPublicForwardMessage(data)
|
||||||
|
|
||||||
|
|
@ -33996,6 +34299,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeUpdateMessageContent:
|
case TypeUpdateMessageContent:
|
||||||
return UnmarshalUpdateMessageContent(data)
|
return UnmarshalUpdateMessageContent(data)
|
||||||
|
|
||||||
|
case TypeUpdateMessageEphemeralContent:
|
||||||
|
return UnmarshalUpdateMessageEphemeralContent(data)
|
||||||
|
|
||||||
case TypeUpdateMessageEdited:
|
case TypeUpdateMessageEdited:
|
||||||
return UnmarshalUpdateMessageEdited(data)
|
return UnmarshalUpdateMessageEdited(data)
|
||||||
|
|
||||||
|
|
@ -34131,6 +34437,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeUpdateChatHasScheduledMessages:
|
case TypeUpdateChatHasScheduledMessages:
|
||||||
return UnmarshalUpdateChatHasScheduledMessages(data)
|
return UnmarshalUpdateChatHasScheduledMessages(data)
|
||||||
|
|
||||||
|
case TypeUpdateChatHasWelcomeMessages:
|
||||||
|
return UnmarshalUpdateChatHasWelcomeMessages(data)
|
||||||
|
|
||||||
case TypeUpdateChatFolders:
|
case TypeUpdateChatFolders:
|
||||||
return UnmarshalUpdateChatFolders(data)
|
return UnmarshalUpdateChatFolders(data)
|
||||||
|
|
||||||
|
|
@ -34161,6 +34470,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeUpdateQuickReplyShortcutMessages:
|
case TypeUpdateQuickReplyShortcutMessages:
|
||||||
return UnmarshalUpdateQuickReplyShortcutMessages(data)
|
return UnmarshalUpdateQuickReplyShortcutMessages(data)
|
||||||
|
|
||||||
|
case TypeUpdateChatWelcomeMessages:
|
||||||
|
return UnmarshalUpdateChatWelcomeMessages(data)
|
||||||
|
|
||||||
case TypeUpdateForumTopicInfo:
|
case TypeUpdateForumTopicInfo:
|
||||||
return UnmarshalUpdateForumTopicInfo(data)
|
return UnmarshalUpdateForumTopicInfo(data)
|
||||||
|
|
||||||
|
|
@ -34194,6 +34506,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeUpdatePendingMessage:
|
case TypeUpdatePendingMessage:
|
||||||
return UnmarshalUpdatePendingMessage(data)
|
return UnmarshalUpdatePendingMessage(data)
|
||||||
|
|
||||||
|
case TypeUpdateStopMessageDraft:
|
||||||
|
return UnmarshalUpdateStopMessageDraft(data)
|
||||||
|
|
||||||
case TypeUpdateCommunity:
|
case TypeUpdateCommunity:
|
||||||
return UnmarshalUpdateCommunity(data)
|
return UnmarshalUpdateCommunity(data)
|
||||||
|
|
||||||
|
|
@ -34221,6 +34536,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeUpdateSupergroupFullInfo:
|
case TypeUpdateSupergroupFullInfo:
|
||||||
return UnmarshalUpdateSupergroupFullInfo(data)
|
return UnmarshalUpdateSupergroupFullInfo(data)
|
||||||
|
|
||||||
|
case TypeUpdateCommunityFullInfo:
|
||||||
|
return UnmarshalUpdateCommunityFullInfo(data)
|
||||||
|
|
||||||
case TypeUpdateServiceNotification:
|
case TypeUpdateServiceNotification:
|
||||||
return UnmarshalUpdateServiceNotification(data)
|
return UnmarshalUpdateServiceNotification(data)
|
||||||
|
|
||||||
|
|
|
||||||
314
data/td_api.tl
314
data/td_api.tl
|
|
@ -185,7 +185,7 @@ termsOfService text:formattedText min_user_age:int32 show_popup:Bool = TermsOfSe
|
||||||
//@name Name of the passkey
|
//@name Name of the passkey
|
||||||
//@addition_date Point in time (Unix timestamp) when the passkey was added
|
//@addition_date Point in time (Unix timestamp) when the passkey was added
|
||||||
//@last_usage_date Point in time (Unix timestamp) when the passkey was used last time; 0 if never
|
//@last_usage_date Point in time (Unix timestamp) when the passkey was used last time; 0 if never
|
||||||
//@software_icon_custom_emoji_id Identifier of the custom emoji that is used as the icon of the software, which created the passkey; 0 if unknown
|
//@software_icon_custom_emoji_id Identifier of the custom emoji that is used as the icon of the software that created the passkey; 0 if unknown
|
||||||
passkey id:string name:string addition_date:int32 last_usage_date:int32 software_icon_custom_emoji_id:int64 = Passkey;
|
passkey id:string name:string addition_date:int32 last_usage_date:int32 software_icon_custom_emoji_id:int64 = Passkey;
|
||||||
|
|
||||||
//@description Contains a list of passkeys @passkeys List of passkeys
|
//@description Contains a list of passkeys @passkeys List of passkeys
|
||||||
|
|
@ -458,7 +458,7 @@ pollOption id:string text:formattedText media:PollMedia voter_count:int32 vote_p
|
||||||
|
|
||||||
//@description Describes one answer option of a poll to be created
|
//@description Describes one answer option of a poll to be created
|
||||||
//@text Option text; 1-100 characters. Only custom emoji entities are allowed to be added and only by Premium users
|
//@text Option text; 1-100 characters. Only custom emoji entities are allowed to be added and only by Premium users
|
||||||
//@media Option media; pass null if none; ignored in addPollOption. Must be one of the following types:
|
//@media Option media; pass null if none. Must be one of the following types:
|
||||||
//-inputPollMediaAnimation, inputPollMediaLink, inputPollMediaLocation, inputPollMediaPhoto, inputPollMediaSticker, inputPollMediaVenue, or inputPollMediaVideo without caption
|
//-inputPollMediaAnimation, inputPollMediaLink, inputPollMediaLocation, inputPollMediaPhoto, inputPollMediaSticker, inputPollMediaVenue, or inputPollMediaVideo without caption
|
||||||
inputPollOption text:formattedText media:InputPollMedia = InputPollOption;
|
inputPollOption text:formattedText media:InputPollMedia = InputPollOption;
|
||||||
|
|
||||||
|
|
@ -1091,8 +1091,9 @@ chatPermissions can_send_basic_messages:Bool can_send_audios:Bool can_send_docum
|
||||||
//@can_delete_stories True, if the administrator can delete stories posted by other users; applicable to supergroups and channels only
|
//@can_delete_stories True, if the administrator can delete stories posted by other users; applicable to supergroups and channels only
|
||||||
//@can_manage_direct_messages True, if the administrator can answer to channel direct messages; applicable to channels only
|
//@can_manage_direct_messages True, if the administrator can answer to channel direct messages; applicable to channels only
|
||||||
//@can_manage_tags True, if the administrator can change tags of other users; applicable to basic groups and supergroups only
|
//@can_manage_tags True, if the administrator can change tags of other users; applicable to basic groups and supergroups only
|
||||||
|
//@can_send_welcome_messages True, if the administrator can manage and send welcome messages
|
||||||
//@is_anonymous True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only
|
//@is_anonymous True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only
|
||||||
chatAdministratorRights can_manage_chat:Bool can_change_info:Bool can_post_messages:Bool can_edit_messages:Bool can_delete_messages:Bool can_invite_users:Bool can_restrict_members:Bool can_pin_messages:Bool can_manage_topics:Bool can_promote_members:Bool can_manage_video_chats:Bool can_post_stories:Bool can_edit_stories:Bool can_delete_stories:Bool can_manage_direct_messages:Bool can_manage_tags:Bool is_anonymous:Bool = ChatAdministratorRights;
|
chatAdministratorRights can_manage_chat:Bool can_change_info:Bool can_post_messages:Bool can_edit_messages:Bool can_delete_messages:Bool can_invite_users:Bool can_restrict_members:Bool can_pin_messages:Bool can_manage_topics:Bool can_promote_members:Bool can_manage_video_chats:Bool can_post_stories:Bool can_edit_stories:Bool can_delete_stories:Bool can_manage_direct_messages:Bool can_manage_tags:Bool can_send_welcome_messages:Bool is_anonymous:Bool = ChatAdministratorRights;
|
||||||
|
|
||||||
|
|
||||||
//@description Contains parameters of the application theme
|
//@description Contains parameters of the application theme
|
||||||
|
|
@ -1382,7 +1383,7 @@ premiumGiftPaymentOptions options:vector<premiumGiftPaymentOption> = PremiumGift
|
||||||
//@description Describes an option for creating of Telegram Premium giveaway or manual distribution of Telegram Premium among chat members. Use telegramPaymentPurposePremiumGiftCodes or telegramPaymentPurposePremiumGiveaway for out-of-store payments
|
//@description Describes an option for creating of Telegram Premium giveaway or manual distribution of Telegram Premium among chat members. Use telegramPaymentPurposePremiumGiftCodes or telegramPaymentPurposePremiumGiveaway for out-of-store payments
|
||||||
//@currency ISO 4217 currency code for Telegram Premium gift code payment
|
//@currency ISO 4217 currency code for Telegram Premium gift code payment
|
||||||
//@amount The amount to pay, in the smallest units of the currency
|
//@amount The amount to pay, in the smallest units of the currency
|
||||||
//@winner_count Number of users which will be able to activate the gift codes
|
//@winner_count Number of users who will be able to activate the gift codes
|
||||||
//@month_count Number of months the Telegram Premium subscription will be active
|
//@month_count Number of months the Telegram Premium subscription will be active
|
||||||
//@store_product_id Identifier of the store product associated with the option; may be empty if none
|
//@store_product_id Identifier of the store product associated with the option; may be empty if none
|
||||||
//@store_product_quantity Number of times the store product must be paid
|
//@store_product_quantity Number of times the store product must be paid
|
||||||
|
|
@ -2263,6 +2264,9 @@ profileAccentColors palette_colors:vector<int32> background_colors:vector<int32>
|
||||||
profileAccentColor id:int32 light_theme_colors:profileAccentColors dark_theme_colors:profileAccentColors min_supergroup_chat_boost_level:int32 min_channel_chat_boost_level:int32 = ProfileAccentColor;
|
profileAccentColor id:int32 light_theme_colors:profileAccentColors dark_theme_colors:profileAccentColors min_supergroup_chat_boost_level:int32 min_channel_chat_boost_level:int32 = ProfileAccentColor;
|
||||||
|
|
||||||
|
|
||||||
|
//@description Contains identifier of a community @id Community identifier
|
||||||
|
communityId id:int53 = CommunityId;
|
||||||
|
|
||||||
//@description Describes actions that a user is allowed to take in a community
|
//@description Describes actions that a user is allowed to take in a community
|
||||||
//@can_edit_chat_list True, if the user can change the chats added to the community
|
//@can_edit_chat_list True, if the user can change the chats added to the community
|
||||||
communityPermissions can_edit_chat_list:Bool = CommunityPermissions;
|
communityPermissions can_edit_chat_list:Bool = CommunityPermissions;
|
||||||
|
|
@ -2304,6 +2308,20 @@ communityMemberStatusBanned = CommunityMemberStatus;
|
||||||
//@permissions Actions that non-administrator community members are allowed to take in the community
|
//@permissions Actions that non-administrator community members are allowed to take in the community
|
||||||
community id:int53 have_access:Bool name:string photo:chatPhotoInfo date:int32 status:CommunityMemberStatus permissions:communityPermissions = Community;
|
community id:int53 have_access:Bool name:string photo:chatPhotoInfo date:int32 status:CommunityMemberStatus permissions:communityPermissions = Community;
|
||||||
|
|
||||||
|
//@description Describes a chat in a community
|
||||||
|
//@chat_id Identifier of the chat in the community
|
||||||
|
//@can_view_history True, if message history of the chat can be viewed
|
||||||
|
//@is_hidden True, if the chat is hidden in the list of community chats; for community administrators only
|
||||||
|
communityChat chat_id:int53 can_view_history:Bool is_hidden:Bool = CommunityChat;
|
||||||
|
|
||||||
|
//@description Contains full information about a community
|
||||||
|
//@photo Photo of the community
|
||||||
|
//@chats Chats belonging to the community
|
||||||
|
//@administrator_count Number of privileged users in the community; 0 if the current user isn't an administrator of the community
|
||||||
|
//@banned_count Number of users banned from the community; 0 if the current user isn't an administrator of the community
|
||||||
|
//@add_chat_request_count Number of pending requests for addition of chats to the community; 0 if the current user isn't an administrator of the community
|
||||||
|
communityFullInfo photo:chatPhoto chats:vector<communityChat> administrator_count:int32 banned_count:int32 add_chat_request_count:int32 = CommunityFullInfo;
|
||||||
|
|
||||||
|
|
||||||
//@description Contains description of user rating
|
//@description Contains description of user rating
|
||||||
//@level The level of the user; may be negative
|
//@level The level of the user; may be negative
|
||||||
|
|
@ -2527,7 +2545,7 @@ chatMembersFilterAdministrators = ChatMembersFilter;
|
||||||
//@description Returns all chat members, including restricted chat members
|
//@description Returns all chat members, including restricted chat members
|
||||||
chatMembersFilterMembers = ChatMembersFilter;
|
chatMembersFilterMembers = ChatMembersFilter;
|
||||||
|
|
||||||
//@description Returns users which can be mentioned in the chat @topic_id Identifier of the topic in which the users will be mentioned; pass null if none
|
//@description Returns users who can be mentioned in the chat @topic_id Identifier of the topic in which the users will be mentioned; pass null if none
|
||||||
chatMembersFilterMention topic_id:MessageTopic = ChatMembersFilter;
|
chatMembersFilterMention topic_id:MessageTopic = ChatMembersFilter;
|
||||||
|
|
||||||
//@description Returns users under certain restrictions in the chat; can be used only by administrators in a supergroup
|
//@description Returns users under certain restrictions in the chat; can be used only by administrators in a supergroup
|
||||||
|
|
@ -2545,7 +2563,7 @@ chatMembersFilterBots = ChatMembersFilter;
|
||||||
//@description Returns recently active users in reverse chronological order
|
//@description Returns recently active users in reverse chronological order
|
||||||
supergroupMembersFilterRecent = SupergroupMembersFilter;
|
supergroupMembersFilterRecent = SupergroupMembersFilter;
|
||||||
|
|
||||||
//@description Returns contacts of the user, which are members of the supergroup or channel @query Query to search for
|
//@description Returns contacts of the current user who are members of the supergroup or channel @query Query to search for
|
||||||
supergroupMembersFilterContacts query:string = SupergroupMembersFilter;
|
supergroupMembersFilterContacts query:string = SupergroupMembersFilter;
|
||||||
|
|
||||||
//@description Returns the owner and administrators
|
//@description Returns the owner and administrators
|
||||||
|
|
@ -2560,7 +2578,7 @@ supergroupMembersFilterRestricted query:string = SupergroupMembersFilter;
|
||||||
//@description Returns users banned from the supergroup or channel; can be used only by administrators @query Query to search for
|
//@description Returns users banned from the supergroup or channel; can be used only by administrators @query Query to search for
|
||||||
supergroupMembersFilterBanned query:string = SupergroupMembersFilter;
|
supergroupMembersFilterBanned query:string = SupergroupMembersFilter;
|
||||||
|
|
||||||
//@description Returns users which can be mentioned in the supergroup @query Query to search for @topic_id Identifier of the topic in which the users will be mentioned; pass null if none
|
//@description Returns users who can be mentioned in the supergroup @query Query to search for @topic_id Identifier of the topic in which the users will be mentioned; pass null if none
|
||||||
supergroupMembersFilterMention query:string topic_id:MessageTopic = SupergroupMembersFilter;
|
supergroupMembersFilterMention query:string topic_id:MessageTopic = SupergroupMembersFilter;
|
||||||
|
|
||||||
//@description Returns bot members of the supergroup or channel
|
//@description Returns bot members of the supergroup or channel
|
||||||
|
|
@ -2872,7 +2890,7 @@ messageViewers viewers:vector<messageViewer> = MessageViewers;
|
||||||
//@description The message was originally sent by a known user @sender_user_id Identifier of the user who originally sent the message
|
//@description The message was originally sent by a known user @sender_user_id Identifier of the user who originally sent the message
|
||||||
messageOriginUser sender_user_id:int53 = MessageOrigin;
|
messageOriginUser sender_user_id:int53 = MessageOrigin;
|
||||||
|
|
||||||
//@description The message was originally sent by a user, which is hidden by their privacy settings @sender_name Name of the sender
|
//@description The message was originally sent by a user who is hidden by their privacy settings @sender_name Name of the sender
|
||||||
messageOriginHiddenUser sender_name:string = MessageOrigin;
|
messageOriginHiddenUser sender_name:string = MessageOrigin;
|
||||||
|
|
||||||
//@description The message was originally sent on behalf of a chat
|
//@description The message was originally sent on behalf of a chat
|
||||||
|
|
@ -3095,6 +3113,13 @@ inputMessageReplyToEphemeralMessage ephemeral_message_id:int32 = InputMessageRep
|
||||||
//@country_code A two-letter ISO 3166-1 alpha-2 country code of the country for which the fact-check is shown
|
//@country_code A two-letter ISO 3166-1 alpha-2 country code of the country for which the fact-check is shown
|
||||||
factCheck text:formattedText country_code:string = FactCheck;
|
factCheck text:formattedText country_code:string = FactCheck;
|
||||||
|
|
||||||
|
//@description Describes an ephemeral content of a regular message, which must be shown instead of the regular content
|
||||||
|
//@can_be_saved True, if content of the message can be saved locally
|
||||||
|
//@has_timestamped_media True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message
|
||||||
|
//@content Content of the message
|
||||||
|
//@reply_markup Reply markup for the message; may be null if none
|
||||||
|
ephemeralMessageContent can_be_saved:Bool has_timestamped_media:Bool content:MessageContent reply_markup:ReplyMarkup = EphemeralMessageContent;
|
||||||
|
|
||||||
|
|
||||||
//@description Describes a message
|
//@description Describes a message
|
||||||
//@id Message identifier; unique for the chat to which the message belongs
|
//@id Message identifier; unique for the chat to which the message belongs
|
||||||
|
|
@ -3139,9 +3164,11 @@ factCheck text:formattedText country_code:string = FactCheck;
|
||||||
//@restriction_info Information about the restrictions that must be applied to the message content; may be null if none
|
//@restriction_info Information about the restrictions that must be applied to the message content; may be null if none
|
||||||
//@summary_language_code IETF language tag of the message language on which it can be summarized; empty if summary isn't available for the message
|
//@summary_language_code IETF language tag of the message language on which it can be summarized; empty if summary isn't available for the message
|
||||||
//@content Content of the message
|
//@content Content of the message
|
||||||
|
//@ephemeral_content Content of the message, which is visible only to the current user and must be shown instead of the regular content; may be null if none
|
||||||
//@reply_markup Reply markup for the message; may be null if none
|
//@reply_markup Reply markup for the message; may be null if none
|
||||||
//@ephemeral_message_id Unique identifier of the ephemeral message if the message is ephemeral; for bots only
|
//@ephemeral_message_id Unique identifier of the ephemeral message if the message is ephemeral; for bots only
|
||||||
message id:int53 sender_id:MessageSender receiver_id:MessageSender chat_id:int53 sending_state:MessageSendingState scheduling_state:MessageSchedulingState is_outgoing:Bool is_pinned:Bool is_from_offline:Bool can_be_saved:Bool has_timestamped_media:Bool is_channel_post:Bool is_paid_star_suggested_post:Bool is_paid_gram_suggested_post:Bool contains_unread_mention:Bool contains_unread_poll_votes:Bool date:int32 edit_date:int32 forward_info:messageForwardInfo import_info:messageImportInfo interaction_info:messageInteractionInfo unread_reactions:vector<unreadReaction> fact_check:factCheck suggested_post_info:suggestedPostInfo reply_to:MessageReplyTo topic_id:MessageTopic self_destruct_type:MessageSelfDestructType self_destruct_in:double auto_delete_in:double via_bot_user_id:int53 guest_bot_caller_id:MessageSender sender_business_bot_user_id:int53 sender_boost_count:int32 sender_tag:string paid_message_star_count:int53 author_signature:string media_album_id:int64 effect_id:int64 restriction_info:restrictionInfo summary_language_code:string content:MessageContent reply_markup:ReplyMarkup ephemeral_message_id:int32 = Message;
|
//@chat_instance Identifier that uniquely corresponds to the chat to which the message was sent; for bots only
|
||||||
|
message id:int53 sender_id:MessageSender receiver_id:MessageSender chat_id:int53 sending_state:MessageSendingState scheduling_state:MessageSchedulingState is_outgoing:Bool is_pinned:Bool is_from_offline:Bool can_be_saved:Bool has_timestamped_media:Bool is_channel_post:Bool is_paid_star_suggested_post:Bool is_paid_gram_suggested_post:Bool contains_unread_mention:Bool contains_unread_poll_votes:Bool date:int32 edit_date:int32 forward_info:messageForwardInfo import_info:messageImportInfo interaction_info:messageInteractionInfo unread_reactions:vector<unreadReaction> fact_check:factCheck suggested_post_info:suggestedPostInfo reply_to:MessageReplyTo topic_id:MessageTopic self_destruct_type:MessageSelfDestructType self_destruct_in:double auto_delete_in:double via_bot_user_id:int53 guest_bot_caller_id:MessageSender sender_business_bot_user_id:int53 sender_boost_count:int32 sender_tag:string paid_message_star_count:int53 author_signature:string media_album_id:int64 effect_id:int64 restriction_info:restrictionInfo summary_language_code:string content:MessageContent ephemeral_content:ephemeralMessageContent reply_markup:ReplyMarkup ephemeral_message_id:int32 chat_instance:int64 = Message;
|
||||||
|
|
||||||
|
|
||||||
//@description Contains a list of messages @total_count Approximate total number of messages found @messages List of messages; messages may be null
|
//@description Contains a list of messages @total_count Approximate total number of messages found @messages List of messages; messages may be null
|
||||||
|
|
@ -3382,9 +3409,12 @@ reactionNotificationSettings message_reaction_source:ReactionNotificationSource
|
||||||
//@link_preview_options Options to be used for generation of a link preview; may be null if none; pass null to use default link preview options
|
//@link_preview_options Options to be used for generation of a link preview; may be null if none; pass null to use default link preview options
|
||||||
draftMessageContentText text:formattedText link_preview_options:linkPreviewOptions = DraftMessageContent;
|
draftMessageContentText text:formattedText link_preview_options:linkPreviewOptions = DraftMessageContent;
|
||||||
|
|
||||||
//@description A rich message draft; not supported in setChatDraftMessage @message The rich message; the message must not have not yet uploaded media
|
//@description A rich message draft; not supported in setChatDraftMessage @message The rich message
|
||||||
draftMessageContentRichMessage message:richMessage = DraftMessageContent;
|
draftMessageContentRichMessage message:richMessage = DraftMessageContent;
|
||||||
|
|
||||||
|
//@description A rich message draft; only for setChatDraftMessage @message The rich message
|
||||||
|
draftMessageContentInputRichMessage message:inputRichMessage = DraftMessageContent;
|
||||||
|
|
||||||
//@description A video note message draft
|
//@description A video note message draft
|
||||||
//@file_path Path to the file with the video note
|
//@file_path Path to the file with the video note
|
||||||
//@duration Duration of the video, in seconds; 0-60
|
//@duration Duration of the video, in seconds; 0-60
|
||||||
|
|
@ -3576,6 +3606,7 @@ videoChat group_call_id:int32 has_participants:Bool default_participant_id:Messa
|
||||||
//@is_marked_as_unread True, if the chat is marked as unread
|
//@is_marked_as_unread True, if the chat is marked as unread
|
||||||
//@view_as_topics True, if the chat is a forum supergroup that must be shown in the "View as topics" mode, or Saved Messages chat that must be shown in the "View as chats"
|
//@view_as_topics True, if the chat is a forum supergroup that must be shown in the "View as topics" mode, or Saved Messages chat that must be shown in the "View as chats"
|
||||||
//@has_scheduled_messages True, if the chat has scheduled messages
|
//@has_scheduled_messages True, if the chat has scheduled messages
|
||||||
|
//@has_welcome_messages True, if the chat has welcome messages; for chat administrators with can_change_info administrator right only
|
||||||
//@can_be_deleted_only_for_self True, if the chat messages can be deleted only for the current user while other users will continue to see the messages
|
//@can_be_deleted_only_for_self True, if the chat messages can be deleted only for the current user while other users will continue to see the messages
|
||||||
//@can_be_deleted_for_all_users True, if the chat messages can be deleted for all users
|
//@can_be_deleted_for_all_users True, if the chat messages can be deleted for all users
|
||||||
//@can_be_reported True, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto
|
//@can_be_reported True, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto
|
||||||
|
|
@ -3599,7 +3630,7 @@ videoChat group_call_id:int32 has_participants:Bool default_participant_id:Messa
|
||||||
//@reply_markup_message_id Identifier of the message from which reply markup needs to be used; 0 if there is no reply markup in the chat
|
//@reply_markup_message_id Identifier of the message from which reply markup needs to be used; 0 if there is no reply markup in the chat
|
||||||
//@draft_message A draft of a message in the chat; may be null if none
|
//@draft_message A draft of a message in the chat; may be null if none
|
||||||
//@client_data Application-specific data associated with the chat. (For example, the chat scroll position or local chat notification settings can be stored here.) Persistent if the message database is used
|
//@client_data Application-specific data associated with the chat. (For example, the chat scroll position or local chat notification settings can be stored here.) Persistent if the message database is used
|
||||||
chat id:int53 type:ChatType title:string photo:chatPhotoInfo accent_color_id:int32 background_custom_emoji_id:int64 upgraded_gift_colors:upgradedGiftColors profile_accent_color_id:int32 profile_background_custom_emoji_id:int64 permissions:chatPermissions last_message:message positions:vector<chatPosition> chat_lists:vector<ChatList> message_sender_id:MessageSender block_list:BlockList has_protected_content:Bool is_translatable:Bool is_marked_as_unread:Bool view_as_topics:Bool has_scheduled_messages:Bool can_be_deleted_only_for_self:Bool can_be_deleted_for_all_users:Bool can_be_reported:Bool default_disable_notification:Bool unread_count:int32 last_read_inbox_message_id:int53 last_read_outbox_message_id:int53 unread_mention_count:int32 unread_reaction_count:int32 unread_poll_vote_count:int32 notification_settings:chatNotificationSettings available_reactions:ChatAvailableReactions message_auto_delete_time:int32 emoji_status:emojiStatus background:chatBackground theme:ChatTheme action_bar:ChatActionBar business_bot_manage_bar:businessBotManageBar video_chat:videoChat pending_join_requests:chatJoinRequestsInfo reply_markup_message_id:int53 draft_message:draftMessage client_data:string = Chat;
|
chat id:int53 type:ChatType title:string photo:chatPhotoInfo accent_color_id:int32 background_custom_emoji_id:int64 upgraded_gift_colors:upgradedGiftColors profile_accent_color_id:int32 profile_background_custom_emoji_id:int64 permissions:chatPermissions last_message:message positions:vector<chatPosition> chat_lists:vector<ChatList> message_sender_id:MessageSender block_list:BlockList has_protected_content:Bool is_translatable:Bool is_marked_as_unread:Bool view_as_topics:Bool has_scheduled_messages:Bool has_welcome_messages:Bool can_be_deleted_only_for_self:Bool can_be_deleted_for_all_users:Bool can_be_reported:Bool default_disable_notification:Bool unread_count:int32 last_read_inbox_message_id:int53 last_read_outbox_message_id:int53 unread_mention_count:int32 unread_reaction_count:int32 unread_poll_vote_count:int32 notification_settings:chatNotificationSettings available_reactions:ChatAvailableReactions message_auto_delete_time:int32 emoji_status:emojiStatus background:chatBackground theme:ChatTheme action_bar:ChatActionBar business_bot_manage_bar:businessBotManageBar video_chat:videoChat pending_join_requests:chatJoinRequestsInfo reply_markup_message_id:int53 draft_message:draftMessage client_data:string = Chat;
|
||||||
|
|
||||||
//@description Represents a list of chats @total_count Approximate total number of chats found @chat_ids List of chat identifiers
|
//@description Represents a list of chats @total_count Approximate total number of chats found @chat_ids List of chat identifiers
|
||||||
chats total_count:int32 chat_ids:vector<int53> = Chats;
|
chats total_count:int32 chat_ids:vector<int53> = Chats;
|
||||||
|
|
@ -3679,6 +3710,9 @@ buttonStyleDanger = ButtonStyle;
|
||||||
//@description The button has green color
|
//@description The button has green color
|
||||||
buttonStyleSuccess = ButtonStyle;
|
buttonStyleSuccess = ButtonStyle;
|
||||||
|
|
||||||
|
//@description The button must be shown as a link. The style is allowed only for callback buttons in inlineButton
|
||||||
|
buttonStyleLink = ButtonStyle;
|
||||||
|
|
||||||
|
|
||||||
//@class KeyboardButtonType @description Describes a keyboard button type
|
//@class KeyboardButtonType @description Describes a keyboard button type
|
||||||
|
|
||||||
|
|
@ -3745,7 +3779,10 @@ keyboardButton text:string icon_custom_emoji_id:int64 style:ButtonStyle type:Key
|
||||||
//@description A button that opens a specified URL @url HTTP or tg:// URL to open. If the link is of the type internalLinkTypeWebApp, then the button must be marked as a Web App button
|
//@description A button that opens a specified URL @url HTTP or tg:// URL to open. If the link is of the type internalLinkTypeWebApp, then the button must be marked as a Web App button
|
||||||
inlineKeyboardButtonTypeUrl url:string = InlineKeyboardButtonType;
|
inlineKeyboardButtonTypeUrl url:string = InlineKeyboardButtonType;
|
||||||
|
|
||||||
//@description A button that opens a specified URL and automatically authorize the current user by calling getLoginUrlInfo @url An HTTP URL to pass to getLoginUrlInfo @id Unique button identifier @forward_text If non-empty, new text of the button in forwarded messages
|
//@description A button that opens a specified URL and automatically authorize the current user by calling getLoginUrlInfo; not supported in ephemeral messages
|
||||||
|
//@url An HTTP URL to pass to getLoginUrlInfo
|
||||||
|
//@id Unique button identifier
|
||||||
|
//@forward_text If non-empty, new text of the button in forwarded messages
|
||||||
inlineKeyboardButtonTypeLoginUrl url:string id:int53 forward_text:string = InlineKeyboardButtonType;
|
inlineKeyboardButtonTypeLoginUrl url:string id:int53 forward_text:string = InlineKeyboardButtonType;
|
||||||
|
|
||||||
//@description A button that opens a Web App by calling openWebApp @url An HTTP URL to pass to openWebApp
|
//@description A button that opens a Web App by calling openWebApp @url An HTTP URL to pass to openWebApp
|
||||||
|
|
@ -3772,6 +3809,9 @@ inlineKeyboardButtonTypeUser user_id:int53 = InlineKeyboardButtonType;
|
||||||
//@description A button that copies specified text to clipboard @text The text to copy to clipboard
|
//@description A button that copies specified text to clipboard @text The text to copy to clipboard
|
||||||
inlineKeyboardButtonTypeCopyText text:string = InlineKeyboardButtonType;
|
inlineKeyboardButtonTypeCopyText text:string = InlineKeyboardButtonType;
|
||||||
|
|
||||||
|
//@description A disabled button
|
||||||
|
inlineKeyboardButtonTypeDisabled = InlineKeyboardButtonType;
|
||||||
|
|
||||||
|
|
||||||
//@class KeyboardButtonSource @description Describes source of a keyboard button
|
//@class KeyboardButtonSource @description Describes source of a keyboard button
|
||||||
|
|
||||||
|
|
@ -3811,12 +3851,14 @@ replyMarkupForceReply is_personal:Bool input_field_placeholder:string = ReplyMar
|
||||||
//@resize_keyboard True, if the application needs to resize the keyboard vertically
|
//@resize_keyboard True, if the application needs to resize the keyboard vertically
|
||||||
//@one_time True, if the application needs to hide the keyboard after use
|
//@one_time True, if the application needs to hide the keyboard after use
|
||||||
//@is_personal True, if the keyboard must automatically be shown to the current user. For outgoing messages, specify true to show the keyboard only for the mentioned users and for the target user of a reply
|
//@is_personal True, if the keyboard must automatically be shown to the current user. For outgoing messages, specify true to show the keyboard only for the mentioned users and for the target user of a reply
|
||||||
|
//@force_reply True, if the keyboard must force reply to the message with the keyboard
|
||||||
//@input_field_placeholder If non-empty, the placeholder to be shown in the input field when the keyboard is active; 0-64 characters
|
//@input_field_placeholder If non-empty, the placeholder to be shown in the input field when the keyboard is active; 0-64 characters
|
||||||
replyMarkupShowKeyboard rows:vector<vector<keyboardButton>> is_persistent:Bool resize_keyboard:Bool one_time:Bool is_personal:Bool input_field_placeholder:string = ReplyMarkup;
|
replyMarkupShowKeyboard rows:vector<vector<keyboardButton>> is_persistent:Bool resize_keyboard:Bool one_time:Bool is_personal:Bool force_reply:Bool input_field_placeholder:string = ReplyMarkup;
|
||||||
|
|
||||||
//@description Contains an inline keyboard layout
|
//@description Contains an inline keyboard layout
|
||||||
//@rows A list of rows of inline keyboard buttons
|
//@rows A list of rows of inline keyboard buttons
|
||||||
replyMarkupInlineKeyboard rows:vector<vector<inlineKeyboardButton>> = ReplyMarkup;
|
//@force_reply True, if a reply to the message must be forced when the message is received
|
||||||
|
replyMarkupInlineKeyboard rows:vector<vector<inlineKeyboardButton>> force_reply:Bool = ReplyMarkup;
|
||||||
|
|
||||||
|
|
||||||
//@class LoginUrlInfo @description Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl or an external link
|
//@class LoginUrlInfo @description Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl or an external link
|
||||||
|
|
@ -3984,6 +4026,16 @@ builtInThemeArctic = BuiltInTheme;
|
||||||
themeSettings base_theme:BuiltInTheme accent_color:int32 background:background outgoing_message_fill:BackgroundFill animate_outgoing_message_fill:Bool outgoing_message_accent_color:int32 = ThemeSettings;
|
themeSettings base_theme:BuiltInTheme accent_color:int32 background:background outgoing_message_fill:BackgroundFill animate_outgoing_message_fill:Bool outgoing_message_accent_color:int32 = ThemeSettings;
|
||||||
|
|
||||||
|
|
||||||
|
//@description Represents a button inside a rich message
|
||||||
|
//@text Text of the button; only richTexts, richTextPlain, and richTextCustomEmoji are allowed
|
||||||
|
//@style Style of the button
|
||||||
|
//@type Type of the button; must be one of inlineKeyboardButtonTypeUrl, inlineKeyboardButtonTypeLoginUrl, inlineKeyboardButtonTypeWebApp, inlineKeyboardButtonTypeCallback,
|
||||||
|
//-inlineKeyboardButtonTypeSwitchInline, inlineKeyboardButtonTypeUser, inlineKeyboardButtonTypeCopyText. Additionally,
|
||||||
|
//-inlineKeyboardButtonTypeCallbackWithPassword and inlineKeyboardButtonTypeDisabled may be received in incoming messages. Regular users may use only inlineKeyboardButtonTypeUrl,
|
||||||
|
//-inlineKeyboardButtonTypeUser and inlineKeyboardButtonTypeCopyText
|
||||||
|
inlineButton text:RichText style:ButtonStyle type:InlineKeyboardButtonType = InlineButton;
|
||||||
|
|
||||||
|
|
||||||
//@class RichText @description Describes a formatted text object
|
//@class RichText @description Describes a formatted text object
|
||||||
|
|
||||||
//@description A plain text @text Text
|
//@description A plain text @text Text
|
||||||
|
|
@ -4061,6 +4113,9 @@ richTextIcon document:document width:int32 height:int32 = RichText;
|
||||||
//@description A mathematical expression @expression The expression in LaTeX format
|
//@description A mathematical expression @expression The expression in LaTeX format
|
||||||
richTextMathematicalExpression expression:string = RichText;
|
richTextMathematicalExpression expression:string = RichText;
|
||||||
|
|
||||||
|
//@description A button @button The button
|
||||||
|
richTextButton button:inlineButton = RichText;
|
||||||
|
|
||||||
//@description A rich text replacing another rich text; not supported in inputRichMessage @text Text @old_text The old text
|
//@description A rich text replacing another rich text; not supported in inputRichMessage @text Text @old_text The old text
|
||||||
richTextDiff text:RichText old_text:RichText = RichText;
|
richTextDiff text:RichText old_text:RichText = RichText;
|
||||||
|
|
||||||
|
|
@ -4195,6 +4250,11 @@ pageBlockList items:vector<pageBlockListItem> = PageBlock;
|
||||||
//@credit Quote credit; may be null if none
|
//@credit Quote credit; may be null if none
|
||||||
pageBlockBlockQuote blocks:vector<PageBlock> credit:RichText = PageBlock;
|
pageBlockBlockQuote blocks:vector<PageBlock> credit:RichText = PageBlock;
|
||||||
|
|
||||||
|
//@description An expandable block quote
|
||||||
|
//@text Text of the quote
|
||||||
|
//@credit Quote credit; may be null if none
|
||||||
|
pageBlockExpandableBlockQuote text:RichText credit:RichText = PageBlock;
|
||||||
|
|
||||||
//@description A pull quote
|
//@description A pull quote
|
||||||
//@text Quote text
|
//@text Quote text
|
||||||
//@credit Quote credit; may be null if none
|
//@credit Quote credit; may be null if none
|
||||||
|
|
@ -4208,10 +4268,15 @@ pageBlockPullQuote text:RichText credit:RichText = PageBlock;
|
||||||
pageBlockAnimation animation:animation caption:pageBlockCaption need_autoplay:Bool has_spoiler:Bool = PageBlock;
|
pageBlockAnimation animation:animation caption:pageBlockCaption need_autoplay:Bool has_spoiler:Bool = PageBlock;
|
||||||
|
|
||||||
//@description An audio file
|
//@description An audio file
|
||||||
//@audio Audio file; may be null
|
//@audio Audio file
|
||||||
//@caption Audio file caption; may be null if none
|
//@caption Audio file caption; may be null if none
|
||||||
pageBlockAudio audio:audio caption:pageBlockCaption = PageBlock;
|
pageBlockAudio audio:audio caption:pageBlockCaption = PageBlock;
|
||||||
|
|
||||||
|
//@description A general file
|
||||||
|
//@document The file
|
||||||
|
//@caption File caption; may be null if none
|
||||||
|
pageBlockDocument document:document caption:pageBlockCaption = PageBlock;
|
||||||
|
|
||||||
//@description A photo
|
//@description A photo
|
||||||
//@photo Photo file; may be null
|
//@photo Photo file; may be null
|
||||||
//@caption Photo caption; may be null if none
|
//@caption Photo caption; may be null if none
|
||||||
|
|
@ -4228,7 +4293,7 @@ pageBlockPhoto photo:photo caption:pageBlockCaption url:string has_spoiler:Bool
|
||||||
pageBlockVideo video:video caption:pageBlockCaption need_autoplay:Bool is_looped:Bool has_spoiler:Bool = PageBlock;
|
pageBlockVideo video:video caption:pageBlockCaption need_autoplay:Bool is_looped:Bool has_spoiler:Bool = PageBlock;
|
||||||
|
|
||||||
//@description A voice note
|
//@description A voice note
|
||||||
//@voice_note Voice note; may be null
|
//@voice_note Voice note
|
||||||
//@caption Voice note caption; may be null if none
|
//@caption Voice note caption; may be null if none
|
||||||
pageBlockVoiceNote voice_note:voiceNote caption:pageBlockCaption = PageBlock;
|
pageBlockVoiceNote voice_note:voiceNote caption:pageBlockCaption = PageBlock;
|
||||||
|
|
||||||
|
|
@ -4277,7 +4342,8 @@ pageBlockChatLink title:string photo:chatPhotoInfo accent_color_id:int32 usernam
|
||||||
//@cells Table cells
|
//@cells Table cells
|
||||||
//@is_bordered True, if the table is bordered
|
//@is_bordered True, if the table is bordered
|
||||||
//@is_striped True, if the table is striped
|
//@is_striped True, if the table is striped
|
||||||
pageBlockTable caption:RichText cells:vector<vector<pageBlockTableCell>> is_bordered:Bool is_striped:Bool = PageBlock;
|
//@is_compact True, if table cells must have smaller indents
|
||||||
|
pageBlockTable caption:RichText cells:vector<vector<pageBlockTableCell>> is_bordered:Bool is_striped:Bool is_compact:Bool = PageBlock;
|
||||||
|
|
||||||
//@description A collapsible block
|
//@description A collapsible block
|
||||||
//@header Always visible heading for the block
|
//@header Always visible heading for the block
|
||||||
|
|
@ -4298,6 +4364,14 @@ pageBlockRelatedArticles header:RichText articles:vector<pageBlockRelatedArticle
|
||||||
//@caption Block caption; may be null if none
|
//@caption Block caption; may be null if none
|
||||||
pageBlockMap location:location zoom:int32 width:int32 height:int32 caption:pageBlockCaption = PageBlock;
|
pageBlockMap location:location zoom:int32 width:int32 height:int32 caption:pageBlockCaption = PageBlock;
|
||||||
|
|
||||||
|
//@description A list of buttons shown in a row
|
||||||
|
//@buttons The buttons
|
||||||
|
//@align Horizontal alignment of the buttons; may be null if the buttons must be shown full-width
|
||||||
|
pageBlockButtonRow buttons:vector<inlineButton> align:PageBlockHorizontalAlignment = PageBlock;
|
||||||
|
|
||||||
|
//@description Represents a block unsupported by the current application version
|
||||||
|
pageBlockUnsupported = PageBlock;
|
||||||
|
|
||||||
|
|
||||||
//@description Describes an instant view page for a web page
|
//@description Describes an instant view page for a web page
|
||||||
//@blocks Content of the instant view page
|
//@blocks Content of the instant view page
|
||||||
|
|
@ -5282,6 +5356,9 @@ messageChatJoinByLink = MessageContent;
|
||||||
//@description A new member was accepted to the chat by an administrator
|
//@description A new member was accepted to the chat by an administrator
|
||||||
messageChatJoinByRequest = MessageContent;
|
messageChatJoinByRequest = MessageContent;
|
||||||
|
|
||||||
|
//@description A new member joined the chat from a community @community_id Identifier of the community from which the user joined the chat
|
||||||
|
messageChatJoinFromCommunity community_id:int53 = MessageContent;
|
||||||
|
|
||||||
//@description A chat member was deleted @user_id User identifier of the deleted chat member
|
//@description A chat member was deleted @user_id User identifier of the deleted chat member
|
||||||
messageChatDeleteMember user_id:int53 = MessageContent;
|
messageChatDeleteMember user_id:int53 = MessageContent;
|
||||||
|
|
||||||
|
|
@ -5348,8 +5425,10 @@ messageCustomServiceAction text:string = MessageContent;
|
||||||
//@description A new high score was achieved in a game @game_message_id Identifier of the message with the game, can be an identifier of a deleted message @game_id Identifier of the game; may be different from the games presented in the message with the game @score New score
|
//@description A new high score was achieved in a game @game_message_id Identifier of the message with the game, can be an identifier of a deleted message @game_id Identifier of the game; may be different from the games presented in the message with the game @score New score
|
||||||
messageGameScore game_message_id:int53 game_id:int64 score:int32 = MessageContent;
|
messageGameScore game_message_id:int53 game_id:int64 score:int32 = MessageContent;
|
||||||
|
|
||||||
//@description A bot managed by another bot was created by the user @bot_user_id User identifier of the created bot
|
//@description A bot managed by another bot was created by the user
|
||||||
messageManagedBotCreated bot_user_id:int53 = MessageContent;
|
//@bot_user_id User identifier of the created bot
|
||||||
|
//@manager_bot_user_id Identifier of the bot which will manage the new bot
|
||||||
|
messageManagedBotCreated bot_user_id:int53 manager_bot_user_id:int53 = MessageContent;
|
||||||
|
|
||||||
//@description A payment has been sent to a bot or a business account
|
//@description A payment has been sent to a bot or a business account
|
||||||
//@invoice_chat_id Identifier of the chat, containing the corresponding invoice message
|
//@invoice_chat_id Identifier of the chat, containing the corresponding invoice message
|
||||||
|
|
@ -5418,7 +5497,7 @@ messageGiveawayCreated star_count:int53 = MessageContent;
|
||||||
|
|
||||||
//@description A giveaway
|
//@description A giveaway
|
||||||
//@parameters Giveaway parameters
|
//@parameters Giveaway parameters
|
||||||
//@winner_count Number of users which will receive Telegram Premium subscription gift codes
|
//@winner_count Number of users who will receive Telegram Premium subscription gift codes
|
||||||
//@prize Prize of the giveaway
|
//@prize Prize of the giveaway
|
||||||
//@sticker A sticker to be shown in the message; may be null if unknown
|
//@sticker A sticker to be shown in the message; may be null if unknown
|
||||||
messageGiveaway parameters:giveawayParameters winner_count:int32 prize:GiveawayPrize sticker:sticker = MessageContent;
|
messageGiveaway parameters:giveawayParameters winner_count:int32 prize:GiveawayPrize sticker:sticker = MessageContent;
|
||||||
|
|
@ -5462,7 +5541,7 @@ messageGiftedStars gifter_user_id:int53 receiver_user_id:int53 currency:string a
|
||||||
//@gram_amount The received Gram amount, in the smallest units of the cryptocurrency
|
//@gram_amount The received Gram amount, in the smallest units of the cryptocurrency
|
||||||
//@transaction_id Identifier of the transaction for Gram credit; for receiver only
|
//@transaction_id Identifier of the transaction for Gram credit; for receiver only
|
||||||
//@sticker A sticker to be shown in the message; may be null if unknown
|
//@sticker A sticker to be shown in the message; may be null if unknown
|
||||||
messageGiftedTon gifter_user_id:int53 receiver_user_id:int53 gram_amount:int53 transaction_id:string sticker:sticker = MessageContent;
|
messageGiftedGrams gifter_user_id:int53 receiver_user_id:int53 gram_amount:int53 transaction_id:string sticker:sticker = MessageContent;
|
||||||
|
|
||||||
//@description Telegram Stars were received by the current user from a giveaway
|
//@description Telegram Stars were received by the current user from a giveaway
|
||||||
//@star_count Number of Telegram Stars that were received
|
//@star_count Number of Telegram Stars that were received
|
||||||
|
|
@ -5501,6 +5580,8 @@ messageGift gift:gift sender_id:MessageSender receiver_id:MessageSender received
|
||||||
//@receiver_id Receiver of the gift
|
//@receiver_id Receiver of the gift
|
||||||
//@origin Origin of the upgraded gift
|
//@origin Origin of the upgraded gift
|
||||||
//@received_gift_id Unique identifier of the received gift for the current user; only for the receiver of the gift
|
//@received_gift_id Unique identifier of the received gift for the current user; only for the receiver of the gift
|
||||||
|
//@text Message added to the gift
|
||||||
|
//@is_private True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them
|
||||||
//@is_saved True, if the gift is displayed on the user's or the channel's profile page; only for the receiver of the gift
|
//@is_saved True, if the gift is displayed on the user's or the channel's profile page; only for the receiver of the gift
|
||||||
//@can_be_transferred True, if the gift can be transferred to another owner; only for the receiver of the gift
|
//@can_be_transferred True, if the gift can be transferred to another owner; only for the receiver of the gift
|
||||||
//@was_transferred True, if the gift has already been transferred to another owner; only for the receiver of the gift
|
//@was_transferred True, if the gift has already been transferred to another owner; only for the receiver of the gift
|
||||||
|
|
@ -5510,7 +5591,7 @@ messageGift gift:gift sender_id:MessageSender receiver_id:MessageSender received
|
||||||
//@next_resale_date Point in time (Unix timestamp) when the gift can be resold to another user; can be in the past; 0 if the gift can't be resold; only for the receiver of the gift
|
//@next_resale_date Point in time (Unix timestamp) when the gift can be resold to another user; can be in the past; 0 if the gift can't be resold; only for the receiver of the gift
|
||||||
//@export_date Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT; can be in the past; 0 if NFT export isn't possible; only for the receiver of the gift
|
//@export_date Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT; can be in the past; 0 if NFT export isn't possible; only for the receiver of the gift
|
||||||
//@craft_date Point in time (Unix timestamp) when the gift can be used to craft another gift; can be in the past; only for the receiver of the gift
|
//@craft_date Point in time (Unix timestamp) when the gift can be used to craft another gift; can be in the past; only for the receiver of the gift
|
||||||
messageUpgradedGift gift:upgradedGift sender_id:MessageSender receiver_id:MessageSender origin:UpgradedGiftOrigin received_gift_id:string is_saved:Bool can_be_transferred:Bool was_transferred:Bool transfer_star_count:int53 drop_original_details_star_count:int53 next_transfer_date:int32 next_resale_date:int32 export_date:int32 craft_date:int32 = MessageContent;
|
messageUpgradedGift gift:upgradedGift sender_id:MessageSender receiver_id:MessageSender origin:UpgradedGiftOrigin received_gift_id:string text:formattedText is_private:Bool is_saved:Bool can_be_transferred:Bool was_transferred:Bool transfer_star_count:int53 drop_original_details_star_count:int53 next_transfer_date:int32 next_resale_date:int32 export_date:int32 craft_date:int32 = MessageContent;
|
||||||
|
|
||||||
//@description A gift which purchase, upgrade or transfer were refunded
|
//@description A gift which purchase, upgrade or transfer were refunded
|
||||||
//@gift The gift
|
//@gift The gift
|
||||||
|
|
@ -5586,7 +5667,7 @@ messageSuggestedPostRefunded suggested_post_message_id:int53 reason:SuggestedPos
|
||||||
//@description A contact has registered with Telegram
|
//@description A contact has registered with Telegram
|
||||||
messageContactRegistered = MessageContent;
|
messageContactRegistered = MessageContent;
|
||||||
|
|
||||||
//@description The current user shared users, which were requested by the bot @users The shared users @button_id Identifier of the keyboard button with the request
|
//@description The current user shared users who were requested by the bot @users The shared users @button_id Identifier of the keyboard button with the request
|
||||||
messageUsersShared users:vector<sharedUser> button_id:int32 = MessageContent;
|
messageUsersShared users:vector<sharedUser> button_id:int32 = MessageContent;
|
||||||
|
|
||||||
//@description The current user shared a chat, which was requested by the bot @chat The shared chat @button_id Identifier of the keyboard button with the request
|
//@description The current user shared a chat, which was requested by the bot @chat The shared chat @button_id Identifier of the keyboard button with the request
|
||||||
|
|
@ -5929,6 +6010,9 @@ inputPageBlockList items:vector<inputPageBlockListItem> = InputPageBlock;
|
||||||
//@description A block quote @blocks Quote blocks @credit Quote credit; pass null if none
|
//@description A block quote @blocks Quote blocks @credit Quote credit; pass null if none
|
||||||
inputPageBlockBlockQuote blocks:vector<InputPageBlock> credit:RichText = InputPageBlock;
|
inputPageBlockBlockQuote blocks:vector<InputPageBlock> credit:RichText = InputPageBlock;
|
||||||
|
|
||||||
|
//@description An expandable block quote @text Quote text @credit Quote credit; pass null if none
|
||||||
|
inputPageBlockExpandableBlockQuote text:RichText credit:RichText = InputPageBlock;
|
||||||
|
|
||||||
//@description A pull quote @text Quote text @credit Quote credit; pass null if none
|
//@description A pull quote @text Quote text @credit Quote credit; pass null if none
|
||||||
inputPageBlockPullQuote text:RichText credit:RichText = InputPageBlock;
|
inputPageBlockPullQuote text:RichText credit:RichText = InputPageBlock;
|
||||||
|
|
||||||
|
|
@ -5941,6 +6025,9 @@ inputPageBlockAnimation animation:inputAnimation caption:pageBlockCaption has_sp
|
||||||
//@description An audio file @audio The audio to be sent @caption Audio file caption; pass null if none
|
//@description An audio file @audio The audio to be sent @caption Audio file caption; pass null if none
|
||||||
inputPageBlockAudio audio:inputAudio caption:pageBlockCaption = InputPageBlock;
|
inputPageBlockAudio audio:inputAudio caption:pageBlockCaption = InputPageBlock;
|
||||||
|
|
||||||
|
//@description A general file @document The file to be sent @caption File caption; pass null if none
|
||||||
|
inputPageBlockDocument document:inputDocument caption:pageBlockCaption = InputPageBlock;
|
||||||
|
|
||||||
//@description A photo
|
//@description A photo
|
||||||
//@photo The photo to be sent
|
//@photo The photo to be sent
|
||||||
//@caption Photo caption; pass null if none
|
//@caption Photo caption; pass null if none
|
||||||
|
|
@ -5965,9 +6052,10 @@ inputPageBlockSlideshow blocks:vector<InputPageBlock> caption:pageBlockCaption =
|
||||||
//@description A table
|
//@description A table
|
||||||
//@caption Table caption
|
//@caption Table caption
|
||||||
//@cells Table cells
|
//@cells Table cells
|
||||||
//@is_bordered True, if the table is bordered
|
//@is_bordered Pass true if the table is bordered
|
||||||
//@is_striped True, if the table is striped
|
//@is_striped Pass true if the table is striped
|
||||||
inputPageBlockTable caption:RichText cells:vector<vector<pageBlockTableCell>> is_bordered:Bool is_striped:Bool = InputPageBlock;
|
//@is_compact Pass true if table cells must have smaller indents
|
||||||
|
inputPageBlockTable caption:RichText cells:vector<vector<pageBlockTableCell>> is_bordered:Bool is_striped:Bool is_compact:Bool = InputPageBlock;
|
||||||
|
|
||||||
//@description A collapsible block
|
//@description A collapsible block
|
||||||
//@header Always visible heading for the block
|
//@header Always visible heading for the block
|
||||||
|
|
@ -5983,6 +6071,11 @@ inputPageBlockDetails header:RichText blocks:vector<InputPageBlock> is_open:Bool
|
||||||
//@caption Block caption; pass null if none
|
//@caption Block caption; pass null if none
|
||||||
inputPageBlockMap location:location zoom:int32 width:int32 height:int32 caption:pageBlockCaption = InputPageBlock;
|
inputPageBlockMap location:location zoom:int32 width:int32 height:int32 caption:pageBlockCaption = InputPageBlock;
|
||||||
|
|
||||||
|
//@description A list of buttons shown in a row
|
||||||
|
//@buttons The buttons
|
||||||
|
//@align Horizontal alignment of the buttons; pass null if the buttons must be shown full-width
|
||||||
|
inputPageBlockButtonRow buttons:vector<inlineButton> align:PageBlockHorizontalAlignment = InputPageBlock;
|
||||||
|
|
||||||
|
|
||||||
//@class InputMessageContent @description The content of a message to send
|
//@class InputMessageContent @description The content of a message to send
|
||||||
|
|
||||||
|
|
@ -6253,6 +6346,9 @@ searchMessagesChatTypeFilterGroup = SearchMessagesChatTypeFilter;
|
||||||
//@description Returns only messages in channel chats
|
//@description Returns only messages in channel chats
|
||||||
searchMessagesChatTypeFilterChannel = SearchMessagesChatTypeFilter;
|
searchMessagesChatTypeFilterChannel = SearchMessagesChatTypeFilter;
|
||||||
|
|
||||||
|
//@description Returns only messages in the specified community @community_id Identifier of the community to search in
|
||||||
|
searchMessagesChatTypeFilterCommunity community_id:int53 = SearchMessagesChatTypeFilter;
|
||||||
|
|
||||||
|
|
||||||
//@class SearchChatTypeFilter @description Represents a filter for type of the chats to search for
|
//@class SearchChatTypeFilter @description Represents a filter for type of the chats to search for
|
||||||
|
|
||||||
|
|
@ -6743,6 +6839,12 @@ quickReplyMessages messages:vector<quickReplyMessage> = QuickReplyMessages;
|
||||||
quickReplyShortcut id:int32 name:string first_message:quickReplyMessage message_count:int32 = QuickReplyShortcut;
|
quickReplyShortcut id:int32 name:string first_message:quickReplyMessage message_count:int32 = QuickReplyShortcut;
|
||||||
|
|
||||||
|
|
||||||
|
//@description Describes a set up welcome message
|
||||||
|
//@id Welcome message identifier; unique for the chat to which the welcome message belongs
|
||||||
|
//@content Content of the welcome message
|
||||||
|
welcomeMessage id:int32 content:MessageContent = WelcomeMessage;
|
||||||
|
|
||||||
|
|
||||||
//@class PublicForward @description Describes a public forward or repost of a story
|
//@class PublicForward @description Describes a public forward or repost of a story
|
||||||
|
|
||||||
//@description Contains a public forward as a message @message Information about the message
|
//@description Contains a public forward as a message @message Information about the message
|
||||||
|
|
@ -6827,7 +6929,7 @@ chatBoostSourcePremium user_id:int53 = ChatBoostSource;
|
||||||
|
|
||||||
//@description Describes a prepaid giveaway
|
//@description Describes a prepaid giveaway
|
||||||
//@id Unique identifier of the prepaid giveaway
|
//@id Unique identifier of the prepaid giveaway
|
||||||
//@winner_count Number of users which will receive giveaway prize
|
//@winner_count Number of users who will receive giveaway prize
|
||||||
//@prize Prize of the giveaway
|
//@prize Prize of the giveaway
|
||||||
//@boost_count The number of boosts received by the chat from the giveaway; for Telegram Star giveaways only
|
//@boost_count The number of boosts received by the chat from the giveaway; for Telegram Star giveaways only
|
||||||
//@payment_date Point in time (Unix timestamp) when the giveaway was paid
|
//@payment_date Point in time (Unix timestamp) when the giveaway was paid
|
||||||
|
|
@ -8180,7 +8282,7 @@ storePaymentPurposePremiumSubscription is_restore:Bool is_upgrade:Bool = StorePa
|
||||||
//@description The user gifting Telegram Premium to another user
|
//@description The user gifting Telegram Premium to another user
|
||||||
//@currency ISO 4217 currency code of the payment currency
|
//@currency ISO 4217 currency code of the payment currency
|
||||||
//@amount Paid amount, in the smallest units of the currency
|
//@amount Paid amount, in the smallest units of the currency
|
||||||
//@user_id Identifiers of the user which will receive Telegram Premium
|
//@user_id Identifier of the user who will receive Telegram Premium
|
||||||
//@text Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed
|
//@text Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed
|
||||||
storePaymentPurposePremiumGift currency:string amount:int53 user_id:int53 text:formattedText = StorePaymentPurpose;
|
storePaymentPurposePremiumGift currency:string amount:int53 user_id:int53 text:formattedText = StorePaymentPurpose;
|
||||||
|
|
||||||
|
|
@ -8188,7 +8290,7 @@ storePaymentPurposePremiumGift currency:string amount:int53 user_id:int53 text:f
|
||||||
//@boosted_chat_id Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user
|
//@boosted_chat_id Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user
|
||||||
//@currency ISO 4217 currency code of the payment currency
|
//@currency ISO 4217 currency code of the payment currency
|
||||||
//@amount Paid amount, in the smallest units of the currency
|
//@amount Paid amount, in the smallest units of the currency
|
||||||
//@user_ids Identifiers of the users which can activate the gift codes
|
//@user_ids Identifiers of the users who can activate the gift codes
|
||||||
//@text Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed
|
//@text Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed
|
||||||
storePaymentPurposePremiumGiftCodes boosted_chat_id:int53 currency:string amount:int53 user_ids:vector<int53> text:formattedText = StorePaymentPurpose;
|
storePaymentPurposePremiumGiftCodes boosted_chat_id:int53 currency:string amount:int53 user_ids:vector<int53> text:formattedText = StorePaymentPurpose;
|
||||||
|
|
||||||
|
|
@ -8238,7 +8340,7 @@ storeTransactionGooglePlay package_name:string store_product_id:string purchase_
|
||||||
//@description The user gifting Telegram Premium to another user
|
//@description The user gifting Telegram Premium to another user
|
||||||
//@currency ISO 4217 currency code of the payment currency, or "XTR" for payments in Telegram Stars
|
//@currency ISO 4217 currency code of the payment currency, or "XTR" for payments in Telegram Stars
|
||||||
//@amount Paid amount, in the smallest units of the currency
|
//@amount Paid amount, in the smallest units of the currency
|
||||||
//@user_id Identifier of the user which will receive Telegram Premium
|
//@user_id Identifier of the user who will receive Telegram Premium
|
||||||
//@month_count Number of months the Telegram Premium subscription will be active for the user
|
//@month_count Number of months the Telegram Premium subscription will be active for the user
|
||||||
//@text Text to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed
|
//@text Text to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed
|
||||||
telegramPaymentPurposePremiumGift currency:string amount:int53 user_id:int53 month_count:int32 text:formattedText = TelegramPaymentPurpose;
|
telegramPaymentPurposePremiumGift currency:string amount:int53 user_id:int53 month_count:int32 text:formattedText = TelegramPaymentPurpose;
|
||||||
|
|
@ -8247,7 +8349,7 @@ telegramPaymentPurposePremiumGift currency:string amount:int53 user_id:int53 mon
|
||||||
//@boosted_chat_id Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user
|
//@boosted_chat_id Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user
|
||||||
//@currency ISO 4217 currency code of the payment currency
|
//@currency ISO 4217 currency code of the payment currency
|
||||||
//@amount Paid amount, in the smallest units of the currency
|
//@amount Paid amount, in the smallest units of the currency
|
||||||
//@user_ids Identifiers of the users which can activate the gift codes
|
//@user_ids Identifiers of the users who can activate the gift codes
|
||||||
//@month_count Number of months the Telegram Premium subscription will be active for the users
|
//@month_count Number of months the Telegram Premium subscription will be active for the users
|
||||||
//@text Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed
|
//@text Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed
|
||||||
telegramPaymentPurposePremiumGiftCodes boosted_chat_id:int53 currency:string amount:int53 user_ids:vector<int53> month_count:int32 text:formattedText = TelegramPaymentPurpose;
|
telegramPaymentPurposePremiumGiftCodes boosted_chat_id:int53 currency:string amount:int53 user_ids:vector<int53> month_count:int32 text:formattedText = TelegramPaymentPurpose;
|
||||||
|
|
@ -8256,7 +8358,7 @@ telegramPaymentPurposePremiumGiftCodes boosted_chat_id:int53 currency:string amo
|
||||||
//@parameters Giveaway parameters
|
//@parameters Giveaway parameters
|
||||||
//@currency ISO 4217 currency code of the payment currency
|
//@currency ISO 4217 currency code of the payment currency
|
||||||
//@amount Paid amount, in the smallest units of the currency
|
//@amount Paid amount, in the smallest units of the currency
|
||||||
//@winner_count Number of users which will be able to activate the gift codes
|
//@winner_count Number of users who will be able to activate the gift codes
|
||||||
//@month_count Number of months the Telegram Premium subscription will be active for the users
|
//@month_count Number of months the Telegram Premium subscription will be active for the users
|
||||||
telegramPaymentPurposePremiumGiveaway parameters:giveawayParameters currency:string amount:int53 winner_count:int32 month_count:int32 = TelegramPaymentPurpose;
|
telegramPaymentPurposePremiumGiveaway parameters:giveawayParameters currency:string amount:int53 winner_count:int32 month_count:int32 = TelegramPaymentPurpose;
|
||||||
|
|
||||||
|
|
@ -8591,7 +8693,7 @@ pushMessageContentPoll question:string is_regular:Bool is_pinned:Bool = PushMess
|
||||||
pushMessageContentPremiumGiftCode month_count:int32 = PushMessageContent;
|
pushMessageContentPremiumGiftCode month_count:int32 = PushMessageContent;
|
||||||
|
|
||||||
//@description A message with a giveaway
|
//@description A message with a giveaway
|
||||||
//@winner_count Number of users which will receive giveaway prizes; 0 for pinned message
|
//@winner_count Number of users who will receive giveaway prizes; 0 for pinned message
|
||||||
//@prize Prize of the giveaway; may be null for pinned message
|
//@prize Prize of the giveaway; may be null for pinned message
|
||||||
//@is_pinned True, if the message is a pinned message with the specified content
|
//@is_pinned True, if the message is a pinned message with the specified content
|
||||||
pushMessageContentGiveaway winner_count:int32 prize:GiveawayPrize is_pinned:Bool = PushMessageContent;
|
pushMessageContentGiveaway winner_count:int32 prize:GiveawayPrize is_pinned:Bool = PushMessageContent;
|
||||||
|
|
@ -10323,6 +10425,9 @@ updateMessageSendFailed message:message old_message_id:int53 error:error = Updat
|
||||||
//@description The message content has changed @chat_id Chat identifier @message_id Message identifier @new_content New message content
|
//@description The message content has changed @chat_id Chat identifier @message_id Message identifier @new_content New message content
|
||||||
updateMessageContent chat_id:int53 message_id:int53 new_content:MessageContent = Update;
|
updateMessageContent chat_id:int53 message_id:int53 new_content:MessageContent = Update;
|
||||||
|
|
||||||
|
//@description The message ephemeral content has changed @chat_id Chat identifier @message_id Message identifier @ephemeral_content New ephemeral content of the message; may be null if none
|
||||||
|
updateMessageEphemeralContent chat_id:int53 message_id:int53 ephemeral_content:ephemeralMessageContent = Update;
|
||||||
|
|
||||||
//@description A message was edited. Changes in the message content will come in a separate updateMessageContent
|
//@description A message was edited. Changes in the message content will come in a separate updateMessageContent
|
||||||
//@chat_id Chat identifier
|
//@chat_id Chat identifier
|
||||||
//@message_id Message identifier
|
//@message_id Message identifier
|
||||||
|
|
@ -10496,6 +10601,9 @@ updateChatBlockList chat_id:int53 block_list:BlockList = Update;
|
||||||
//@description A chat's has_scheduled_messages field has changed @chat_id Chat identifier @has_scheduled_messages New value of has_scheduled_messages
|
//@description A chat's has_scheduled_messages field has changed @chat_id Chat identifier @has_scheduled_messages New value of has_scheduled_messages
|
||||||
updateChatHasScheduledMessages chat_id:int53 has_scheduled_messages:Bool = Update;
|
updateChatHasScheduledMessages chat_id:int53 has_scheduled_messages:Bool = Update;
|
||||||
|
|
||||||
|
//@description A chat's has_welcome_messages field has changed @chat_id Chat identifier @has_welcome_messages New value of has_welcome_messages
|
||||||
|
updateChatHasWelcomeMessages chat_id:int53 has_welcome_messages:Bool = Update;
|
||||||
|
|
||||||
//@description The list of chat folders or a chat folder has changed
|
//@description The list of chat folders or a chat folder has changed
|
||||||
//@chat_folders The new list of chat folders
|
//@chat_folders The new list of chat folders
|
||||||
//@main_chat_list_position Position of the main chat list among chat folders, 0-based
|
//@main_chat_list_position Position of the main chat list among chat folders, 0-based
|
||||||
|
|
@ -10540,6 +10648,11 @@ updateQuickReplyShortcuts shortcut_ids:vector<int32> = Update;
|
||||||
//@messages The new list of quick reply messages for the shortcut in order from the first to the last sent
|
//@messages The new list of quick reply messages for the shortcut in order from the first to the last sent
|
||||||
updateQuickReplyShortcutMessages shortcut_id:int32 messages:vector<quickReplyMessage> = Update;
|
updateQuickReplyShortcutMessages shortcut_id:int32 messages:vector<quickReplyMessage> = Update;
|
||||||
|
|
||||||
|
//@description The list of welcome messages of a chat has changed
|
||||||
|
//@chat_id The identifier of the chat
|
||||||
|
//@messages The new list of welcome messages of the chat in the order from the first to the last sent
|
||||||
|
updateChatWelcomeMessages chat_id:int53 messages:vector<welcomeMessage> = Update;
|
||||||
|
|
||||||
//@description Basic information about a topic in a forum chat was changed @info New information about the topic
|
//@description Basic information about a topic in a forum chat was changed @info New information about the topic
|
||||||
updateForumTopicInfo info:forumTopicInfo = Update;
|
updateForumTopicInfo info:forumTopicInfo = Update;
|
||||||
|
|
||||||
|
|
@ -10599,12 +10712,20 @@ updateDeleteMessages chat_id:int53 message_ids:vector<int53> is_permanent:Bool f
|
||||||
updateChatAction chat_id:int53 topic_id:MessageTopic sender_id:MessageSender action:ChatAction = Update;
|
updateChatAction chat_id:int53 topic_id:MessageTopic sender_id:MessageSender action:ChatAction = Update;
|
||||||
|
|
||||||
//@description A new pending text or rich message was received in a chat with a bot. The message must be shown in the chat for at most getOption("pending_text_message_period") seconds,
|
//@description A new pending text or rich message was received in a chat with a bot. The message must be shown in the chat for at most getOption("pending_text_message_period") seconds,
|
||||||
//-replace any other pending message with the same draft_id, and be deleted whenever any incoming message from the bot in the message thread is received
|
//-replace any other pending message with the same draft_id with animation, and be deleted whenever any incoming message or a pending message with another draft_id is received in the message thread
|
||||||
//@chat_id Chat identifier
|
//@chat_id Chat identifier
|
||||||
//@forum_topic_id The forum topic identifier in which the message will be sent; 0 if none
|
//@forum_topic_id The forum topic identifier in which the message will be sent; 0 if none
|
||||||
//@draft_id Unique identifier of the message draft within the message thread
|
//@draft_id Unique identifier of the message draft within the message thread
|
||||||
|
//@can_stop True, if a button that calls stopPendingMessage to stop further message generation must be shown
|
||||||
|
//@keep_on_stop True, if the pending message must not be automatically deleted when the user presses the Stop button
|
||||||
//@content Content of the message; always of the type messageText or messageRichMessage
|
//@content Content of the message; always of the type messageText or messageRichMessage
|
||||||
updatePendingMessage chat_id:int53 forum_topic_id:int32 draft_id:int64 content:MessageContent = Update;
|
updatePendingMessage chat_id:int53 forum_topic_id:int32 draft_id:int64 can_stop:Bool keep_on_stop:Bool content:MessageContent = Update;
|
||||||
|
|
||||||
|
//@description A message draft generation was stopped by the user
|
||||||
|
//@chat_id Chat identifier
|
||||||
|
//@forum_topic_id The forum topic identifier of the message draft
|
||||||
|
//@draft_id Identifier of the message draft within the message thread
|
||||||
|
updateStopMessageDraft chat_id:int53 forum_topic_id:int32 draft_id:int64 = Update;
|
||||||
|
|
||||||
//@description Some data of a community has changed. This update is guaranteed to come before the community identifier is returned to the application @community New data about the community
|
//@description Some data of a community has changed. This update is guaranteed to come before the community identifier is returned to the application @community New data about the community
|
||||||
updateCommunity community:community = Update;
|
updateCommunity community:community = Update;
|
||||||
|
|
@ -10633,6 +10754,9 @@ updateBasicGroupFullInfo basic_group_id:int53 basic_group_full_info:basicGroupFu
|
||||||
//@description Some data in supergroupFullInfo has been changed @supergroup_id Identifier of the supergroup or channel @supergroup_full_info New full information about the supergroup
|
//@description Some data in supergroupFullInfo has been changed @supergroup_id Identifier of the supergroup or channel @supergroup_full_info New full information about the supergroup
|
||||||
updateSupergroupFullInfo supergroup_id:int53 supergroup_full_info:supergroupFullInfo = Update;
|
updateSupergroupFullInfo supergroup_id:int53 supergroup_full_info:supergroupFullInfo = Update;
|
||||||
|
|
||||||
|
//@description Some data in communityFullInfo has been changed @community_id Identifier of the community @community_full_info New full information about the community
|
||||||
|
updateCommunityFullInfo community_id:int53 community_full_info:communityFullInfo = Update;
|
||||||
|
|
||||||
//@description A service notification from the server was received. Upon receiving this the application must show a popup with the content of the notification
|
//@description A service notification from the server was received. Upon receiving this the application must show a popup with the content of the notification
|
||||||
//@type Notification type. If type begins with "AUTH_KEY_DROP_", then two buttons "Cancel" and "Log out" must be shown under notification; if user presses the second, all local data must be destroyed using Destroy method
|
//@type Notification type. If type begins with "AUTH_KEY_DROP_", then two buttons "Cancel" and "Log out" must be shown under notification; if user presses the second, all local data must be destroyed using Destroy method
|
||||||
//@content Notification content
|
//@content Notification content
|
||||||
|
|
@ -10652,7 +10776,7 @@ updateFile file:file = Update;
|
||||||
//@original_path The original path specified by the application in inputFileGenerated
|
//@original_path The original path specified by the application in inputFileGenerated
|
||||||
//@destination_path The path to a file that must be created and where the new file must be generated by the application.
|
//@destination_path The path to a file that must be created and where the new file must be generated by the application.
|
||||||
//-If the application has no access to the path, it can use writeGeneratedFilePart to generate the file
|
//-If the application has no access to the path, it can use writeGeneratedFilePart to generate the file
|
||||||
//@conversion If the conversion is "#url#" than original_path contains an HTTP/HTTPS URL of a file that must be downloaded by the application.
|
//@conversion If the conversion is "#url#", then original_path contains an HTTP/HTTPS URL of a file that must be downloaded by the application.
|
||||||
//-Otherwise, this is the conversion specified by the application in inputFileGenerated
|
//-Otherwise, this is the conversion specified by the application in inputFileGenerated
|
||||||
updateFileGenerationStart generation_id:int64 original_path:string destination_path:string conversion:string = Update;
|
updateFileGenerationStart generation_id:int64 original_path:string destination_path:string conversion:string = Update;
|
||||||
|
|
||||||
|
|
@ -11676,6 +11800,22 @@ toggleSavedMessagesTopicIsPinned saved_messages_topic_id:int53 is_pinned:Bool =
|
||||||
setPinnedSavedMessagesTopics saved_messages_topic_ids:vector<int53> = Ok;
|
setPinnedSavedMessagesTopics saved_messages_topic_ids:vector<int53> = Ok;
|
||||||
|
|
||||||
|
|
||||||
|
//@description Returns full information about a community. The data will be sent through update. @community_id Community identifier
|
||||||
|
loadCommunityFullInfo community_id:int53 = Ok;
|
||||||
|
|
||||||
|
//@description Creates a new community for the given chat. Returns identifier of the created community
|
||||||
|
//@name Name of the new community
|
||||||
|
//@chat_id Identifier of the chat in the community; only chats with owned bots and owned basic group, supergroup and channel chats are allowed;
|
||||||
|
//-basic group chats will be automatically upgraded to supergroup chats
|
||||||
|
//@is_chat_hidden Pass true if the chat will be visible only to administrators of the community
|
||||||
|
createCommunity name:string chat_id:int53 is_chat_hidden:Bool = CommunityId;
|
||||||
|
|
||||||
|
//@description Changes name of the given community; requires can_change_info administrator right in the community
|
||||||
|
//@community_id Identifier of the community
|
||||||
|
//@name New name of the community
|
||||||
|
setCommunityName community_id:int53 name:string = Ok;
|
||||||
|
|
||||||
|
|
||||||
//@description Returns a list of common group chats with a given user. Chats are sorted by their type and creation date
|
//@description Returns a list of common group chats with a given user. Chats are sorted by their type and creation date
|
||||||
//@user_id User identifier
|
//@user_id User identifier
|
||||||
//@offset_chat_id Chat identifier starting from which to return chats; use 0 for the first request
|
//@offset_chat_id Chat identifier starting from which to return chats; use 0 for the first request
|
||||||
|
|
@ -12124,14 +12264,16 @@ sendChatScreenshotTakenNotification chat_id:int53 = Ok;
|
||||||
//@topic_id Topic in which the message will be sent; pass null if none
|
//@topic_id Topic in which the message will be sent; pass null if none
|
||||||
//@receiver_user_id Identifier of the user who will receive the message
|
//@receiver_user_id Identifier of the user who will receive the message
|
||||||
//@callback_query_id Identifier of the callback query which triggered the message; for bots only
|
//@callback_query_id Identifier of the callback query which triggered the message; for bots only
|
||||||
|
//@replace_callback_query_message Pass true if the ephemeral message must replace the message from which the callback query originated; for bots only
|
||||||
//@reply_to Information about the message to be replied; pass null if none. The message can be an incoming ephemeral message
|
//@reply_to Information about the message to be replied; pass null if none. The message can be an incoming ephemeral message
|
||||||
|
//@protect_content Pass true if the content of the message must be protected from forwarding and saving; for bots only
|
||||||
//@sending_id Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates
|
//@sending_id Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates
|
||||||
//@only_preview Pass true to get a fake message instead of actually sending them
|
//@only_preview Pass true to get a fake message instead of actually sending them
|
||||||
//@reply_markup Markup for replying to the message; pass null if none; for bots only
|
//@reply_markup Markup for replying to the message; pass null if none; for bots only
|
||||||
//@input_message_content The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation,
|
//@input_message_content The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation,
|
||||||
//-inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote,
|
//-inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote,
|
||||||
//-inputMessageLocation, inputMessageVenue, inputMessageContact
|
//-inputMessageLocation, inputMessageVenue, inputMessageContact
|
||||||
sendEphemeralMessage chat_id:int53 topic_id:MessageTopic receiver_user_id:int53 callback_query_id:int64 reply_to:InputMessageReplyTo sending_id:int32 only_preview:Bool reply_markup:ReplyMarkup input_message_content:InputMessageContent = Message;
|
sendEphemeralMessage chat_id:int53 topic_id:MessageTopic receiver_user_id:int53 callback_query_id:int64 replace_callback_query_message:Bool reply_to:InputMessageReplyTo protect_content:Bool sending_id:int32 only_preview:Bool reply_markup:ReplyMarkup input_message_content:InputMessageContent = Message;
|
||||||
|
|
||||||
//@description Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message
|
//@description Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message
|
||||||
//@chat_id Target chat; channel direct messages chats aren't supported
|
//@chat_id Target chat; channel direct messages chats aren't supported
|
||||||
|
|
@ -12150,7 +12292,7 @@ deleteMessages chat_id:int53 message_ids:vector<int53> revoke:Bool = Ok;
|
||||||
//@description Deletes an ephemeral message; for bots only
|
//@description Deletes an ephemeral message; for bots only
|
||||||
//@chat_id Chat identifier
|
//@chat_id Chat identifier
|
||||||
//@receiver_user_id Identifier of the user who received the message
|
//@receiver_user_id Identifier of the user who received the message
|
||||||
//@ephemeral_message_id Identifiers of the message to be deleted
|
//@ephemeral_message_id Identifier of the message to be deleted
|
||||||
deleteEphemeralMessage chat_id:int53 receiver_user_id:int53 ephemeral_message_id:int32 = Ok;
|
deleteEphemeralMessage chat_id:int53 receiver_user_id:int53 ephemeral_message_id:int32 = Ok;
|
||||||
|
|
||||||
//@description Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires can_delete_messages administrator right @chat_id Chat identifier @sender_id Identifier of the sender of messages to delete
|
//@description Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires can_delete_messages administrator right @chat_id Chat identifier @sender_id Identifier of the sender of messages to delete
|
||||||
|
|
@ -12240,21 +12382,43 @@ editInlineMessageCaption inline_message_id:string reply_markup:ReplyMarkup capti
|
||||||
//@reply_markup The new message reply markup; pass null if none
|
//@reply_markup The new message reply markup; pass null if none
|
||||||
editInlineMessageReplyMarkup inline_message_id:string reply_markup:ReplyMarkup = Ok;
|
editInlineMessageReplyMarkup inline_message_id:string reply_markup:ReplyMarkup = Ok;
|
||||||
|
|
||||||
//@description Edits the text, caption or reply markup of an ephemeral message sent by the bot; for bots only
|
//@description Edits the text, media, or reply markup of an ephemeral message sent by the bot; for bots only
|
||||||
//@chat_id The chat the message belongs to
|
//@chat_id The chat the message belongs to
|
||||||
//@receiver_user_id Identifier of the user who received the message
|
//@receiver_user_id Identifier of the user who received the message
|
||||||
//@ephemeral_message_id Identifier of the ephemeral message
|
//@ephemeral_message_id Identifier of the ephemeral message
|
||||||
//@reply_markup The new message reply markup; pass null if none
|
//@reply_markup The new message reply markup; pass null if none
|
||||||
//@input_message_content New content of the message; pass null to edit only reply markup. Must be one of the following types: inputMessageText, inputMessageAnimation,
|
//@input_message_content New content of the message; pass null to edit only reply markup. Must be one of the following types: inputMessageText, inputMessageAnimation,
|
||||||
//-inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote
|
//-inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote
|
||||||
editEphemeralMessage chat_id:int53 receiver_user_id:int53 ephemeral_message_id:int32 reply_markup:ReplyMarkup input_message_content:InputMessageContent = Ok;
|
editEphemeralMessage chat_id:int53 receiver_user_id:int53 ephemeral_message_id:int32 reply_markup:ReplyMarkup input_message_content:InputMessageContent = Ok;
|
||||||
|
|
||||||
|
//@description Edits the caption and reply markup of an ephemeral message sent by the bot; for bots only
|
||||||
|
//@chat_id The chat the message belongs to
|
||||||
|
//@receiver_user_id Identifier of the user who received the message
|
||||||
|
//@ephemeral_message_id Identifier of the ephemeral message
|
||||||
|
//@reply_markup The new message reply markup; pass null if none
|
||||||
|
//@caption New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters
|
||||||
|
//@show_caption_above_media Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages
|
||||||
|
editEphemeralMessageCaption chat_id:int53 receiver_user_id:int53 ephemeral_message_id:int32 reply_markup:ReplyMarkup caption:formattedText show_caption_above_media:Bool = Ok;
|
||||||
|
|
||||||
|
//@description Edits the message from which a callback query has originated with an ephemeral message; for bots only
|
||||||
|
//@callback_query_id Identifier of the callback query
|
||||||
|
//@protect_content Pass true if the content of the message must be protected from forwarding and saving
|
||||||
|
//@reply_markup The new message reply markup; pass null if none
|
||||||
|
//@input_message_content New content of the message. Must be one of the following types: inputMessageText, inputMessageAnimation,
|
||||||
|
//-inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote
|
||||||
|
editCallbackQueryMessage callback_query_id:int64 protect_content:Bool reply_markup:ReplyMarkup input_message_content:InputMessageContent = Ok;
|
||||||
|
|
||||||
//@description Edits the time when a scheduled message will be sent. Scheduling state of all messages in the same album or forwarded together with the message will be also changed
|
//@description Edits the time when a scheduled message will be sent. Scheduling state of all messages in the same album or forwarded together with the message will be also changed
|
||||||
//@chat_id The chat the message belongs to
|
//@chat_id The chat the message belongs to
|
||||||
//@message_id Identifier of the message. Use messageProperties.can_edit_scheduling_state to check whether the message is suitable
|
//@message_id Identifier of the message. Use messageProperties.can_edit_scheduling_state to check whether the message is suitable
|
||||||
//@scheduling_state The new message scheduling state; pass null to send the message immediately. Must be null for messages in the state messageSchedulingStateSendWhenVideoProcessed
|
//@scheduling_state The new message scheduling state; pass null to send the message immediately. Must be null for messages in the state messageSchedulingStateSendWhenVideoProcessed
|
||||||
editMessageSchedulingState chat_id:int53 message_id:int53 scheduling_state:MessageSchedulingState = Ok;
|
editMessageSchedulingState chat_id:int53 message_id:int53 scheduling_state:MessageSchedulingState = Ok;
|
||||||
|
|
||||||
|
//@description Removes message ephemeral content and reverts message state to the original
|
||||||
|
//@chat_id The chat the message belongs to
|
||||||
|
//@message_id Identifier of the message
|
||||||
|
deleteMessageEphemeralContent chat_id:int53 message_id:int53 = Ok;
|
||||||
|
|
||||||
|
|
||||||
//@description Changes the fact-check of a message. Can be only used if messageProperties.can_set_fact_check == true
|
//@description Changes the fact-check of a message. Can be only used if messageProperties.can_set_fact_check == true
|
||||||
//@chat_id The channel chat the message belongs to
|
//@chat_id The channel chat the message belongs to
|
||||||
|
|
@ -12457,7 +12621,7 @@ addQuickReplyShortcutInlineQueryResultMessage shortcut_name:string reply_to_mess
|
||||||
addQuickReplyShortcutMessageAlbum shortcut_name:string reply_to_message_id:int53 input_message_contents:vector<InputMessageContent> = QuickReplyMessages;
|
addQuickReplyShortcutMessageAlbum shortcut_name:string reply_to_message_id:int53 input_message_contents:vector<InputMessageContent> = QuickReplyMessages;
|
||||||
|
|
||||||
//@description Re-adds quick reply messages which failed to add. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed.
|
//@description Re-adds quick reply messages which failed to add. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed.
|
||||||
//-If a message is re-added, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in message_ids. If a message can't be readded, null will be returned instead of the message
|
//-If a message is re-added, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in message_ids. If a message can't be re-added, null will be returned instead of the message
|
||||||
//@shortcut_name Name of the target shortcut
|
//@shortcut_name Name of the target shortcut
|
||||||
//@message_ids Identifiers of the quick reply messages to re-add. Message identifiers must be in a strictly increasing order
|
//@message_ids Identifiers of the quick reply messages to re-add. Message identifiers must be in a strictly increasing order
|
||||||
readdQuickReplyShortcutMessages shortcut_name:string message_ids:vector<int53> = QuickReplyMessages;
|
readdQuickReplyShortcutMessages shortcut_name:string message_ids:vector<int53> = QuickReplyMessages;
|
||||||
|
|
@ -12471,6 +12635,33 @@ readdQuickReplyShortcutMessages shortcut_name:string message_ids:vector<int53> =
|
||||||
editQuickReplyMessage shortcut_id:int32 message_id:int53 input_message_content:InputMessageContent = Ok;
|
editQuickReplyMessage shortcut_id:int32 message_id:int53 input_message_content:InputMessageContent = Ok;
|
||||||
|
|
||||||
|
|
||||||
|
//@description Loads welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat. The loaded messages will be sent through updateChatWelcomeMessages
|
||||||
|
//@chat_id The identifier of the chat
|
||||||
|
loadChatWelcomeMessages chat_id:int53 = Ok;
|
||||||
|
|
||||||
|
//@description Adds a message to the list of welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat. There can be up to getOption("welcome_message_count_max") welcome messages in a chat
|
||||||
|
//@chat_id The identifier of the chat
|
||||||
|
//@input_message_content The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation,
|
||||||
|
//-inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote,
|
||||||
|
//-inputMessageLocation, inputMessageVenue, inputMessageContact
|
||||||
|
addChatWelcomeMessage chat_id:int53 input_message_content:InputMessageContent = Ok;
|
||||||
|
|
||||||
|
//@description Edits a welcome message of a chat; requires can_send_welcome_messages administrator right in the chat
|
||||||
|
//@chat_id The identifier of the chat
|
||||||
|
//@welcome_message_id The identifier of the welcome message
|
||||||
|
//@input_message_content New content of the message. Must be one of the following types: inputMessageText, inputMessageAnimation,
|
||||||
|
//-inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote
|
||||||
|
editChatWelcomeMessage chat_id:int53 welcome_message_id:int32 input_message_content:InputMessageContent = Ok;
|
||||||
|
|
||||||
|
//@description Deletes a welcome message of a chat; requires can_send_welcome_messages administrator right in the chat
|
||||||
|
//@chat_id The identifier of the chat
|
||||||
|
//@welcome_message_id The identifier of the welcome message
|
||||||
|
deleteChatWelcomeMessage chat_id:int53 welcome_message_id:int32 = Ok;
|
||||||
|
|
||||||
|
//@description Deletes all welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat @chat_id The identifier of the chat
|
||||||
|
deleteAllChatWelcomeMessages chat_id:int53 = Ok;
|
||||||
|
|
||||||
|
|
||||||
//@description Returns the list of custom emoji, which can be used as forum topic icon by all users
|
//@description Returns the list of custom emoji, which can be used as forum topic icon by all users
|
||||||
getForumTopicDefaultIcons = Stickers;
|
getForumTopicDefaultIcons = Stickers;
|
||||||
|
|
||||||
|
|
@ -13011,15 +13202,25 @@ sendChatAction chat_id:int53 topic_id:MessageTopic business_connection_id:string
|
||||||
//@chat_id Chat identifier
|
//@chat_id Chat identifier
|
||||||
//@forum_topic_id The forum topic identifier in which the message will be sent; pass 0 if none
|
//@forum_topic_id The forum topic identifier in which the message will be sent; pass 0 if none
|
||||||
//@draft_id Unique identifier of the draft
|
//@draft_id Unique identifier of the draft
|
||||||
|
//@can_stop Pass true to show the user a button to stop further drafts
|
||||||
|
//@keep_on_stop Pass true to keep the current draft when the user stops further generation
|
||||||
//@text Draft text of the message; pass null to show a "Thinking..." placeholder
|
//@text Draft text of the message; pass null to show a "Thinking..." placeholder
|
||||||
sendTextMessageDraft chat_id:int53 forum_topic_id:int32 draft_id:int64 text:formattedText = Ok;
|
sendTextMessageDraft chat_id:int53 forum_topic_id:int32 draft_id:int64 can_stop:Bool keep_on_stop:Bool text:formattedText = Ok;
|
||||||
|
|
||||||
//@description Sends a draft for a being generated rich message; for bots only
|
//@description Sends a draft for a being generated rich message; for bots only
|
||||||
//@chat_id Chat identifier
|
//@chat_id Chat identifier
|
||||||
//@forum_topic_id The forum topic identifier in which the message will be sent; pass 0 if none
|
//@forum_topic_id The forum topic identifier in which the message will be sent; pass 0 if none
|
||||||
//@draft_id Unique identifier of the draft
|
//@draft_id Unique identifier of the draft
|
||||||
|
//@can_stop Pass true to show the user a button to stop further drafts
|
||||||
|
//@keep_on_stop Pass true to keep the current draft when the user stops further generation
|
||||||
//@message Draft of the message; file upload isn't supported
|
//@message Draft of the message; file upload isn't supported
|
||||||
sendRichMessageDraft chat_id:int53 forum_topic_id:int32 draft_id:int64 message:inputRichMessage = Ok;
|
sendRichMessageDraft chat_id:int53 forum_topic_id:int32 draft_id:int64 can_stop:Bool keep_on_stop:Bool message:inputRichMessage = Ok;
|
||||||
|
|
||||||
|
//@description Stops a pending message generation by a bot
|
||||||
|
//@chat_id Identifier of the chat with the bot
|
||||||
|
//@topic_id Identifier of the topic in which the action is performed; pass null if none
|
||||||
|
//@draft_id Unique identifier of the message draft within the message thread
|
||||||
|
stopPendingMessage chat_id:int53 topic_id:MessageTopic draft_id:int64 = Ok;
|
||||||
|
|
||||||
|
|
||||||
//@description Informs TDLib that the chat is opened by the user. Many useful activities depend on the chat being opened or closed (e.g., in supergroups and channels all updates are received only for opened chats) @chat_id Chat identifier
|
//@description Informs TDLib that the chat is opened by the user. Many useful activities depend on the chat being opened or closed (e.g., in supergroups and channels all updates are received only for opened chats) @chat_id Chat identifier
|
||||||
|
|
@ -13296,7 +13497,7 @@ setChatTheme chat_id:int53 theme:InputChatTheme = Ok;
|
||||||
//@description Changes the draft message in a chat or a topic
|
//@description Changes the draft message in a chat or a topic
|
||||||
//@chat_id Chat identifier
|
//@chat_id Chat identifier
|
||||||
//@topic_id Topic in which the draft will be changed; pass null to change the draft for the chat itself
|
//@topic_id Topic in which the draft will be changed; pass null to change the draft for the chat itself
|
||||||
//@draft_message New draft message; pass null to remove the draft. All files in draft message content must be of the type inputFileLocal. Media thumbnails and captions are ignored
|
//@draft_message New draft message; pass null to remove the draft
|
||||||
setChatDraftMessage chat_id:int53 topic_id:MessageTopic draft_message:draftMessage = Ok;
|
setChatDraftMessage chat_id:int53 topic_id:MessageTopic draft_message:draftMessage = Ok;
|
||||||
|
|
||||||
//@description Changes the notification settings of a chat. Notification settings of a chat with the current user (Saved Messages) can't be changed
|
//@description Changes the notification settings of a chat. Notification settings of a chat with the current user (Saved Messages) can't be changed
|
||||||
|
|
@ -13384,7 +13585,7 @@ leaveChat chat_id:int53 = Ok;
|
||||||
//@forward_limit The number of earlier messages from the chat to be forwarded to the new member; up to 100. Ignored for supergroups and channels, or if the added user is a bot
|
//@forward_limit The number of earlier messages from the chat to be forwarded to the new member; up to 100. Ignored for supergroups and channels, or if the added user is a bot
|
||||||
addChatMember chat_id:int53 user_id:int53 forward_limit:int32 = FailedToAddMembers;
|
addChatMember chat_id:int53 user_id:int53 forward_limit:int32 = FailedToAddMembers;
|
||||||
|
|
||||||
//@description Adds multiple new members to a chat; requires can_invite_users member right. Currently, this method is only available for supergroups and channels.
|
//@description Adds multiple new members to a chat; requires can_invite_users member right. Currently, this method is available only in supergroups and channels.
|
||||||
//-This method can't be used to join a chat. Members can't be added to a channel if it has more than 200 members. Returns information about members that weren't added
|
//-This method can't be used to join a chat. Members can't be added to a channel if it has more than 200 members. Returns information about members that weren't added
|
||||||
//@chat_id Chat identifier
|
//@chat_id Chat identifier
|
||||||
//@user_ids Identifiers of the users to be added to the chat. The maximum number of added users is 20 for supergroups and 100 for channels
|
//@user_ids Identifiers of the users to be added to the chat. The maximum number of added users is 20 for supergroups and 100 for channels
|
||||||
|
|
@ -13400,7 +13601,7 @@ setChatMemberStatus chat_id:int53 member_id:MessageSender status:ChatMemberStatu
|
||||||
|
|
||||||
//@description Changes the tag or custom title of a chat member; requires can_manage_tags administrator right to change tag of other users; for basic groups and supergroups only
|
//@description Changes the tag or custom title of a chat member; requires can_manage_tags administrator right to change tag of other users; for basic groups and supergroups only
|
||||||
//@chat_id Chat identifier
|
//@chat_id Chat identifier
|
||||||
//@user_id Identifier of the user, which tag is changed. Chats can't have member tags
|
//@user_id Identifier of the user whose tag is changed. Chats can't have member tags
|
||||||
//@tag The new tag of the member in the chat; 0-16 characters without emoji
|
//@tag The new tag of the member in the chat; 0-16 characters without emoji
|
||||||
setChatMemberTag chat_id:int53 user_id:int53 tag:string = Ok;
|
setChatMemberTag chat_id:int53 user_id:int53 tag:string = Ok;
|
||||||
|
|
||||||
|
|
@ -13420,8 +13621,8 @@ canTransferOwnership = CanTransferOwnershipResult;
|
||||||
//@password The 2-step verification password of the current user
|
//@password The 2-step verification password of the current user
|
||||||
transferChatOwnership chat_id:int53 user_id:int53 password:string = Ok;
|
transferChatOwnership chat_id:int53 user_id:int53 password:string = Ok;
|
||||||
|
|
||||||
//@description Returns the user who will become the owner of the chat after 7 days if the current user does not return to the supergroup or channel during that period or immediately for basic groups; requires owner privileges in the chat.
|
//@description Returns the user who will become the owner of the chat after 7 days if the current user does not return to the supergroup or channel during that period or immediately for basic groups;
|
||||||
//-Available only for basic groups, supergroups, and channel chats
|
//-requires owner privileges in the chat. Available only for basic groups, supergroups, and channel chats
|
||||||
//@chat_id Chat identifier
|
//@chat_id Chat identifier
|
||||||
getChatOwnerAfterLeaving chat_id:int53 = User;
|
getChatOwnerAfterLeaving chat_id:int53 = User;
|
||||||
|
|
||||||
|
|
@ -13910,7 +14111,7 @@ createChatInviteLink chat_id:int53 name:string expiration_date:int32 member_limi
|
||||||
//-Subscription period must be 2592000 in production environment, and 60 or 300 if Telegram test environment is used
|
//-Subscription period must be 2592000 in production environment, and 60 or 300 if Telegram test environment is used
|
||||||
createChatSubscriptionInviteLink chat_id:int53 name:string subscription_pricing:starSubscriptionPricing = ChatInviteLink;
|
createChatSubscriptionInviteLink chat_id:int53 name:string subscription_pricing:starSubscriptionPricing = ChatInviteLink;
|
||||||
|
|
||||||
//@description Edits a non-primary invite link for a chat. Available for basic groups, supergroups, and channels.
|
//@description Edits a non-primary invite link for a chat. Available in basic groups, supergroups, and channels.
|
||||||
//-If the link creates a subscription, then expiration_date, member_limit and creates_join_request must not be used.
|
//-If the link creates a subscription, then expiration_date, member_limit and creates_join_request must not be used.
|
||||||
//-Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links
|
//-Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links
|
||||||
//@chat_id Chat identifier
|
//@chat_id Chat identifier
|
||||||
|
|
@ -13952,7 +14153,7 @@ getChatInviteLinks chat_id:int53 creator_user_id:int53 is_revoked:Bool offset_da
|
||||||
//@limit The maximum number of chat members to return; up to 100
|
//@limit The maximum number of chat members to return; up to 100
|
||||||
getChatInviteLinkMembers chat_id:int53 invite_link:string only_with_expired_subscription:Bool offset_member:chatInviteLinkMember limit:int32 = ChatInviteLinkMembers;
|
getChatInviteLinkMembers chat_id:int53 invite_link:string only_with_expired_subscription:Bool offset_member:chatInviteLinkMember limit:int32 = ChatInviteLinkMembers;
|
||||||
|
|
||||||
//@description Revokes invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links.
|
//@description Revokes invite link for a chat. Available in basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links.
|
||||||
//-If a primary link is revoked, then additionally to the revoked link returns new primary link
|
//-If a primary link is revoked, then additionally to the revoked link returns new primary link
|
||||||
//@chat_id Chat identifier
|
//@chat_id Chat identifier
|
||||||
//@invite_link Invite link to be revoked
|
//@invite_link Invite link to be revoked
|
||||||
|
|
@ -15049,7 +15250,7 @@ getSupergroupMembers supergroup_id:int53 filter:SupergroupMembersFilter offset:i
|
||||||
closeSecretChat secret_chat_id:int32 = Ok;
|
closeSecretChat secret_chat_id:int32 = Ok;
|
||||||
|
|
||||||
|
|
||||||
//@description Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only for supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i.e., in order of decreasing event_id)
|
//@description Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only in supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i.e., in order of decreasing event_id)
|
||||||
//@chat_id Chat identifier
|
//@chat_id Chat identifier
|
||||||
//@query Search query by which to filter events
|
//@query Search query by which to filter events
|
||||||
//@from_event_id Identifier of an event from which to return results. Use 0 to get results from the latest events
|
//@from_event_id Identifier of an event from which to return results. Use 0 to get results from the latest events
|
||||||
|
|
@ -15205,7 +15406,10 @@ dropGiftOriginalDetails received_gift_id:string star_count:int53 = Ok;
|
||||||
//@gift_name Name of the upgraded gift to send
|
//@gift_name Name of the upgraded gift to send
|
||||||
//@owner_id Identifier of the user or the channel chat that will receive the gift
|
//@owner_id Identifier of the user or the channel chat that will receive the gift
|
||||||
//@price The price that the user agreed to pay for the gift
|
//@price The price that the user agreed to pay for the gift
|
||||||
sendResoldGift gift_name:string owner_id:MessageSender price:GiftResalePrice = GiftResaleResult;
|
//@text Text to show along with the gift; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed.
|
||||||
|
//-Must be empty if the receiver enabled paid messages and the price of the gift is less than the price of a paid message to the user
|
||||||
|
//@is_private Pass true to show gift text and sender only to the gift receiver; otherwise, everyone will be able to see them
|
||||||
|
sendResoldGift gift_name:string owner_id:MessageSender price:GiftResalePrice text:formattedText is_private:Bool = GiftResaleResult;
|
||||||
|
|
||||||
//@description Sends an offer to purchase an upgraded gift
|
//@description Sends an offer to purchase an upgraded gift
|
||||||
//@owner_id Identifier of the user or the channel chat that currently owns the gift and will receive the offer
|
//@owner_id Identifier of the user or the channel chat that currently owns the gift and will receive the offer
|
||||||
|
|
@ -15264,7 +15468,7 @@ getUpgradedGiftsPromotionalAnimation = Animation;
|
||||||
//@received_gift_id Identifier of the unique gift
|
//@received_gift_id Identifier of the unique gift
|
||||||
//@price The new price for the unique gift; pass null to disallow gift resale. The current user will receive
|
//@price The new price for the unique gift; pass null to disallow gift resale. The current user will receive
|
||||||
//-getOption("gift_resale_star_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for the gift if the gift price is in Telegram Stars or
|
//-getOption("gift_resale_star_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for the gift if the gift price is in Telegram Stars or
|
||||||
//-getOption("gift_resale_ton_earnings_per_mille") TON Grams for each 1000 Grams paid for the gift if the gift price is in Grams
|
//-getOption("gift_resale_gram_earnings_per_mille") TON Grams for each 1000 Grams paid for the gift if the gift price is in Grams
|
||||||
setGiftResalePrice received_gift_id:string price:GiftResalePrice = Ok;
|
setGiftResalePrice received_gift_id:string price:GiftResalePrice = Ok;
|
||||||
|
|
||||||
//@description Returns upgraded gifts that can be bought from other owners using sendResoldGift
|
//@description Returns upgraded gifts that can be bought from other owners using sendResoldGift
|
||||||
|
|
@ -15837,7 +16041,7 @@ checkPremiumGiftCode code:string = PremiumGiftCodeInfo;
|
||||||
applyPremiumGiftCode code:string = Ok;
|
applyPremiumGiftCode code:string = Ok;
|
||||||
|
|
||||||
//@description Allows to buy a Telegram Premium subscription for another user with payment in Telegram Stars; for bots only
|
//@description Allows to buy a Telegram Premium subscription for another user with payment in Telegram Stars; for bots only
|
||||||
//@user_id Identifier of the user which will receive Telegram Premium
|
//@user_id Identifier of the user who will receive Telegram Premium
|
||||||
//@star_count The number of Telegram Stars to pay for subscription
|
//@star_count The number of Telegram Stars to pay for subscription
|
||||||
//@month_count Number of months the Telegram Premium subscription will be active for the user
|
//@month_count Number of months the Telegram Premium subscription will be active for the user
|
||||||
//@text Text to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed
|
//@text Text to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue