mirror of
https://github.com/c0re100/gotdlib.git
synced 2026-02-21 20:20:17 +01:00
Update to TDLib 1.8.51
This commit is contained in:
parent
bc2b5f5823
commit
51f3ce0659
4 changed files with 1181 additions and 44 deletions
|
|
@ -1429,7 +1429,7 @@ type GetRepliedMessageRequest struct {
|
||||||
MessageId int64 `json:"message_id"`
|
MessageId int64 `json:"message_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns information about a non-bundled message that is replied by a given message. Also, returns the pinned message, the game message, the invoice message, the message with a previously set same background, the giveaway message, and the topic creation message for messages of the types messagePinMessage, messageGameScore, messagePaymentSuccessful, messageChatSetBackground, messageGiveawayCompleted and topic messages without non-bundled replied message respectively. Returns a 404 error if the message doesn't exist
|
// Returns information about a non-bundled message that is replied by a given message. Also, returns the pinned message, the game message, the invoice message, the message with a previously set same background, the giveaway message, the checklist message, and the topic creation message for messages of the types messagePinMessage, messageGameScore, messagePaymentSuccessful, messageChatSetBackground, messageGiveawayCompleted, messageChecklistTasksDone and messageChecklistTasksAdded, and topic messages without non-bundled replied message respectively. Returns a 404 error if the message doesn't exist
|
||||||
func (client *Client) GetRepliedMessage(req *GetRepliedMessageRequest) (*Message, error) {
|
func (client *Client) GetRepliedMessage(req *GetRepliedMessageRequest) (*Message, error) {
|
||||||
result, err := client.Send(Request{
|
result, err := client.Send(Request{
|
||||||
meta: meta{
|
meta: meta{
|
||||||
|
|
@ -2768,6 +2768,70 @@ func (client *Client) ReadAllDirectMessagesChatTopicReactions(req *ReadAllDirect
|
||||||
return UnmarshalOk(result.Data)
|
return UnmarshalOk(result.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type GetDirectMessagesChatTopicRevenueRequest struct {
|
||||||
|
// Chat identifier of the channel direct messages chat administered by the current user
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
// Identifier of the topic
|
||||||
|
TopicId int64 `json:"topic_id"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Returns the total number of Telegram Stars received by the channel chat for direct messages from the given topic
|
||||||
|
func (client *Client) GetDirectMessagesChatTopicRevenue(req *GetDirectMessagesChatTopicRevenueRequest) (*StarCount, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "getDirectMessagesChatTopicRevenue",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"chat_id": req.ChatId,
|
||||||
|
"topic_id": req.TopicId,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalStarCount(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ToggleDirectMessagesChatTopicCanSendUnpaidMessagesRequest struct {
|
||||||
|
// Chat identifier
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
// Identifier of the topic
|
||||||
|
TopicId int64 `json:"topic_id"`
|
||||||
|
// Pass true to allow unpaid messages; pass false to disallow unpaid messages
|
||||||
|
CanSendUnpaidMessages bool `json:"can_send_unpaid_messages"`
|
||||||
|
// Pass true to refund the user previously paid messages
|
||||||
|
RefundPayments bool `json:"refund_payments"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Allows to send unpaid messages to the given topic of the channel direct messages chat administered by the current user
|
||||||
|
func (client *Client) ToggleDirectMessagesChatTopicCanSendUnpaidMessages(req *ToggleDirectMessagesChatTopicCanSendUnpaidMessagesRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "toggleDirectMessagesChatTopicCanSendUnpaidMessages",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"chat_id": req.ChatId,
|
||||||
|
"topic_id": req.TopicId,
|
||||||
|
"can_send_unpaid_messages": req.CanSendUnpaidMessages,
|
||||||
|
"refund_payments": req.RefundPayments,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
type LoadSavedMessagesTopicsRequest struct {
|
type LoadSavedMessagesTopicsRequest struct {
|
||||||
// The maximum number of topics to be loaded. For optimal performance, the number of loaded topics is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached
|
// The maximum number of topics to be loaded. For optimal performance, the number of loaded topics is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached
|
||||||
Limit int32 `json:"limit"`
|
Limit int32 `json:"limit"`
|
||||||
|
|
@ -4075,6 +4139,134 @@ func (client *Client) ReportSponsoredChat(req *ReportSponsoredChatRequest) (Repo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type GetVideoMessageAdvertisementsRequest struct {
|
||||||
|
// Identifier of the chat with the message
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
// Identifier of the message
|
||||||
|
MessageId int64 `json:"message_id"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Returns advertisements to be shown while a video from a message is watched. Available only if messageProperties.can_get_video_advertisements
|
||||||
|
func (client *Client) GetVideoMessageAdvertisements(req *GetVideoMessageAdvertisementsRequest) (*VideoMessageAdvertisements, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "getVideoMessageAdvertisements",
|
||||||
|
},
|
||||||
|
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 UnmarshalVideoMessageAdvertisements(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ViewVideoMessageAdvertisementRequest struct {
|
||||||
|
// Unique identifier of the advertisement
|
||||||
|
AdvertisementUniqueId int64 `json:"advertisement_unique_id"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Informs TDLib that the user viewed a video message advertisement
|
||||||
|
func (client *Client) ViewVideoMessageAdvertisement(req *ViewVideoMessageAdvertisementRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "viewVideoMessageAdvertisement",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"advertisement_unique_id": req.AdvertisementUniqueId,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ClickVideoMessageAdvertisementRequest struct {
|
||||||
|
// Unique identifier of the advertisement
|
||||||
|
AdvertisementUniqueId int64 `json:"advertisement_unique_id"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Informs TDLib that the user clicked a video message advertisement
|
||||||
|
func (client *Client) ClickVideoMessageAdvertisement(req *ClickVideoMessageAdvertisementRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "clickVideoMessageAdvertisement",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"advertisement_unique_id": req.AdvertisementUniqueId,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ReportVideoMessageAdvertisementRequest struct {
|
||||||
|
// Unique identifier of the advertisement
|
||||||
|
AdvertisementUniqueId int64 `json:"advertisement_unique_id"`
|
||||||
|
// Option identifier chosen by the user; leave empty for the initial request
|
||||||
|
OptionId []byte `json:"option_id"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reports a video message advertisement to Telegram moderators
|
||||||
|
func (client *Client) ReportVideoMessageAdvertisement(req *ReportVideoMessageAdvertisementRequest) (ReportSponsoredResult, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "reportVideoMessageAdvertisement",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"advertisement_unique_id": req.AdvertisementUniqueId,
|
||||||
|
"option_id": req.OptionId,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
switch result.Type {
|
||||||
|
case TypeReportSponsoredResultOk:
|
||||||
|
return UnmarshalReportSponsoredResultOk(result.Data)
|
||||||
|
|
||||||
|
case TypeReportSponsoredResultFailed:
|
||||||
|
return UnmarshalReportSponsoredResultFailed(result.Data)
|
||||||
|
|
||||||
|
case TypeReportSponsoredResultOptionRequired:
|
||||||
|
return UnmarshalReportSponsoredResultOptionRequired(result.Data)
|
||||||
|
|
||||||
|
case TypeReportSponsoredResultAdsHidden:
|
||||||
|
return UnmarshalReportSponsoredResultAdsHidden(result.Data)
|
||||||
|
|
||||||
|
case TypeReportSponsoredResultPremiumRequired:
|
||||||
|
return UnmarshalReportSponsoredResultPremiumRequired(result.Data)
|
||||||
|
|
||||||
|
default:
|
||||||
|
return nil, errors.New("invalid type")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
type RemoveNotificationRequest struct {
|
type RemoveNotificationRequest struct {
|
||||||
// Identifier of notification group to which the notification belongs
|
// Identifier of notification group to which the notification belongs
|
||||||
NotificationGroupId int32 `json:"notification_group_id"`
|
NotificationGroupId int32 `json:"notification_group_id"`
|
||||||
|
|
@ -4911,6 +5103,41 @@ func (client *Client) EditMessageLiveLocation(req *EditMessageLiveLocationReques
|
||||||
return UnmarshalMessage(result.Data)
|
return UnmarshalMessage(result.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type EditMessageChecklistRequest struct {
|
||||||
|
// The chat the message belongs to
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
// Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited
|
||||||
|
MessageId int64 `json:"message_id"`
|
||||||
|
// The new message reply markup; pass null if none; for bots only
|
||||||
|
ReplyMarkup ReplyMarkup `json:"reply_markup"`
|
||||||
|
// The new checklist. If some tasks were completed, this information will be kept
|
||||||
|
Checklist *InputChecklist `json:"checklist"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Edits the message content of a checklist. Returns the edited message after the edit is completed on the server side
|
||||||
|
func (client *Client) EditMessageChecklist(req *EditMessageChecklistRequest) (*Message, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "editMessageChecklist",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"chat_id": req.ChatId,
|
||||||
|
"message_id": req.MessageId,
|
||||||
|
"reply_markup": req.ReplyMarkup,
|
||||||
|
"checklist": req.Checklist,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalMessage(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
type EditMessageMediaRequest struct {
|
type EditMessageMediaRequest struct {
|
||||||
// The chat the message belongs to
|
// The chat the message belongs to
|
||||||
ChatId int64 `json:"chat_id"`
|
ChatId int64 `json:"chat_id"`
|
||||||
|
|
@ -5425,6 +5652,44 @@ func (client *Client) EditBusinessMessageLiveLocation(req *EditBusinessMessageLi
|
||||||
return UnmarshalBusinessMessage(result.Data)
|
return UnmarshalBusinessMessage(result.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type EditBusinessMessageChecklistRequest struct {
|
||||||
|
// Unique identifier of business connection on behalf of which the message was sent
|
||||||
|
BusinessConnectionId string `json:"business_connection_id"`
|
||||||
|
// The chat the message belongs to
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
// Identifier of the message
|
||||||
|
MessageId int64 `json:"message_id"`
|
||||||
|
// The new message reply markup; pass null if none
|
||||||
|
ReplyMarkup ReplyMarkup `json:"reply_markup"`
|
||||||
|
// The new checklist. If some tasks were completed, this information will be kept
|
||||||
|
Checklist *InputChecklist `json:"checklist"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Edits the content of a checklist in a message sent on behalf of a business account; for bots only
|
||||||
|
func (client *Client) EditBusinessMessageChecklist(req *EditBusinessMessageChecklistRequest) (*BusinessMessage, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "editBusinessMessageChecklist",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"business_connection_id": req.BusinessConnectionId,
|
||||||
|
"chat_id": req.ChatId,
|
||||||
|
"message_id": req.MessageId,
|
||||||
|
"reply_markup": req.ReplyMarkup,
|
||||||
|
"checklist": req.Checklist,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalBusinessMessage(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
type EditBusinessMessageMediaRequest struct {
|
type EditBusinessMessageMediaRequest struct {
|
||||||
// Unique identifier of business connection on behalf of which the message was sent
|
// Unique identifier of business connection on behalf of which the message was sent
|
||||||
BusinessConnectionId string `json:"business_connection_id"`
|
BusinessConnectionId string `json:"business_connection_id"`
|
||||||
|
|
@ -6137,7 +6402,7 @@ type AddQuickReplyShortcutMessageRequest struct {
|
||||||
ShortcutName string `json:"shortcut_name"`
|
ShortcutName string `json:"shortcut_name"`
|
||||||
// Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none
|
// Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none
|
||||||
ReplyToMessageId int64 `json:"reply_to_message_id"`
|
ReplyToMessageId int64 `json:"reply_to_message_id"`
|
||||||
// The content of the message to be added; inputMessagePoll, inputMessageForwarded and inputMessageLocation with live_period aren't supported
|
// The content of the message to be added; inputMessagePaidMedia, inputMessageForwarded and inputMessageLocation with live_period aren't supported
|
||||||
InputMessageContent InputMessageContent `json:"input_message_content"`
|
InputMessageContent InputMessageContent `json:"input_message_content"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -6268,11 +6533,11 @@ type EditQuickReplyMessageRequest struct {
|
||||||
ShortcutId int32 `json:"shortcut_id"`
|
ShortcutId int32 `json:"shortcut_id"`
|
||||||
// Identifier of the message
|
// Identifier of the message
|
||||||
MessageId int64 `json:"message_id"`
|
MessageId int64 `json:"message_id"`
|
||||||
// New content of the message. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo
|
// New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageChecklist, inputMessageDocument, inputMessagePhoto, inputMessageText, or inputMessageVideo
|
||||||
InputMessageContent InputMessageContent `json:"input_message_content"`
|
InputMessageContent InputMessageContent `json:"input_message_content"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Asynchronously edits the text, media or caption of a quick reply message. Use quickReplyMessage.can_be_edited to check whether a message can be edited. Media message can be edited only to a media message. The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa
|
// Asynchronously edits the text, media or caption of a quick reply message. Use quickReplyMessage.can_be_edited to check whether a message can be edited. Media message can be edited only to a media message. Checklist messages can be edited only to a checklist message. The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa
|
||||||
func (client *Client) EditQuickReplyMessage(req *EditQuickReplyMessageRequest) (*Ok, error) {
|
func (client *Client) EditQuickReplyMessage(req *EditQuickReplyMessageRequest) (*Ok, error) {
|
||||||
result, err := client.Send(Request{
|
result, err := client.Send(Request{
|
||||||
meta: meta{
|
meta: meta{
|
||||||
|
|
@ -7719,6 +7984,73 @@ func (client *Client) StopPoll(req *StopPollRequest) (*Ok, error) {
|
||||||
return UnmarshalOk(result.Data)
|
return UnmarshalOk(result.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type AddChecklistTasksRequest struct {
|
||||||
|
// Identifier of the chat with the message
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
// Identifier of the message containing the checklist. Use messageProperties.can_add_tasks to check whether the tasks can be added
|
||||||
|
MessageId int64 `json:"message_id"`
|
||||||
|
// List of added tasks
|
||||||
|
Tasks []*InputChecklistTask `json:"tasks"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Adds tasks to a checklist in a message
|
||||||
|
func (client *Client) AddChecklistTasks(req *AddChecklistTasksRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "addChecklistTasks",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"chat_id": req.ChatId,
|
||||||
|
"message_id": req.MessageId,
|
||||||
|
"tasks": req.Tasks,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
type MarkChecklistTasksAsDoneRequest struct {
|
||||||
|
// Identifier of the chat with the message
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
// Identifier of the message containing the checklist. Use messageProperties.can_mark_tasks_as_done to check whether the tasks can be marked as done or not done
|
||||||
|
MessageId int64 `json:"message_id"`
|
||||||
|
// Identifiers of tasks that were marked as done
|
||||||
|
MarkedAsDoneTaskIds []int32 `json:"marked_as_done_task_ids"`
|
||||||
|
// Identifiers of tasks that were marked as not done
|
||||||
|
MarkedAsNotDoneTaskIds []int32 `json:"marked_as_not_done_task_ids"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Adds tasks of a checklist in a message as done or not done
|
||||||
|
func (client *Client) MarkChecklistTasksAsDone(req *MarkChecklistTasksAsDoneRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "markChecklistTasksAsDone",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"chat_id": req.ChatId,
|
||||||
|
"message_id": req.MessageId,
|
||||||
|
"marked_as_done_task_ids": req.MarkedAsDoneTaskIds,
|
||||||
|
"marked_as_not_done_task_ids": req.MarkedAsNotDoneTaskIds,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
type HideSuggestedActionRequest struct {
|
type HideSuggestedActionRequest struct {
|
||||||
// Suggested action to hide
|
// Suggested action to hide
|
||||||
Action SuggestedAction `json:"action"`
|
Action SuggestedAction `json:"action"`
|
||||||
|
|
|
||||||
501
client/type.go
501
client/type.go
|
|
@ -200,6 +200,10 @@ const (
|
||||||
ClassClosedVectorPath = "ClosedVectorPath"
|
ClassClosedVectorPath = "ClosedVectorPath"
|
||||||
ClassOutline = "Outline"
|
ClassOutline = "Outline"
|
||||||
ClassPollOption = "PollOption"
|
ClassPollOption = "PollOption"
|
||||||
|
ClassChecklistTask = "ChecklistTask"
|
||||||
|
ClassInputChecklistTask = "InputChecklistTask"
|
||||||
|
ClassChecklist = "Checklist"
|
||||||
|
ClassInputChecklist = "InputChecklist"
|
||||||
ClassAnimation = "Animation"
|
ClassAnimation = "Animation"
|
||||||
ClassAudio = "Audio"
|
ClassAudio = "Audio"
|
||||||
ClassDocument = "Document"
|
ClassDocument = "Document"
|
||||||
|
|
@ -216,6 +220,7 @@ const (
|
||||||
ClassWebApp = "WebApp"
|
ClassWebApp = "WebApp"
|
||||||
ClassPoll = "Poll"
|
ClassPoll = "Poll"
|
||||||
ClassAlternativeVideo = "AlternativeVideo"
|
ClassAlternativeVideo = "AlternativeVideo"
|
||||||
|
ClassVideoStoryboard = "VideoStoryboard"
|
||||||
ClassBackground = "Background"
|
ClassBackground = "Background"
|
||||||
ClassBackgrounds = "Backgrounds"
|
ClassBackgrounds = "Backgrounds"
|
||||||
ClassChatBackground = "ChatBackground"
|
ClassChatBackground = "ChatBackground"
|
||||||
|
|
@ -357,11 +362,13 @@ const (
|
||||||
ClassMessageCalendar = "MessageCalendar"
|
ClassMessageCalendar = "MessageCalendar"
|
||||||
ClassBusinessMessage = "BusinessMessage"
|
ClassBusinessMessage = "BusinessMessage"
|
||||||
ClassBusinessMessages = "BusinessMessages"
|
ClassBusinessMessages = "BusinessMessages"
|
||||||
ClassMessageSponsor = "MessageSponsor"
|
ClassAdvertisementSponsor = "AdvertisementSponsor"
|
||||||
ClassSponsoredMessage = "SponsoredMessage"
|
ClassSponsoredMessage = "SponsoredMessage"
|
||||||
ClassSponsoredMessages = "SponsoredMessages"
|
ClassSponsoredMessages = "SponsoredMessages"
|
||||||
ClassSponsoredChat = "SponsoredChat"
|
ClassSponsoredChat = "SponsoredChat"
|
||||||
ClassSponsoredChats = "SponsoredChats"
|
ClassSponsoredChats = "SponsoredChats"
|
||||||
|
ClassVideoMessageAdvertisement = "VideoMessageAdvertisement"
|
||||||
|
ClassVideoMessageAdvertisements = "VideoMessageAdvertisements"
|
||||||
ClassReportOption = "ReportOption"
|
ClassReportOption = "ReportOption"
|
||||||
ClassFileDownload = "FileDownload"
|
ClassFileDownload = "FileDownload"
|
||||||
ClassDownloadedFileCounts = "DownloadedFileCounts"
|
ClassDownloadedFileCounts = "DownloadedFileCounts"
|
||||||
|
|
@ -704,6 +711,10 @@ const (
|
||||||
TypePollOption = "pollOption"
|
TypePollOption = "pollOption"
|
||||||
TypePollTypeRegular = "pollTypeRegular"
|
TypePollTypeRegular = "pollTypeRegular"
|
||||||
TypePollTypeQuiz = "pollTypeQuiz"
|
TypePollTypeQuiz = "pollTypeQuiz"
|
||||||
|
TypeChecklistTask = "checklistTask"
|
||||||
|
TypeInputChecklistTask = "inputChecklistTask"
|
||||||
|
TypeChecklist = "checklist"
|
||||||
|
TypeInputChecklist = "inputChecklist"
|
||||||
TypeAnimation = "animation"
|
TypeAnimation = "animation"
|
||||||
TypeAudio = "audio"
|
TypeAudio = "audio"
|
||||||
TypeDocument = "document"
|
TypeDocument = "document"
|
||||||
|
|
@ -720,6 +731,7 @@ const (
|
||||||
TypeWebApp = "webApp"
|
TypeWebApp = "webApp"
|
||||||
TypePoll = "poll"
|
TypePoll = "poll"
|
||||||
TypeAlternativeVideo = "alternativeVideo"
|
TypeAlternativeVideo = "alternativeVideo"
|
||||||
|
TypeVideoStoryboard = "videoStoryboard"
|
||||||
TypeBackground = "background"
|
TypeBackground = "background"
|
||||||
TypeBackgrounds = "backgrounds"
|
TypeBackgrounds = "backgrounds"
|
||||||
TypeChatBackground = "chatBackground"
|
TypeChatBackground = "chatBackground"
|
||||||
|
|
@ -1004,11 +1016,13 @@ const (
|
||||||
TypeMessageSourceNotification = "messageSourceNotification"
|
TypeMessageSourceNotification = "messageSourceNotification"
|
||||||
TypeMessageSourceScreenshot = "messageSourceScreenshot"
|
TypeMessageSourceScreenshot = "messageSourceScreenshot"
|
||||||
TypeMessageSourceOther = "messageSourceOther"
|
TypeMessageSourceOther = "messageSourceOther"
|
||||||
TypeMessageSponsor = "messageSponsor"
|
TypeAdvertisementSponsor = "advertisementSponsor"
|
||||||
TypeSponsoredMessage = "sponsoredMessage"
|
TypeSponsoredMessage = "sponsoredMessage"
|
||||||
TypeSponsoredMessages = "sponsoredMessages"
|
TypeSponsoredMessages = "sponsoredMessages"
|
||||||
TypeSponsoredChat = "sponsoredChat"
|
TypeSponsoredChat = "sponsoredChat"
|
||||||
TypeSponsoredChats = "sponsoredChats"
|
TypeSponsoredChats = "sponsoredChats"
|
||||||
|
TypeVideoMessageAdvertisement = "videoMessageAdvertisement"
|
||||||
|
TypeVideoMessageAdvertisements = "videoMessageAdvertisements"
|
||||||
TypeReportOption = "reportOption"
|
TypeReportOption = "reportOption"
|
||||||
TypeReportSponsoredResultOk = "reportSponsoredResultOk"
|
TypeReportSponsoredResultOk = "reportSponsoredResultOk"
|
||||||
TypeReportSponsoredResultFailed = "reportSponsoredResultFailed"
|
TypeReportSponsoredResultFailed = "reportSponsoredResultFailed"
|
||||||
|
|
@ -1344,6 +1358,7 @@ const (
|
||||||
TypeMessageGame = "messageGame"
|
TypeMessageGame = "messageGame"
|
||||||
TypeMessagePoll = "messagePoll"
|
TypeMessagePoll = "messagePoll"
|
||||||
TypeMessageStory = "messageStory"
|
TypeMessageStory = "messageStory"
|
||||||
|
TypeMessageChecklist = "messageChecklist"
|
||||||
TypeMessageInvoice = "messageInvoice"
|
TypeMessageInvoice = "messageInvoice"
|
||||||
TypeMessageCall = "messageCall"
|
TypeMessageCall = "messageCall"
|
||||||
TypeMessageGroupCall = "messageGroupCall"
|
TypeMessageGroupCall = "messageGroupCall"
|
||||||
|
|
@ -1392,6 +1407,8 @@ const (
|
||||||
TypeMessagePaidMessagesRefunded = "messagePaidMessagesRefunded"
|
TypeMessagePaidMessagesRefunded = "messagePaidMessagesRefunded"
|
||||||
TypeMessagePaidMessagePriceChanged = "messagePaidMessagePriceChanged"
|
TypeMessagePaidMessagePriceChanged = "messagePaidMessagePriceChanged"
|
||||||
TypeMessageDirectMessagePriceChanged = "messageDirectMessagePriceChanged"
|
TypeMessageDirectMessagePriceChanged = "messageDirectMessagePriceChanged"
|
||||||
|
TypeMessageChecklistTasksDone = "messageChecklistTasksDone"
|
||||||
|
TypeMessageChecklistTasksAdded = "messageChecklistTasksAdded"
|
||||||
TypeMessageContactRegistered = "messageContactRegistered"
|
TypeMessageContactRegistered = "messageContactRegistered"
|
||||||
TypeMessageUsersShared = "messageUsersShared"
|
TypeMessageUsersShared = "messageUsersShared"
|
||||||
TypeMessageChatShared = "messageChatShared"
|
TypeMessageChatShared = "messageChatShared"
|
||||||
|
|
@ -1453,6 +1470,7 @@ const (
|
||||||
TypeInputMessageInvoice = "inputMessageInvoice"
|
TypeInputMessageInvoice = "inputMessageInvoice"
|
||||||
TypeInputMessagePoll = "inputMessagePoll"
|
TypeInputMessagePoll = "inputMessagePoll"
|
||||||
TypeInputMessageStory = "inputMessageStory"
|
TypeInputMessageStory = "inputMessageStory"
|
||||||
|
TypeInputMessageChecklist = "inputMessageChecklist"
|
||||||
TypeInputMessageForwarded = "inputMessageForwarded"
|
TypeInputMessageForwarded = "inputMessageForwarded"
|
||||||
TypeMessageProperties = "messageProperties"
|
TypeMessageProperties = "messageProperties"
|
||||||
TypeSearchMessagesFilterEmpty = "searchMessagesFilterEmpty"
|
TypeSearchMessagesFilterEmpty = "searchMessagesFilterEmpty"
|
||||||
|
|
@ -1800,6 +1818,7 @@ const (
|
||||||
TypePremiumFeatureLastSeenTimes = "premiumFeatureLastSeenTimes"
|
TypePremiumFeatureLastSeenTimes = "premiumFeatureLastSeenTimes"
|
||||||
TypePremiumFeatureBusiness = "premiumFeatureBusiness"
|
TypePremiumFeatureBusiness = "premiumFeatureBusiness"
|
||||||
TypePremiumFeatureMessageEffects = "premiumFeatureMessageEffects"
|
TypePremiumFeatureMessageEffects = "premiumFeatureMessageEffects"
|
||||||
|
TypePremiumFeatureChecklists = "premiumFeatureChecklists"
|
||||||
TypeBusinessFeatureLocation = "businessFeatureLocation"
|
TypeBusinessFeatureLocation = "businessFeatureLocation"
|
||||||
TypeBusinessFeatureOpeningHours = "businessFeatureOpeningHours"
|
TypeBusinessFeatureOpeningHours = "businessFeatureOpeningHours"
|
||||||
TypeBusinessFeatureQuickReplies = "businessFeatureQuickReplies"
|
TypeBusinessFeatureQuickReplies = "businessFeatureQuickReplies"
|
||||||
|
|
@ -1919,6 +1938,7 @@ const (
|
||||||
TypePushMessageContentSticker = "pushMessageContentSticker"
|
TypePushMessageContentSticker = "pushMessageContentSticker"
|
||||||
TypePushMessageContentStory = "pushMessageContentStory"
|
TypePushMessageContentStory = "pushMessageContentStory"
|
||||||
TypePushMessageContentText = "pushMessageContentText"
|
TypePushMessageContentText = "pushMessageContentText"
|
||||||
|
TypePushMessageContentChecklist = "pushMessageContentChecklist"
|
||||||
TypePushMessageContentVideo = "pushMessageContentVideo"
|
TypePushMessageContentVideo = "pushMessageContentVideo"
|
||||||
TypePushMessageContentVideoNote = "pushMessageContentVideoNote"
|
TypePushMessageContentVideoNote = "pushMessageContentVideoNote"
|
||||||
TypePushMessageContentVoiceNote = "pushMessageContentVoiceNote"
|
TypePushMessageContentVoiceNote = "pushMessageContentVoiceNote"
|
||||||
|
|
@ -1937,6 +1957,8 @@ const (
|
||||||
TypePushMessageContentRecurringPayment = "pushMessageContentRecurringPayment"
|
TypePushMessageContentRecurringPayment = "pushMessageContentRecurringPayment"
|
||||||
TypePushMessageContentSuggestProfilePhoto = "pushMessageContentSuggestProfilePhoto"
|
TypePushMessageContentSuggestProfilePhoto = "pushMessageContentSuggestProfilePhoto"
|
||||||
TypePushMessageContentProximityAlertTriggered = "pushMessageContentProximityAlertTriggered"
|
TypePushMessageContentProximityAlertTriggered = "pushMessageContentProximityAlertTriggered"
|
||||||
|
TypePushMessageContentChecklistTasksAdded = "pushMessageContentChecklistTasksAdded"
|
||||||
|
TypePushMessageContentChecklistTasksDone = "pushMessageContentChecklistTasksDone"
|
||||||
TypePushMessageContentMessageForwards = "pushMessageContentMessageForwards"
|
TypePushMessageContentMessageForwards = "pushMessageContentMessageForwards"
|
||||||
TypePushMessageContentMediaAlbum = "pushMessageContentMediaAlbum"
|
TypePushMessageContentMediaAlbum = "pushMessageContentMediaAlbum"
|
||||||
TypeNotificationTypeNewMessage = "notificationTypeNewMessage"
|
TypeNotificationTypeNewMessage = "notificationTypeNewMessage"
|
||||||
|
|
@ -5493,6 +5515,122 @@ func (*PollTypeQuiz) PollTypeType() string {
|
||||||
return TypePollTypeQuiz
|
return TypePollTypeQuiz
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Describes a task in a checklist
|
||||||
|
type ChecklistTask struct {
|
||||||
|
meta
|
||||||
|
// Unique identifier of the task
|
||||||
|
Id int32 `json:"id"`
|
||||||
|
// Text of the task; may contain only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, Url, EmailAddress, Mention, Hashtag, Cashtag and PhoneNumber entities
|
||||||
|
Text *FormattedText `json:"text"`
|
||||||
|
// Identifier of the user that completed the task; 0 if the task isn't completed
|
||||||
|
CompletedByUserId int64 `json:"completed_by_user_id"`
|
||||||
|
// Point in time (Unix timestamp) when the task was completed; 0 if the task isn't completed
|
||||||
|
CompletionDate int32 `json:"completion_date"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *ChecklistTask) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub ChecklistTask
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ChecklistTask) GetClass() string {
|
||||||
|
return ClassChecklistTask
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ChecklistTask) GetType() string {
|
||||||
|
return TypeChecklistTask
|
||||||
|
}
|
||||||
|
|
||||||
|
// Describes a task in a checklist to be sent
|
||||||
|
type InputChecklistTask struct {
|
||||||
|
meta
|
||||||
|
// Unique identifier of the task; must be positive
|
||||||
|
Id int32 `json:"id"`
|
||||||
|
// Text of the task; 1-getOption("checklist_task_text_length_max") characters without line feeds. May contain only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities
|
||||||
|
Text *FormattedText `json:"text"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *InputChecklistTask) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub InputChecklistTask
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InputChecklistTask) GetClass() string {
|
||||||
|
return ClassInputChecklistTask
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InputChecklistTask) GetType() string {
|
||||||
|
return TypeInputChecklistTask
|
||||||
|
}
|
||||||
|
|
||||||
|
// Describes a checklist
|
||||||
|
type Checklist struct {
|
||||||
|
meta
|
||||||
|
// Title of the checklist; may contain only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities
|
||||||
|
Title *FormattedText `json:"title"`
|
||||||
|
// List of tasks in the checklist
|
||||||
|
Tasks []*ChecklistTask `json:"tasks"`
|
||||||
|
// True, if users other than creator of the list can add tasks to the list
|
||||||
|
OthersCanAddTasks bool `json:"others_can_add_tasks"`
|
||||||
|
// True, if the current user can add tasks to the list if they have Telegram Premium subscription
|
||||||
|
CanAddTasks bool `json:"can_add_tasks"`
|
||||||
|
// True, if users other than creator of the list can mark tasks as done or not done. If true, then the checklist is called "group checklist"
|
||||||
|
OthersCanMarkTasksAsDone bool `json:"others_can_mark_tasks_as_done"`
|
||||||
|
// True, if the current user can mark tasks as done or not done if they have Telegram Premium subscription
|
||||||
|
CanMarkTasksAsDone bool `json:"can_mark_tasks_as_done"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *Checklist) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub Checklist
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*Checklist) GetClass() string {
|
||||||
|
return ClassChecklist
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*Checklist) GetType() string {
|
||||||
|
return TypeChecklist
|
||||||
|
}
|
||||||
|
|
||||||
|
// Describes a checklist to be sent
|
||||||
|
type InputChecklist struct {
|
||||||
|
meta
|
||||||
|
// Title of the checklist; 1-getOption("checklist_title_length_max") characters. May contain only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities
|
||||||
|
Title *FormattedText `json:"title"`
|
||||||
|
// List of tasks in the checklist; 1-getOption("checklist_task_count_max") tasks
|
||||||
|
Tasks []*InputChecklistTask `json:"tasks"`
|
||||||
|
// True, if other users can add tasks to the list
|
||||||
|
OthersCanAddTasks bool `json:"others_can_add_tasks"`
|
||||||
|
// True, if other users can mark tasks as done or not done
|
||||||
|
OthersCanMarkTasksAsDone bool `json:"others_can_mark_tasks_as_done"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *InputChecklist) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub InputChecklist
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InputChecklist) GetClass() string {
|
||||||
|
return ClassInputChecklist
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InputChecklist) GetType() string {
|
||||||
|
return TypeInputChecklist
|
||||||
|
}
|
||||||
|
|
||||||
// Describes an animation file. The animation must be encoded in GIF or MPEG4 format
|
// Describes an animation file. The animation must be encoded in GIF or MPEG4 format
|
||||||
type Animation struct {
|
type Animation struct {
|
||||||
meta
|
meta
|
||||||
|
|
@ -6163,6 +6301,35 @@ func (*AlternativeVideo) GetType() string {
|
||||||
return TypeAlternativeVideo
|
return TypeAlternativeVideo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Describes a storyboard for a video
|
||||||
|
type VideoStoryboard struct {
|
||||||
|
meta
|
||||||
|
// A JPEG file that contains tiled previews of video
|
||||||
|
StoryboardFile *File `json:"storyboard_file"`
|
||||||
|
// Width of a tile
|
||||||
|
Width int32 `json:"width"`
|
||||||
|
// Height of a tile
|
||||||
|
Height int32 `json:"height"`
|
||||||
|
// File that describes mapping of position in the video to a tile in the JPEG file
|
||||||
|
MapFile *File `json:"map_file"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *VideoStoryboard) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub VideoStoryboard
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*VideoStoryboard) GetClass() string {
|
||||||
|
return ClassVideoStoryboard
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*VideoStoryboard) GetType() string {
|
||||||
|
return TypeVideoStoryboard
|
||||||
|
}
|
||||||
|
|
||||||
// Describes a chat background
|
// Describes a chat background
|
||||||
type Background struct {
|
type Background struct {
|
||||||
meta
|
meta
|
||||||
|
|
@ -7600,7 +7767,7 @@ type ChatPermissions struct {
|
||||||
CanSendVideoNotes bool `json:"can_send_video_notes"`
|
CanSendVideoNotes bool `json:"can_send_video_notes"`
|
||||||
// True, if the user can send voice notes
|
// True, if the user can send voice notes
|
||||||
CanSendVoiceNotes bool `json:"can_send_voice_notes"`
|
CanSendVoiceNotes bool `json:"can_send_voice_notes"`
|
||||||
// True, if the user can send polls
|
// True, if the user can send polls and checklists
|
||||||
CanSendPolls bool `json:"can_send_polls"`
|
CanSendPolls bool `json:"can_send_polls"`
|
||||||
// True, if the user can send stickers. Implies can_send_messages permissions
|
// True, if the user can send stickers. Implies can_send_messages permissions
|
||||||
CanSendStickers bool `json:"can_send_stickers"`
|
CanSendStickers bool `json:"can_send_stickers"`
|
||||||
|
|
@ -13352,6 +13519,8 @@ type SupergroupFullInfo struct {
|
||||||
MyBoostCount int32 `json:"my_boost_count"`
|
MyBoostCount int32 `json:"my_boost_count"`
|
||||||
// Number of times the supergroup must be boosted by a user to ignore slow mode and chat permission restrictions; 0 if unspecified
|
// Number of times the supergroup must be boosted by a user to ignore slow mode and chat permission restrictions; 0 if unspecified
|
||||||
UnrestrictBoostCount int32 `json:"unrestrict_boost_count"`
|
UnrestrictBoostCount int32 `json:"unrestrict_boost_count"`
|
||||||
|
// Number of Telegram Stars that must be paid by the current user for each sent message to the supergroup
|
||||||
|
OutgoingPaidMessageStarCount int64 `json:"outgoing_paid_message_star_count"`
|
||||||
// Identifier of the supergroup sticker set that must be shown before user sticker sets; 0 if none
|
// Identifier of the supergroup sticker set that must be shown before user sticker sets; 0 if none
|
||||||
StickerSetId JsonInt64 `json:"sticker_set_id"`
|
StickerSetId JsonInt64 `json:"sticker_set_id"`
|
||||||
// Identifier of the custom emoji sticker set that can be used in the supergroup without Telegram Premium subscription; 0 if none
|
// Identifier of the custom emoji sticker set that can be used in the supergroup without Telegram Premium subscription; 0 if none
|
||||||
|
|
@ -14872,7 +15041,7 @@ type MessageReplyToMessage struct {
|
||||||
Origin MessageOrigin `json:"origin"`
|
Origin MessageOrigin `json:"origin"`
|
||||||
// Point in time (Unix timestamp) when the message was sent if the message was from another chat or topic; 0 for messages from the same chat
|
// Point in time (Unix timestamp) when the message was sent if the message was from another chat or topic; 0 for messages from the same chat
|
||||||
OriginSendDate int32 `json:"origin_send_date"`
|
OriginSendDate int32 `json:"origin_send_date"`
|
||||||
// Media content of the message if the message was from another chat or topic; may be null for messages from the same chat and messages without media. Can be only one of the following types: messageAnimation, messageAudio, messageContact, messageDice, messageDocument, messageGame, messageGiveaway, messageGiveawayWinners, messageInvoice, messageLocation, messagePaidMedia, messagePhoto, messagePoll, messageSticker, messageStory, messageText (for link preview), messageVenue, messageVideo, messageVideoNote, or messageVoiceNote
|
// Media content of the message if the message was from another chat or topic; may be null for messages from the same chat and messages without media. Can be only one of the following types: messageAnimation, messageAudio, messageChecklist, messageContact, messageDice, messageDocument, messageGame, messageGiveaway, messageGiveawayWinners, messageInvoice, messageLocation, messagePaidMedia, messagePhoto, messagePoll, messageSticker, messageStory, messageText (for link preview), messageVenue, messageVideo, messageVideoNote, or messageVoiceNote
|
||||||
Content MessageContent `json:"content"`
|
Content MessageContent `json:"content"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -15766,31 +15935,31 @@ func (*MessageSourceOther) MessageSourceType() string {
|
||||||
return TypeMessageSourceOther
|
return TypeMessageSourceOther
|
||||||
}
|
}
|
||||||
|
|
||||||
// Information about the sponsor of a message
|
// Information about the sponsor of an advertisement
|
||||||
type MessageSponsor struct {
|
type AdvertisementSponsor struct {
|
||||||
meta
|
meta
|
||||||
// URL of the sponsor to be opened when the message is clicked
|
// URL of the sponsor to be opened when the advertisement is clicked
|
||||||
Url string `json:"url"`
|
Url string `json:"url"`
|
||||||
// Photo of the sponsor; may be null if must not be shown
|
// Photo of the sponsor; may be null if must not be shown
|
||||||
Photo *Photo `json:"photo"`
|
Photo *Photo `json:"photo"`
|
||||||
// Additional optional information about the sponsor to be shown along with the message
|
// Additional optional information about the sponsor to be shown along with the advertisement
|
||||||
Info string `json:"info"`
|
Info string `json:"info"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entity *MessageSponsor) MarshalJSON() ([]byte, error) {
|
func (entity *AdvertisementSponsor) MarshalJSON() ([]byte, error) {
|
||||||
entity.meta.Type = entity.GetType()
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
type stub MessageSponsor
|
type stub AdvertisementSponsor
|
||||||
|
|
||||||
return json.Marshal((*stub)(entity))
|
return json.Marshal((*stub)(entity))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*MessageSponsor) GetClass() string {
|
func (*AdvertisementSponsor) GetClass() string {
|
||||||
return ClassMessageSponsor
|
return ClassAdvertisementSponsor
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*MessageSponsor) GetType() string {
|
func (*AdvertisementSponsor) GetType() string {
|
||||||
return TypeMessageSponsor
|
return TypeAdvertisementSponsor
|
||||||
}
|
}
|
||||||
|
|
||||||
// Describes a sponsored message
|
// Describes a sponsored message
|
||||||
|
|
@ -15805,7 +15974,7 @@ type SponsoredMessage struct {
|
||||||
// Content of the message. Currently, can be only of the types messageText, messageAnimation, messagePhoto, or messageVideo. Video messages can be viewed fullscreen
|
// Content of the message. Currently, can be only of the types messageText, messageAnimation, messagePhoto, or messageVideo. Video messages can be viewed fullscreen
|
||||||
Content MessageContent `json:"content"`
|
Content MessageContent `json:"content"`
|
||||||
// Information about the sponsor of the message
|
// Information about the sponsor of the message
|
||||||
Sponsor *MessageSponsor `json:"sponsor"`
|
Sponsor *AdvertisementSponsor `json:"sponsor"`
|
||||||
// Title of the sponsored message
|
// Title of the sponsored message
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
// Text for the message action button
|
// Text for the message action button
|
||||||
|
|
@ -15840,7 +16009,7 @@ func (sponsoredMessage *SponsoredMessage) UnmarshalJSON(data []byte) error {
|
||||||
IsRecommended bool `json:"is_recommended"`
|
IsRecommended bool `json:"is_recommended"`
|
||||||
CanBeReported bool `json:"can_be_reported"`
|
CanBeReported bool `json:"can_be_reported"`
|
||||||
Content json.RawMessage `json:"content"`
|
Content json.RawMessage `json:"content"`
|
||||||
Sponsor *MessageSponsor `json:"sponsor"`
|
Sponsor *AdvertisementSponsor `json:"sponsor"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
ButtonText string `json:"button_text"`
|
ButtonText string `json:"button_text"`
|
||||||
AccentColorId int32 `json:"accent_color_id"`
|
AccentColorId int32 `json:"accent_color_id"`
|
||||||
|
|
@ -15946,6 +16115,70 @@ func (*SponsoredChats) GetType() string {
|
||||||
return TypeSponsoredChats
|
return TypeSponsoredChats
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Describes an advertisent to be shown while a video from a message is watched
|
||||||
|
type VideoMessageAdvertisement struct {
|
||||||
|
meta
|
||||||
|
// Unique identifier of this result
|
||||||
|
UniqueId int64 `json:"unique_id"`
|
||||||
|
// Text of the advertisement
|
||||||
|
Text string `json:"text"`
|
||||||
|
// The minimum amount of time the advertisement must be dispalyed before it can be hidden by the user, in seconds
|
||||||
|
MinDisplayDuration int32 `json:"min_display_duration"`
|
||||||
|
// The maximum amount of time the advertisement must be dispalyed before it must be automatically hidden, in seconds
|
||||||
|
MaxDisplayDuration int32 `json:"max_display_duration"`
|
||||||
|
// True, if the advertisement can be reported to Telegram moderators through reportVideoMessageAdvertisement
|
||||||
|
CanBeReported bool `json:"can_be_reported"`
|
||||||
|
// Information about the sponsor of the advertisement
|
||||||
|
Sponsor *AdvertisementSponsor `json:"sponsor"`
|
||||||
|
// Title of the sponsored message
|
||||||
|
Title string `json:"title"`
|
||||||
|
// If non-empty, additional information about the sponsored message to be shown along with the message
|
||||||
|
AdditionalInfo string `json:"additional_info"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *VideoMessageAdvertisement) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub VideoMessageAdvertisement
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*VideoMessageAdvertisement) GetClass() string {
|
||||||
|
return ClassVideoMessageAdvertisement
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*VideoMessageAdvertisement) GetType() string {
|
||||||
|
return TypeVideoMessageAdvertisement
|
||||||
|
}
|
||||||
|
|
||||||
|
// Contains a list of advertisements to be shown while a video from a message is watched
|
||||||
|
type VideoMessageAdvertisements struct {
|
||||||
|
meta
|
||||||
|
// List of advertisements
|
||||||
|
Advertisements []*VideoMessageAdvertisement `json:"advertisements"`
|
||||||
|
// Delay before the first advertisement is shown, in seconds
|
||||||
|
StartDelay int32 `json:"start_delay"`
|
||||||
|
// Delay between consecutive advertisements, in seconds
|
||||||
|
BetweenDelay int32 `json:"between_delay"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *VideoMessageAdvertisements) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub VideoMessageAdvertisements
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*VideoMessageAdvertisements) GetClass() string {
|
||||||
|
return ClassVideoMessageAdvertisements
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*VideoMessageAdvertisements) GetType() string {
|
||||||
|
return TypeVideoMessageAdvertisements
|
||||||
|
}
|
||||||
|
|
||||||
// Describes an option to report an entity to Telegram
|
// Describes an option to report an entity to Telegram
|
||||||
type ReportOption struct {
|
type ReportOption struct {
|
||||||
meta
|
meta
|
||||||
|
|
@ -19168,6 +19401,8 @@ type DirectMessagesChatTopic struct {
|
||||||
SenderId MessageSender `json:"sender_id"`
|
SenderId MessageSender `json:"sender_id"`
|
||||||
// A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order
|
// A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order
|
||||||
Order JsonInt64 `json:"order"`
|
Order JsonInt64 `json:"order"`
|
||||||
|
// True, if the other party can send unpaid messages even if the chat has paid messages enabled
|
||||||
|
CanSendUnpaidMessages bool `json:"can_send_unpaid_messages"`
|
||||||
// True, if the forum topic is marked as unread
|
// True, if the forum topic is marked as unread
|
||||||
IsMarkedAsUnread bool `json:"is_marked_as_unread"`
|
IsMarkedAsUnread bool `json:"is_marked_as_unread"`
|
||||||
// Number of unread messages in the chat
|
// Number of unread messages in the chat
|
||||||
|
|
@ -19206,6 +19441,7 @@ func (directMessagesChatTopic *DirectMessagesChatTopic) UnmarshalJSON(data []byt
|
||||||
Id int64 `json:"id"`
|
Id int64 `json:"id"`
|
||||||
SenderId json.RawMessage `json:"sender_id"`
|
SenderId json.RawMessage `json:"sender_id"`
|
||||||
Order JsonInt64 `json:"order"`
|
Order JsonInt64 `json:"order"`
|
||||||
|
CanSendUnpaidMessages bool `json:"can_send_unpaid_messages"`
|
||||||
IsMarkedAsUnread bool `json:"is_marked_as_unread"`
|
IsMarkedAsUnread bool `json:"is_marked_as_unread"`
|
||||||
UnreadCount int64 `json:"unread_count"`
|
UnreadCount int64 `json:"unread_count"`
|
||||||
LastReadInboxMessageId int64 `json:"last_read_inbox_message_id"`
|
LastReadInboxMessageId int64 `json:"last_read_inbox_message_id"`
|
||||||
|
|
@ -19223,6 +19459,7 @@ func (directMessagesChatTopic *DirectMessagesChatTopic) UnmarshalJSON(data []byt
|
||||||
directMessagesChatTopic.ChatId = tmp.ChatId
|
directMessagesChatTopic.ChatId = tmp.ChatId
|
||||||
directMessagesChatTopic.Id = tmp.Id
|
directMessagesChatTopic.Id = tmp.Id
|
||||||
directMessagesChatTopic.Order = tmp.Order
|
directMessagesChatTopic.Order = tmp.Order
|
||||||
|
directMessagesChatTopic.CanSendUnpaidMessages = tmp.CanSendUnpaidMessages
|
||||||
directMessagesChatTopic.IsMarkedAsUnread = tmp.IsMarkedAsUnread
|
directMessagesChatTopic.IsMarkedAsUnread = tmp.IsMarkedAsUnread
|
||||||
directMessagesChatTopic.UnreadCount = tmp.UnreadCount
|
directMessagesChatTopic.UnreadCount = tmp.UnreadCount
|
||||||
directMessagesChatTopic.LastReadInboxMessageId = tmp.LastReadInboxMessageId
|
directMessagesChatTopic.LastReadInboxMessageId = tmp.LastReadInboxMessageId
|
||||||
|
|
@ -26677,6 +26914,8 @@ type MessageVideo struct {
|
||||||
Video *Video `json:"video"`
|
Video *Video `json:"video"`
|
||||||
// Alternative qualities of the video
|
// Alternative qualities of the video
|
||||||
AlternativeVideos []*AlternativeVideo `json:"alternative_videos"`
|
AlternativeVideos []*AlternativeVideo `json:"alternative_videos"`
|
||||||
|
// Available storyboards for the video
|
||||||
|
Storyboards []*VideoStoryboard `json:"storyboards"`
|
||||||
// Cover of the video; may be null if none
|
// Cover of the video; may be null if none
|
||||||
Cover *Photo `json:"cover"`
|
Cover *Photo `json:"cover"`
|
||||||
// Timestamp from which the video playing must start, in seconds
|
// Timestamp from which the video playing must start, in seconds
|
||||||
|
|
@ -27138,6 +27377,33 @@ func (*MessageStory) MessageContentType() string {
|
||||||
return TypeMessageStory
|
return TypeMessageStory
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A message with a checklist
|
||||||
|
type MessageChecklist struct {
|
||||||
|
meta
|
||||||
|
// The checklist description
|
||||||
|
List *Checklist `json:"list"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *MessageChecklist) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub MessageChecklist
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MessageChecklist) GetClass() string {
|
||||||
|
return ClassMessageContent
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MessageChecklist) GetType() string {
|
||||||
|
return TypeMessageChecklist
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MessageChecklist) MessageContentType() string {
|
||||||
|
return TypeMessageChecklist
|
||||||
|
}
|
||||||
|
|
||||||
// A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice
|
// A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice
|
||||||
type MessageInvoice struct {
|
type MessageInvoice struct {
|
||||||
meta
|
meta
|
||||||
|
|
@ -28990,6 +29256,66 @@ func (*MessageDirectMessagePriceChanged) MessageContentType() string {
|
||||||
return TypeMessageDirectMessagePriceChanged
|
return TypeMessageDirectMessagePriceChanged
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Some tasks from a checklist were marked as done or not done
|
||||||
|
type MessageChecklistTasksDone struct {
|
||||||
|
meta
|
||||||
|
// Identifier of the message with the checklist; can be 0 if the message was deleted
|
||||||
|
ChecklistMessageId int64 `json:"checklist_message_id"`
|
||||||
|
// Identifiers of tasks that were marked as done
|
||||||
|
MarkedAsDoneTaskIds []int32 `json:"marked_as_done_task_ids"`
|
||||||
|
// Identifiers of tasks that were marked as not done
|
||||||
|
MarkedAsNotDoneTaskIds []int32 `json:"marked_as_not_done_task_ids"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *MessageChecklistTasksDone) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub MessageChecklistTasksDone
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MessageChecklistTasksDone) GetClass() string {
|
||||||
|
return ClassMessageContent
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MessageChecklistTasksDone) GetType() string {
|
||||||
|
return TypeMessageChecklistTasksDone
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MessageChecklistTasksDone) MessageContentType() string {
|
||||||
|
return TypeMessageChecklistTasksDone
|
||||||
|
}
|
||||||
|
|
||||||
|
// Some tasks were added to a checklist
|
||||||
|
type MessageChecklistTasksAdded struct {
|
||||||
|
meta
|
||||||
|
// Identifier of the message with the checklist; can be 0 if the message was deleted
|
||||||
|
ChecklistMessageId int64 `json:"checklist_message_id"`
|
||||||
|
// List of tasks added to the checklist
|
||||||
|
Tasks []*ChecklistTask `json:"tasks"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *MessageChecklistTasksAdded) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub MessageChecklistTasksAdded
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MessageChecklistTasksAdded) GetClass() string {
|
||||||
|
return ClassMessageContent
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MessageChecklistTasksAdded) GetType() string {
|
||||||
|
return TypeMessageChecklistTasksAdded
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MessageChecklistTasksAdded) MessageContentType() string {
|
||||||
|
return TypeMessageChecklistTasksAdded
|
||||||
|
}
|
||||||
|
|
||||||
// A contact has registered with Telegram
|
// A contact has registered with Telegram
|
||||||
type MessageContactRegistered struct{
|
type MessageContactRegistered struct{
|
||||||
meta
|
meta
|
||||||
|
|
@ -31227,6 +31553,33 @@ func (*InputMessageStory) InputMessageContentType() string {
|
||||||
return TypeInputMessageStory
|
return TypeInputMessageStory
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A message with a checklist. Checklists can't be sent to secret chats, channel chats and channel direct messages chats; for Telegram Premium users only
|
||||||
|
type InputMessageChecklist struct {
|
||||||
|
meta
|
||||||
|
// The checklist to send
|
||||||
|
Checklist *InputChecklist `json:"checklist"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *InputMessageChecklist) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub InputMessageChecklist
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InputMessageChecklist) GetClass() string {
|
||||||
|
return ClassInputMessageContent
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InputMessageChecklist) GetType() string {
|
||||||
|
return TypeInputMessageChecklist
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InputMessageChecklist) InputMessageContentType() string {
|
||||||
|
return TypeInputMessageChecklist
|
||||||
|
}
|
||||||
|
|
||||||
// A forwarded message
|
// A forwarded message
|
||||||
type InputMessageForwarded struct {
|
type InputMessageForwarded struct {
|
||||||
meta
|
meta
|
||||||
|
|
@ -31267,6 +31620,8 @@ func (*InputMessageForwarded) InputMessageContentType() string {
|
||||||
// Contains properties of a message and describes actions that can be done with the message right now
|
// Contains properties of a message and describes actions that can be done with the message right now
|
||||||
type MessageProperties struct {
|
type MessageProperties struct {
|
||||||
meta
|
meta
|
||||||
|
// True, if tasks can be added to the message's checklist using addChecklistTasks if the current user has Telegram Premium subscription
|
||||||
|
CanAddTasks bool `json:"can_add_tasks"`
|
||||||
// True, if content of the message can be copied using inputMessageForwarded or forwardMessages with copy options
|
// True, if content of the message can be copied using inputMessageForwarded or forwardMessages with copy options
|
||||||
CanBeCopied bool `json:"can_be_copied"`
|
CanBeCopied bool `json:"can_be_copied"`
|
||||||
// True, if content of the message can be copied to a secret chat using inputMessageForwarded or forwardMessages with copy options
|
// True, if content of the message can be copied to a secret chat using inputMessageForwarded or forwardMessages with copy options
|
||||||
|
|
@ -31275,7 +31630,7 @@ type MessageProperties struct {
|
||||||
CanBeDeletedOnlyForSelf bool `json:"can_be_deleted_only_for_self"`
|
CanBeDeletedOnlyForSelf bool `json:"can_be_deleted_only_for_self"`
|
||||||
// True, if the message can be deleted for all users using the method deleteMessages with revoke == true
|
// True, if the message can be deleted for all users using the method deleteMessages with revoke == true
|
||||||
CanBeDeletedForAllUsers bool `json:"can_be_deleted_for_all_users"`
|
CanBeDeletedForAllUsers bool `json:"can_be_deleted_for_all_users"`
|
||||||
// True, if the message can be edited using the methods editMessageText, editMessageCaption, or editMessageReplyMarkup. For live location and poll messages this fields shows whether editMessageLiveLocation or stopPoll can be used with this message
|
// True, if the message can be edited using the methods editMessageText, editMessageCaption, or editMessageReplyMarkup. For live location, poll, and checklist messages this fields shows whether editMessageLiveLocation, stopPoll, or editMessageChecklist respectively can be used with this message
|
||||||
CanBeEdited bool `json:"can_be_edited"`
|
CanBeEdited bool `json:"can_be_edited"`
|
||||||
// True, if the message can be forwarded using inputMessageForwarded or forwardMessages without copy options
|
// True, if the message can be forwarded using inputMessageForwarded or forwardMessages without copy options
|
||||||
CanBeForwarded bool `json:"can_be_forwarded"`
|
CanBeForwarded bool `json:"can_be_forwarded"`
|
||||||
|
|
@ -31309,8 +31664,12 @@ type MessageProperties struct {
|
||||||
CanGetReadDate bool `json:"can_get_read_date"`
|
CanGetReadDate bool `json:"can_get_read_date"`
|
||||||
// True, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards
|
// True, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards
|
||||||
CanGetStatistics bool `json:"can_get_statistics"`
|
CanGetStatistics bool `json:"can_get_statistics"`
|
||||||
|
// True, if advertisements for video of the message can be received though getVideoMessageAdvertisements
|
||||||
|
CanGetVideoAdvertisements bool `json:"can_get_video_advertisements"`
|
||||||
// True, if chat members already viewed the message can be received through getMessageViewers
|
// True, if chat members already viewed the message can be received through getMessageViewers
|
||||||
CanGetViewers bool `json:"can_get_viewers"`
|
CanGetViewers bool `json:"can_get_viewers"`
|
||||||
|
// True, if tasks can be marked as done or not done in the message's checklist using markChecklistTasksAsDone if the current user has Telegram Premium subscription
|
||||||
|
CanMarkTasksAsDone bool `json:"can_mark_tasks_as_done"`
|
||||||
// True, if speech can be recognized for the message through recognizeSpeech
|
// True, if speech can be recognized for the message through recognizeSpeech
|
||||||
CanRecognizeSpeech bool `json:"can_recognize_speech"`
|
CanRecognizeSpeech bool `json:"can_recognize_speech"`
|
||||||
// True, if the message can be reported using reportChat
|
// True, if the message can be reported using reportChat
|
||||||
|
|
@ -42570,6 +42929,31 @@ func (*PremiumFeatureMessageEffects) PremiumFeatureType() string {
|
||||||
return TypePremiumFeatureMessageEffects
|
return TypePremiumFeatureMessageEffects
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The ability to create and use checklist messages
|
||||||
|
type PremiumFeatureChecklists struct{
|
||||||
|
meta
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *PremiumFeatureChecklists) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub PremiumFeatureChecklists
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PremiumFeatureChecklists) GetClass() string {
|
||||||
|
return ClassPremiumFeature
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PremiumFeatureChecklists) GetType() string {
|
||||||
|
return TypePremiumFeatureChecklists
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PremiumFeatureChecklists) PremiumFeatureType() string {
|
||||||
|
return TypePremiumFeatureChecklists
|
||||||
|
}
|
||||||
|
|
||||||
// The ability to set location
|
// The ability to set location
|
||||||
type BusinessFeatureLocation struct{
|
type BusinessFeatureLocation struct{
|
||||||
meta
|
meta
|
||||||
|
|
@ -46085,6 +46469,35 @@ func (*PushMessageContentText) PushMessageContentType() string {
|
||||||
return TypePushMessageContentText
|
return TypePushMessageContentText
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A message with a checklist
|
||||||
|
type PushMessageContentChecklist struct {
|
||||||
|
meta
|
||||||
|
// Checklist title
|
||||||
|
Title string `json:"title"`
|
||||||
|
// True, if the message is a pinned message with the specified content
|
||||||
|
IsPinned bool `json:"is_pinned"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *PushMessageContentChecklist) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub PushMessageContentChecklist
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PushMessageContentChecklist) GetClass() string {
|
||||||
|
return ClassPushMessageContent
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PushMessageContentChecklist) GetType() string {
|
||||||
|
return TypePushMessageContentChecklist
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PushMessageContentChecklist) PushMessageContentType() string {
|
||||||
|
return TypePushMessageContentChecklist
|
||||||
|
}
|
||||||
|
|
||||||
// A video message
|
// A video message
|
||||||
type PushMessageContentVideo struct {
|
type PushMessageContentVideo struct {
|
||||||
meta
|
meta
|
||||||
|
|
@ -46575,6 +46988,60 @@ func (*PushMessageContentProximityAlertTriggered) PushMessageContentType() strin
|
||||||
return TypePushMessageContentProximityAlertTriggered
|
return TypePushMessageContentProximityAlertTriggered
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Some tasks were added to a checklist
|
||||||
|
type PushMessageContentChecklistTasksAdded struct {
|
||||||
|
meta
|
||||||
|
// Number of added tasks
|
||||||
|
TaskCount int32 `json:"task_count"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *PushMessageContentChecklistTasksAdded) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub PushMessageContentChecklistTasksAdded
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PushMessageContentChecklistTasksAdded) GetClass() string {
|
||||||
|
return ClassPushMessageContent
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PushMessageContentChecklistTasksAdded) GetType() string {
|
||||||
|
return TypePushMessageContentChecklistTasksAdded
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PushMessageContentChecklistTasksAdded) PushMessageContentType() string {
|
||||||
|
return TypePushMessageContentChecklistTasksAdded
|
||||||
|
}
|
||||||
|
|
||||||
|
// Some tasks from a checklist were marked as done or not done
|
||||||
|
type PushMessageContentChecklistTasksDone struct {
|
||||||
|
meta
|
||||||
|
// Number of changed tasks
|
||||||
|
TaskCount int32 `json:"task_count"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *PushMessageContentChecklistTasksDone) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub PushMessageContentChecklistTasksDone
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PushMessageContentChecklistTasksDone) GetClass() string {
|
||||||
|
return ClassPushMessageContent
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PushMessageContentChecklistTasksDone) GetType() string {
|
||||||
|
return TypePushMessageContentChecklistTasksDone
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PushMessageContentChecklistTasksDone) PushMessageContentType() string {
|
||||||
|
return TypePushMessageContentChecklistTasksDone
|
||||||
|
}
|
||||||
|
|
||||||
// A forwarded messages
|
// A forwarded messages
|
||||||
type PushMessageContentMessageForwards struct {
|
type PushMessageContentMessageForwards struct {
|
||||||
meta
|
meta
|
||||||
|
|
|
||||||
|
|
@ -3507,6 +3507,9 @@ func UnmarshalMessageContent(data json.RawMessage) (MessageContent, error) {
|
||||||
case TypeMessageStory:
|
case TypeMessageStory:
|
||||||
return UnmarshalMessageStory(data)
|
return UnmarshalMessageStory(data)
|
||||||
|
|
||||||
|
case TypeMessageChecklist:
|
||||||
|
return UnmarshalMessageChecklist(data)
|
||||||
|
|
||||||
case TypeMessageInvoice:
|
case TypeMessageInvoice:
|
||||||
return UnmarshalMessageInvoice(data)
|
return UnmarshalMessageInvoice(data)
|
||||||
|
|
||||||
|
|
@ -3651,6 +3654,12 @@ func UnmarshalMessageContent(data json.RawMessage) (MessageContent, error) {
|
||||||
case TypeMessageDirectMessagePriceChanged:
|
case TypeMessageDirectMessagePriceChanged:
|
||||||
return UnmarshalMessageDirectMessagePriceChanged(data)
|
return UnmarshalMessageDirectMessagePriceChanged(data)
|
||||||
|
|
||||||
|
case TypeMessageChecklistTasksDone:
|
||||||
|
return UnmarshalMessageChecklistTasksDone(data)
|
||||||
|
|
||||||
|
case TypeMessageChecklistTasksAdded:
|
||||||
|
return UnmarshalMessageChecklistTasksAdded(data)
|
||||||
|
|
||||||
case TypeMessageContactRegistered:
|
case TypeMessageContactRegistered:
|
||||||
return UnmarshalMessageContactRegistered(data)
|
return UnmarshalMessageContactRegistered(data)
|
||||||
|
|
||||||
|
|
@ -3962,6 +3971,9 @@ func UnmarshalInputMessageContent(data json.RawMessage) (InputMessageContent, er
|
||||||
case TypeInputMessageStory:
|
case TypeInputMessageStory:
|
||||||
return UnmarshalInputMessageStory(data)
|
return UnmarshalInputMessageStory(data)
|
||||||
|
|
||||||
|
case TypeInputMessageChecklist:
|
||||||
|
return UnmarshalInputMessageChecklist(data)
|
||||||
|
|
||||||
case TypeInputMessageForwarded:
|
case TypeInputMessageForwarded:
|
||||||
return UnmarshalInputMessageForwarded(data)
|
return UnmarshalInputMessageForwarded(data)
|
||||||
|
|
||||||
|
|
@ -5803,6 +5815,9 @@ func UnmarshalPremiumFeature(data json.RawMessage) (PremiumFeature, error) {
|
||||||
case TypePremiumFeatureMessageEffects:
|
case TypePremiumFeatureMessageEffects:
|
||||||
return UnmarshalPremiumFeatureMessageEffects(data)
|
return UnmarshalPremiumFeatureMessageEffects(data)
|
||||||
|
|
||||||
|
case TypePremiumFeatureChecklists:
|
||||||
|
return UnmarshalPremiumFeatureChecklists(data)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||||
}
|
}
|
||||||
|
|
@ -6603,6 +6618,9 @@ func UnmarshalPushMessageContent(data json.RawMessage) (PushMessageContent, erro
|
||||||
case TypePushMessageContentText:
|
case TypePushMessageContentText:
|
||||||
return UnmarshalPushMessageContentText(data)
|
return UnmarshalPushMessageContentText(data)
|
||||||
|
|
||||||
|
case TypePushMessageContentChecklist:
|
||||||
|
return UnmarshalPushMessageContentChecklist(data)
|
||||||
|
|
||||||
case TypePushMessageContentVideo:
|
case TypePushMessageContentVideo:
|
||||||
return UnmarshalPushMessageContentVideo(data)
|
return UnmarshalPushMessageContentVideo(data)
|
||||||
|
|
||||||
|
|
@ -6657,6 +6675,12 @@ func UnmarshalPushMessageContent(data json.RawMessage) (PushMessageContent, erro
|
||||||
case TypePushMessageContentProximityAlertTriggered:
|
case TypePushMessageContentProximityAlertTriggered:
|
||||||
return UnmarshalPushMessageContentProximityAlertTriggered(data)
|
return UnmarshalPushMessageContentProximityAlertTriggered(data)
|
||||||
|
|
||||||
|
case TypePushMessageContentChecklistTasksAdded:
|
||||||
|
return UnmarshalPushMessageContentChecklistTasksAdded(data)
|
||||||
|
|
||||||
|
case TypePushMessageContentChecklistTasksDone:
|
||||||
|
return UnmarshalPushMessageContentChecklistTasksDone(data)
|
||||||
|
|
||||||
case TypePushMessageContentMessageForwards:
|
case TypePushMessageContentMessageForwards:
|
||||||
return UnmarshalPushMessageContentMessageForwards(data)
|
return UnmarshalPushMessageContentMessageForwards(data)
|
||||||
|
|
||||||
|
|
@ -9429,6 +9453,38 @@ func UnmarshalPollTypeQuiz(data json.RawMessage) (*PollTypeQuiz, error) {
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalChecklistTask(data json.RawMessage) (*ChecklistTask, error) {
|
||||||
|
var resp ChecklistTask
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalInputChecklistTask(data json.RawMessage) (*InputChecklistTask, error) {
|
||||||
|
var resp InputChecklistTask
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalChecklist(data json.RawMessage) (*Checklist, error) {
|
||||||
|
var resp Checklist
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalInputChecklist(data json.RawMessage) (*InputChecklist, error) {
|
||||||
|
var resp InputChecklist
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalAnimation(data json.RawMessage) (*Animation, error) {
|
func UnmarshalAnimation(data json.RawMessage) (*Animation, error) {
|
||||||
var resp Animation
|
var resp Animation
|
||||||
|
|
||||||
|
|
@ -9557,6 +9613,14 @@ func UnmarshalAlternativeVideo(data json.RawMessage) (*AlternativeVideo, error)
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalVideoStoryboard(data json.RawMessage) (*VideoStoryboard, error) {
|
||||||
|
var resp VideoStoryboard
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalBackground(data json.RawMessage) (*Background, error) {
|
func UnmarshalBackground(data json.RawMessage) (*Background, error) {
|
||||||
var resp Background
|
var resp Background
|
||||||
|
|
||||||
|
|
@ -11829,8 +11893,8 @@ func UnmarshalMessageSourceOther(data json.RawMessage) (*MessageSourceOther, err
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func UnmarshalMessageSponsor(data json.RawMessage) (*MessageSponsor, error) {
|
func UnmarshalAdvertisementSponsor(data json.RawMessage) (*AdvertisementSponsor, error) {
|
||||||
var resp MessageSponsor
|
var resp AdvertisementSponsor
|
||||||
|
|
||||||
err := json.Unmarshal(data, &resp)
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
|
@ -11869,6 +11933,22 @@ func UnmarshalSponsoredChats(data json.RawMessage) (*SponsoredChats, error) {
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalVideoMessageAdvertisement(data json.RawMessage) (*VideoMessageAdvertisement, error) {
|
||||||
|
var resp VideoMessageAdvertisement
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalVideoMessageAdvertisements(data json.RawMessage) (*VideoMessageAdvertisements, error) {
|
||||||
|
var resp VideoMessageAdvertisements
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalReportOption(data json.RawMessage) (*ReportOption, error) {
|
func UnmarshalReportOption(data json.RawMessage) (*ReportOption, error) {
|
||||||
var resp ReportOption
|
var resp ReportOption
|
||||||
|
|
||||||
|
|
@ -14549,6 +14629,14 @@ func UnmarshalMessageStory(data json.RawMessage) (*MessageStory, error) {
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalMessageChecklist(data json.RawMessage) (*MessageChecklist, error) {
|
||||||
|
var resp MessageChecklist
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalMessageInvoice(data json.RawMessage) (*MessageInvoice, error) {
|
func UnmarshalMessageInvoice(data json.RawMessage) (*MessageInvoice, error) {
|
||||||
var resp MessageInvoice
|
var resp MessageInvoice
|
||||||
|
|
||||||
|
|
@ -14933,6 +15021,22 @@ func UnmarshalMessageDirectMessagePriceChanged(data json.RawMessage) (*MessageDi
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalMessageChecklistTasksDone(data json.RawMessage) (*MessageChecklistTasksDone, error) {
|
||||||
|
var resp MessageChecklistTasksDone
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalMessageChecklistTasksAdded(data json.RawMessage) (*MessageChecklistTasksAdded, error) {
|
||||||
|
var resp MessageChecklistTasksAdded
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalMessageContactRegistered(data json.RawMessage) (*MessageContactRegistered, error) {
|
func UnmarshalMessageContactRegistered(data json.RawMessage) (*MessageContactRegistered, error) {
|
||||||
var resp MessageContactRegistered
|
var resp MessageContactRegistered
|
||||||
|
|
||||||
|
|
@ -15421,6 +15525,14 @@ func UnmarshalInputMessageStory(data json.RawMessage) (*InputMessageStory, error
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalInputMessageChecklist(data json.RawMessage) (*InputMessageChecklist, error) {
|
||||||
|
var resp InputMessageChecklist
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalInputMessageForwarded(data json.RawMessage) (*InputMessageForwarded, error) {
|
func UnmarshalInputMessageForwarded(data json.RawMessage) (*InputMessageForwarded, error) {
|
||||||
var resp InputMessageForwarded
|
var resp InputMessageForwarded
|
||||||
|
|
||||||
|
|
@ -18197,6 +18309,14 @@ func UnmarshalPremiumFeatureMessageEffects(data json.RawMessage) (*PremiumFeatur
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalPremiumFeatureChecklists(data json.RawMessage) (*PremiumFeatureChecklists, error) {
|
||||||
|
var resp PremiumFeatureChecklists
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalBusinessFeatureLocation(data json.RawMessage) (*BusinessFeatureLocation, error) {
|
func UnmarshalBusinessFeatureLocation(data json.RawMessage) (*BusinessFeatureLocation, error) {
|
||||||
var resp BusinessFeatureLocation
|
var resp BusinessFeatureLocation
|
||||||
|
|
||||||
|
|
@ -19149,6 +19269,14 @@ func UnmarshalPushMessageContentText(data json.RawMessage) (*PushMessageContentT
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalPushMessageContentChecklist(data json.RawMessage) (*PushMessageContentChecklist, error) {
|
||||||
|
var resp PushMessageContentChecklist
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalPushMessageContentVideo(data json.RawMessage) (*PushMessageContentVideo, error) {
|
func UnmarshalPushMessageContentVideo(data json.RawMessage) (*PushMessageContentVideo, error) {
|
||||||
var resp PushMessageContentVideo
|
var resp PushMessageContentVideo
|
||||||
|
|
||||||
|
|
@ -19293,6 +19421,22 @@ func UnmarshalPushMessageContentProximityAlertTriggered(data json.RawMessage) (*
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalPushMessageContentChecklistTasksAdded(data json.RawMessage) (*PushMessageContentChecklistTasksAdded, error) {
|
||||||
|
var resp PushMessageContentChecklistTasksAdded
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalPushMessageContentChecklistTasksDone(data json.RawMessage) (*PushMessageContentChecklistTasksDone, error) {
|
||||||
|
var resp PushMessageContentChecklistTasksDone
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalPushMessageContentMessageForwards(data json.RawMessage) (*PushMessageContentMessageForwards, error) {
|
func UnmarshalPushMessageContentMessageForwards(data json.RawMessage) (*PushMessageContentMessageForwards, error) {
|
||||||
var resp PushMessageContentMessageForwards
|
var resp PushMessageContentMessageForwards
|
||||||
|
|
||||||
|
|
@ -23253,6 +23397,18 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypePollTypeQuiz:
|
case TypePollTypeQuiz:
|
||||||
return UnmarshalPollTypeQuiz(data)
|
return UnmarshalPollTypeQuiz(data)
|
||||||
|
|
||||||
|
case TypeChecklistTask:
|
||||||
|
return UnmarshalChecklistTask(data)
|
||||||
|
|
||||||
|
case TypeInputChecklistTask:
|
||||||
|
return UnmarshalInputChecklistTask(data)
|
||||||
|
|
||||||
|
case TypeChecklist:
|
||||||
|
return UnmarshalChecklist(data)
|
||||||
|
|
||||||
|
case TypeInputChecklist:
|
||||||
|
return UnmarshalInputChecklist(data)
|
||||||
|
|
||||||
case TypeAnimation:
|
case TypeAnimation:
|
||||||
return UnmarshalAnimation(data)
|
return UnmarshalAnimation(data)
|
||||||
|
|
||||||
|
|
@ -23301,6 +23457,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeAlternativeVideo:
|
case TypeAlternativeVideo:
|
||||||
return UnmarshalAlternativeVideo(data)
|
return UnmarshalAlternativeVideo(data)
|
||||||
|
|
||||||
|
case TypeVideoStoryboard:
|
||||||
|
return UnmarshalVideoStoryboard(data)
|
||||||
|
|
||||||
case TypeBackground:
|
case TypeBackground:
|
||||||
return UnmarshalBackground(data)
|
return UnmarshalBackground(data)
|
||||||
|
|
||||||
|
|
@ -24153,8 +24312,8 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeMessageSourceOther:
|
case TypeMessageSourceOther:
|
||||||
return UnmarshalMessageSourceOther(data)
|
return UnmarshalMessageSourceOther(data)
|
||||||
|
|
||||||
case TypeMessageSponsor:
|
case TypeAdvertisementSponsor:
|
||||||
return UnmarshalMessageSponsor(data)
|
return UnmarshalAdvertisementSponsor(data)
|
||||||
|
|
||||||
case TypeSponsoredMessage:
|
case TypeSponsoredMessage:
|
||||||
return UnmarshalSponsoredMessage(data)
|
return UnmarshalSponsoredMessage(data)
|
||||||
|
|
@ -24168,6 +24327,12 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeSponsoredChats:
|
case TypeSponsoredChats:
|
||||||
return UnmarshalSponsoredChats(data)
|
return UnmarshalSponsoredChats(data)
|
||||||
|
|
||||||
|
case TypeVideoMessageAdvertisement:
|
||||||
|
return UnmarshalVideoMessageAdvertisement(data)
|
||||||
|
|
||||||
|
case TypeVideoMessageAdvertisements:
|
||||||
|
return UnmarshalVideoMessageAdvertisements(data)
|
||||||
|
|
||||||
case TypeReportOption:
|
case TypeReportOption:
|
||||||
return UnmarshalReportOption(data)
|
return UnmarshalReportOption(data)
|
||||||
|
|
||||||
|
|
@ -25173,6 +25338,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeMessageStory:
|
case TypeMessageStory:
|
||||||
return UnmarshalMessageStory(data)
|
return UnmarshalMessageStory(data)
|
||||||
|
|
||||||
|
case TypeMessageChecklist:
|
||||||
|
return UnmarshalMessageChecklist(data)
|
||||||
|
|
||||||
case TypeMessageInvoice:
|
case TypeMessageInvoice:
|
||||||
return UnmarshalMessageInvoice(data)
|
return UnmarshalMessageInvoice(data)
|
||||||
|
|
||||||
|
|
@ -25317,6 +25485,12 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeMessageDirectMessagePriceChanged:
|
case TypeMessageDirectMessagePriceChanged:
|
||||||
return UnmarshalMessageDirectMessagePriceChanged(data)
|
return UnmarshalMessageDirectMessagePriceChanged(data)
|
||||||
|
|
||||||
|
case TypeMessageChecklistTasksDone:
|
||||||
|
return UnmarshalMessageChecklistTasksDone(data)
|
||||||
|
|
||||||
|
case TypeMessageChecklistTasksAdded:
|
||||||
|
return UnmarshalMessageChecklistTasksAdded(data)
|
||||||
|
|
||||||
case TypeMessageContactRegistered:
|
case TypeMessageContactRegistered:
|
||||||
return UnmarshalMessageContactRegistered(data)
|
return UnmarshalMessageContactRegistered(data)
|
||||||
|
|
||||||
|
|
@ -25500,6 +25674,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeInputMessageStory:
|
case TypeInputMessageStory:
|
||||||
return UnmarshalInputMessageStory(data)
|
return UnmarshalInputMessageStory(data)
|
||||||
|
|
||||||
|
case TypeInputMessageChecklist:
|
||||||
|
return UnmarshalInputMessageChecklist(data)
|
||||||
|
|
||||||
case TypeInputMessageForwarded:
|
case TypeInputMessageForwarded:
|
||||||
return UnmarshalInputMessageForwarded(data)
|
return UnmarshalInputMessageForwarded(data)
|
||||||
|
|
||||||
|
|
@ -26541,6 +26718,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypePremiumFeatureMessageEffects:
|
case TypePremiumFeatureMessageEffects:
|
||||||
return UnmarshalPremiumFeatureMessageEffects(data)
|
return UnmarshalPremiumFeatureMessageEffects(data)
|
||||||
|
|
||||||
|
case TypePremiumFeatureChecklists:
|
||||||
|
return UnmarshalPremiumFeatureChecklists(data)
|
||||||
|
|
||||||
case TypeBusinessFeatureLocation:
|
case TypeBusinessFeatureLocation:
|
||||||
return UnmarshalBusinessFeatureLocation(data)
|
return UnmarshalBusinessFeatureLocation(data)
|
||||||
|
|
||||||
|
|
@ -26898,6 +27078,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypePushMessageContentText:
|
case TypePushMessageContentText:
|
||||||
return UnmarshalPushMessageContentText(data)
|
return UnmarshalPushMessageContentText(data)
|
||||||
|
|
||||||
|
case TypePushMessageContentChecklist:
|
||||||
|
return UnmarshalPushMessageContentChecklist(data)
|
||||||
|
|
||||||
case TypePushMessageContentVideo:
|
case TypePushMessageContentVideo:
|
||||||
return UnmarshalPushMessageContentVideo(data)
|
return UnmarshalPushMessageContentVideo(data)
|
||||||
|
|
||||||
|
|
@ -26952,6 +27135,12 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypePushMessageContentProximityAlertTriggered:
|
case TypePushMessageContentProximityAlertTriggered:
|
||||||
return UnmarshalPushMessageContentProximityAlertTriggered(data)
|
return UnmarshalPushMessageContentProximityAlertTriggered(data)
|
||||||
|
|
||||||
|
case TypePushMessageContentChecklistTasksAdded:
|
||||||
|
return UnmarshalPushMessageContentChecklistTasksAdded(data)
|
||||||
|
|
||||||
|
case TypePushMessageContentChecklistTasksDone:
|
||||||
|
return UnmarshalPushMessageContentChecklistTasksDone(data)
|
||||||
|
|
||||||
case TypePushMessageContentMessageForwards:
|
case TypePushMessageContentMessageForwards:
|
||||||
return UnmarshalPushMessageContentMessageForwards(data)
|
return UnmarshalPushMessageContentMessageForwards(data)
|
||||||
|
|
||||||
|
|
|
||||||
187
data/td_api.tl
187
data/td_api.tl
|
|
@ -388,6 +388,35 @@ pollTypeRegular allow_multiple_answers:Bool = PollType;
|
||||||
pollTypeQuiz correct_option_id:int32 explanation:formattedText = PollType;
|
pollTypeQuiz correct_option_id:int32 explanation:formattedText = PollType;
|
||||||
|
|
||||||
|
|
||||||
|
//@description Describes a task in a checklist
|
||||||
|
//@id Unique identifier of the task
|
||||||
|
//@text Text of the task; may contain only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, Url, EmailAddress, Mention, Hashtag, Cashtag and PhoneNumber entities
|
||||||
|
//@completed_by_user_id Identifier of the user that completed the task; 0 if the task isn't completed
|
||||||
|
//@completion_date Point in time (Unix timestamp) when the task was completed; 0 if the task isn't completed
|
||||||
|
checklistTask id:int32 text:formattedText completed_by_user_id:int53 completion_date:int32 = ChecklistTask;
|
||||||
|
|
||||||
|
//@description Describes a task in a checklist to be sent
|
||||||
|
//@id Unique identifier of the task; must be positive
|
||||||
|
//@text Text of the task; 1-getOption("checklist_task_text_length_max") characters without line feeds. May contain only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities
|
||||||
|
inputChecklistTask id:int32 text:formattedText = InputChecklistTask;
|
||||||
|
|
||||||
|
//@description Describes a checklist
|
||||||
|
//@title Title of the checklist; may contain only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities
|
||||||
|
//@tasks List of tasks in the checklist
|
||||||
|
//@others_can_add_tasks True, if users other than creator of the list can add tasks to the list
|
||||||
|
//@can_add_tasks True, if the current user can add tasks to the list if they have Telegram Premium subscription
|
||||||
|
//@others_can_mark_tasks_as_done True, if users other than creator of the list can mark tasks as done or not done. If true, then the checklist is called "group checklist"
|
||||||
|
//@can_mark_tasks_as_done True, if the current user can mark tasks as done or not done if they have Telegram Premium subscription
|
||||||
|
checklist title:formattedText tasks:vector<checklistTask> others_can_add_tasks:Bool can_add_tasks:Bool others_can_mark_tasks_as_done:Bool can_mark_tasks_as_done:Bool = Checklist;
|
||||||
|
|
||||||
|
//@description Describes a checklist to be sent
|
||||||
|
//@title Title of the checklist; 1-getOption("checklist_title_length_max") characters. May contain only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities
|
||||||
|
//@tasks List of tasks in the checklist; 1-getOption("checklist_task_count_max") tasks
|
||||||
|
//@others_can_add_tasks True, if other users can add tasks to the list
|
||||||
|
//@others_can_mark_tasks_as_done True, if other users can mark tasks as done or not done
|
||||||
|
inputChecklist title:formattedText tasks:vector<inputChecklistTask> others_can_add_tasks:Bool others_can_mark_tasks_as_done:Bool = InputChecklist;
|
||||||
|
|
||||||
|
|
||||||
//@description Describes an animation file. The animation must be encoded in GIF or MPEG4 format
|
//@description Describes an animation file. The animation must be encoded in GIF or MPEG4 format
|
||||||
//@duration Duration of the animation, in seconds; as defined by the sender
|
//@duration Duration of the animation, in seconds; as defined by the sender
|
||||||
//@width Width of the animation
|
//@width Width of the animation
|
||||||
|
|
@ -541,6 +570,13 @@ poll id:int64 question:formattedText options:vector<pollOption> total_voter_coun
|
||||||
//@video File containing the video
|
//@video File containing the video
|
||||||
alternativeVideo id:int64 width:int32 height:int32 codec:string hls_file:file video:file = AlternativeVideo;
|
alternativeVideo id:int64 width:int32 height:int32 codec:string hls_file:file video:file = AlternativeVideo;
|
||||||
|
|
||||||
|
//@description Describes a storyboard for a video
|
||||||
|
//@storyboard_file A JPEG file that contains tiled previews of video
|
||||||
|
//@width Width of a tile
|
||||||
|
//@height Height of a tile
|
||||||
|
//@map_file File that describes mapping of position in the video to a tile in the JPEG file
|
||||||
|
videoStoryboard storyboard_file:file width:int32 height:int32 map_file:file = VideoStoryboard;
|
||||||
|
|
||||||
|
|
||||||
//@description Describes a chat background
|
//@description Describes a chat background
|
||||||
//@id Unique background identifier
|
//@id Unique background identifier
|
||||||
|
|
@ -825,7 +861,7 @@ inputChatPhotoSticker sticker:chatPhotoSticker = InputChatPhoto;
|
||||||
//@can_send_videos True, if the user can send videos
|
//@can_send_videos True, if the user can send videos
|
||||||
//@can_send_video_notes True, if the user can send video notes
|
//@can_send_video_notes True, if the user can send video notes
|
||||||
//@can_send_voice_notes True, if the user can send voice notes
|
//@can_send_voice_notes True, if the user can send voice notes
|
||||||
//@can_send_polls True, if the user can send polls
|
//@can_send_polls True, if the user can send polls and checklists
|
||||||
//@can_send_stickers True, if the user can send stickers. Implies can_send_messages permissions
|
//@can_send_stickers True, if the user can send stickers. Implies can_send_messages permissions
|
||||||
//@can_send_animations True, if the user can send animations. Implies can_send_messages permissions
|
//@can_send_animations True, if the user can send animations. Implies can_send_messages permissions
|
||||||
//@can_send_games True, if the user can send games. Implies can_send_messages permissions
|
//@can_send_games True, if the user can send games. Implies can_send_messages permissions
|
||||||
|
|
@ -1906,6 +1942,7 @@ supergroup id:int53 access_hash:int64 usernames:usernames date:int32 status:Chat
|
||||||
//@gift_count Number of saved to profile gifts for channels without can_post_messages administrator right, otherwise, the total number of received gifts
|
//@gift_count Number of saved to profile gifts for channels without can_post_messages administrator right, otherwise, the total number of received gifts
|
||||||
//@my_boost_count Number of times the current user boosted the supergroup or channel
|
//@my_boost_count Number of times the current user boosted the supergroup or channel
|
||||||
//@unrestrict_boost_count Number of times the supergroup must be boosted by a user to ignore slow mode and chat permission restrictions; 0 if unspecified
|
//@unrestrict_boost_count Number of times the supergroup must be boosted by a user to ignore slow mode and chat permission restrictions; 0 if unspecified
|
||||||
|
//@outgoing_paid_message_star_count Number of Telegram Stars that must be paid by the current user for each sent message to the supergroup
|
||||||
//@sticker_set_id Identifier of the supergroup sticker set that must be shown before user sticker sets; 0 if none
|
//@sticker_set_id Identifier of the supergroup sticker set that must be shown before user sticker sets; 0 if none
|
||||||
//@custom_emoji_sticker_set_id Identifier of the custom emoji sticker set that can be used in the supergroup without Telegram Premium subscription; 0 if none
|
//@custom_emoji_sticker_set_id Identifier of the custom emoji sticker set that can be used in the supergroup without Telegram Premium subscription; 0 if none
|
||||||
//@location Location to which the supergroup is connected; may be null if none
|
//@location Location to which the supergroup is connected; may be null if none
|
||||||
|
|
@ -1914,7 +1951,7 @@ supergroup id:int53 access_hash:int64 usernames:usernames date:int32 status:Chat
|
||||||
//@bot_verification Information about verification status of the supergroup or the channel provided by a bot; may be null if none or unknown
|
//@bot_verification Information about verification status of the supergroup or the channel provided by a bot; may be null if none or unknown
|
||||||
//@upgraded_from_basic_group_id Identifier of the basic group from which supergroup was upgraded; 0 if none
|
//@upgraded_from_basic_group_id Identifier of the basic group from which supergroup was upgraded; 0 if none
|
||||||
//@upgraded_from_max_message_id Identifier of the last message in the basic group from which supergroup was upgraded; 0 if none
|
//@upgraded_from_max_message_id Identifier of the last message in the basic group from which supergroup was upgraded; 0 if none
|
||||||
supergroupFullInfo photo:chatPhoto description:string member_count:int32 administrator_count:int32 restricted_count:int32 banned_count:int32 linked_chat_id:int53 direct_messages_chat_id:int53 slow_mode_delay:int32 slow_mode_delay_expires_in:double can_enable_paid_messages:Bool can_enable_paid_reaction:Bool can_get_members:Bool has_hidden_members:Bool can_hide_members:Bool can_set_sticker_set:Bool can_set_location:Bool can_get_statistics:Bool can_get_revenue_statistics:Bool can_get_star_revenue_statistics:Bool can_send_gift:Bool can_toggle_aggressive_anti_spam:Bool is_all_history_available:Bool can_have_sponsored_messages:Bool has_aggressive_anti_spam_enabled:Bool has_paid_media_allowed:Bool has_pinned_stories:Bool gift_count:int32 my_boost_count:int32 unrestrict_boost_count:int32 sticker_set_id:int64 custom_emoji_sticker_set_id:int64 location:chatLocation invite_link:chatInviteLink bot_commands:vector<botCommands> bot_verification:botVerification upgraded_from_basic_group_id:int53 upgraded_from_max_message_id:int53 = SupergroupFullInfo;
|
supergroupFullInfo photo:chatPhoto description:string member_count:int32 administrator_count:int32 restricted_count:int32 banned_count:int32 linked_chat_id:int53 direct_messages_chat_id:int53 slow_mode_delay:int32 slow_mode_delay_expires_in:double can_enable_paid_messages:Bool can_enable_paid_reaction:Bool can_get_members:Bool has_hidden_members:Bool can_hide_members:Bool can_set_sticker_set:Bool can_set_location:Bool can_get_statistics:Bool can_get_revenue_statistics:Bool can_get_star_revenue_statistics:Bool can_send_gift:Bool can_toggle_aggressive_anti_spam:Bool is_all_history_available:Bool can_have_sponsored_messages:Bool has_aggressive_anti_spam_enabled:Bool has_paid_media_allowed:Bool has_pinned_stories:Bool gift_count:int32 my_boost_count:int32 unrestrict_boost_count:int32 outgoing_paid_message_star_count:int53 sticker_set_id:int64 custom_emoji_sticker_set_id:int64 location:chatLocation invite_link:chatInviteLink bot_commands:vector<botCommands> bot_verification:botVerification upgraded_from_basic_group_id:int53 upgraded_from_max_message_id:int53 = SupergroupFullInfo;
|
||||||
|
|
||||||
|
|
||||||
//@class SecretChatState @description Describes the current secret chat state
|
//@class SecretChatState @description Describes the current secret chat state
|
||||||
|
|
@ -2164,9 +2201,9 @@ inputTextQuote text:formattedText position:int32 = InputTextQuote;
|
||||||
//@origin Information about origin of the message if the message was from another chat or topic; may be null for messages from the same chat
|
//@origin Information about origin of the message if the message was from another chat or topic; may be null for messages from the same chat
|
||||||
//@origin_send_date Point in time (Unix timestamp) when the message was sent if the message was from another chat or topic; 0 for messages from the same chat
|
//@origin_send_date Point in time (Unix timestamp) when the message was sent if the message was from another chat or topic; 0 for messages from the same chat
|
||||||
//@content Media content of the message if the message was from another chat or topic; may be null for messages from the same chat and messages without media.
|
//@content Media content of the message if the message was from another chat or topic; may be null for messages from the same chat and messages without media.
|
||||||
//-Can be only one of the following types: messageAnimation, messageAudio, messageContact, messageDice, messageDocument, messageGame, messageGiveaway, messageGiveawayWinners,
|
//-Can be only one of the following types: messageAnimation, messageAudio, messageChecklist, messageContact, messageDice, messageDocument, messageGame,
|
||||||
//-messageInvoice, messageLocation, messagePaidMedia, messagePhoto, messagePoll, messageSticker, messageStory, messageText (for link preview), messageVenue, messageVideo,
|
//-messageGiveaway, messageGiveawayWinners, messageInvoice, messageLocation, messagePaidMedia, messagePhoto, messagePoll, messageSticker, messageStory,
|
||||||
//-messageVideoNote, or messageVoiceNote
|
//-messageText (for link preview), messageVenue, messageVideo, messageVideoNote, or messageVoiceNote
|
||||||
messageReplyToMessage chat_id:int53 message_id:int53 quote:textQuote origin:MessageOrigin origin_send_date:int32 content:MessageContent = MessageReplyTo;
|
messageReplyToMessage chat_id:int53 message_id:int53 quote:textQuote origin:MessageOrigin origin_send_date:int32 content:MessageContent = MessageReplyTo;
|
||||||
|
|
||||||
//@description Describes a story replied by a given message @story_poster_chat_id The identifier of the poster of the story @story_id The identifier of the story
|
//@description Describes a story replied by a given message @story_poster_chat_id The identifier of the poster of the story @story_id The identifier of the story
|
||||||
|
|
@ -2303,11 +2340,11 @@ messageSourceScreenshot = MessageSource;
|
||||||
messageSourceOther = MessageSource;
|
messageSourceOther = MessageSource;
|
||||||
|
|
||||||
|
|
||||||
//@description Information about the sponsor of a message
|
//@description Information about the sponsor of an advertisement
|
||||||
//@url URL of the sponsor to be opened when the message is clicked
|
//@url URL of the sponsor to be opened when the advertisement is clicked
|
||||||
//@photo Photo of the sponsor; may be null if must not be shown
|
//@photo Photo of the sponsor; may be null if must not be shown
|
||||||
//@info Additional optional information about the sponsor to be shown along with the message
|
//@info Additional optional information about the sponsor to be shown along with the advertisement
|
||||||
messageSponsor url:string photo:photo info:string = MessageSponsor;
|
advertisementSponsor url:string photo:photo info:string = AdvertisementSponsor;
|
||||||
|
|
||||||
//@description Describes a sponsored message
|
//@description Describes a sponsored message
|
||||||
//@message_id Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages
|
//@message_id Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages
|
||||||
|
|
@ -2320,7 +2357,7 @@ messageSponsor url:string photo:photo info:string = MessageSponsor;
|
||||||
//@accent_color_id Identifier of the accent color for title, button text and message background
|
//@accent_color_id Identifier of the accent color for title, button text and message background
|
||||||
//@background_custom_emoji_id Identifier of a custom emoji to be shown on the message background; 0 if none
|
//@background_custom_emoji_id Identifier of a custom emoji to be shown on the message background; 0 if none
|
||||||
//@additional_info If non-empty, additional information about the sponsored message to be shown along with the message
|
//@additional_info If non-empty, additional information about the sponsored message to be shown along with the message
|
||||||
sponsoredMessage message_id:int53 is_recommended:Bool can_be_reported:Bool content:MessageContent sponsor:messageSponsor title:string button_text:string accent_color_id:int32 background_custom_emoji_id:int64 additional_info:string = SponsoredMessage;
|
sponsoredMessage message_id:int53 is_recommended:Bool can_be_reported:Bool content:MessageContent sponsor:advertisementSponsor title:string button_text:string accent_color_id:int32 background_custom_emoji_id:int64 additional_info:string = SponsoredMessage;
|
||||||
|
|
||||||
//@description Contains a list of sponsored messages @messages List of sponsored messages @messages_between The minimum number of messages between shown sponsored messages, or 0 if only one sponsored message must be shown after all ordinary messages
|
//@description Contains a list of sponsored messages @messages List of sponsored messages @messages_between The minimum number of messages between shown sponsored messages, or 0 if only one sponsored message must be shown after all ordinary messages
|
||||||
sponsoredMessages messages:vector<sponsoredMessage> messages_between:int32 = SponsoredMessages;
|
sponsoredMessages messages:vector<sponsoredMessage> messages_between:int32 = SponsoredMessages;
|
||||||
|
|
@ -2335,6 +2372,23 @@ sponsoredChat unique_id:int53 chat_id:int53 sponsor_info:string additional_info:
|
||||||
//@description Contains a list of sponsored chats @chats List of sponsored chats
|
//@description Contains a list of sponsored chats @chats List of sponsored chats
|
||||||
sponsoredChats chats:vector<sponsoredChat> = SponsoredChats;
|
sponsoredChats chats:vector<sponsoredChat> = SponsoredChats;
|
||||||
|
|
||||||
|
//@description Describes an advertisent to be shown while a video from a message is watched
|
||||||
|
//@unique_id Unique identifier of this result
|
||||||
|
//@text Text of the advertisement
|
||||||
|
//@min_display_duration The minimum amount of time the advertisement must be dispalyed before it can be hidden by the user, in seconds
|
||||||
|
//@max_display_duration The maximum amount of time the advertisement must be dispalyed before it must be automatically hidden, in seconds
|
||||||
|
//@can_be_reported True, if the advertisement can be reported to Telegram moderators through reportVideoMessageAdvertisement
|
||||||
|
//@sponsor Information about the sponsor of the advertisement
|
||||||
|
//@title Title of the sponsored message
|
||||||
|
//@additional_info If non-empty, additional information about the sponsored message to be shown along with the message
|
||||||
|
videoMessageAdvertisement unique_id:int53 text:string min_display_duration:int32 max_display_duration:int32 can_be_reported:Bool sponsor:advertisementSponsor title:string additional_info:string = VideoMessageAdvertisement;
|
||||||
|
|
||||||
|
//@description Contains a list of advertisements to be shown while a video from a message is watched
|
||||||
|
//@advertisements List of advertisements
|
||||||
|
//@start_delay Delay before the first advertisement is shown, in seconds
|
||||||
|
//@between_delay Delay between consecutive advertisements, in seconds
|
||||||
|
videoMessageAdvertisements advertisements:vector<videoMessageAdvertisement> start_delay:int32 between_delay:int32 = VideoMessageAdvertisements;
|
||||||
|
|
||||||
|
|
||||||
//@description Describes an option to report an entity to Telegram @id Unique identifier of the option @text Text of the option
|
//@description Describes an option to report an entity to Telegram @id Unique identifier of the option @text Text of the option
|
||||||
reportOption id:bytes text:string = ReportOption;
|
reportOption id:bytes text:string = ReportOption;
|
||||||
|
|
@ -2917,6 +2971,7 @@ savedMessagesTopic id:int53 type:SavedMessagesTopicType is_pinned:Bool order:int
|
||||||
//@id Unique topic identifier
|
//@id Unique topic identifier
|
||||||
//@sender_id Identifier of the user or chat that sends the messages to the topic
|
//@sender_id Identifier of the user or chat that sends the messages to the topic
|
||||||
//@order A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order
|
//@order A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order
|
||||||
|
//@can_send_unpaid_messages True, if the other party can send unpaid messages even if the chat has paid messages enabled
|
||||||
//@is_marked_as_unread True, if the forum topic is marked as unread
|
//@is_marked_as_unread True, if the forum topic is marked as unread
|
||||||
//@unread_count Number of unread messages in the chat
|
//@unread_count Number of unread messages in the chat
|
||||||
//@last_read_inbox_message_id Identifier of the last read incoming message
|
//@last_read_inbox_message_id Identifier of the last read incoming message
|
||||||
|
|
@ -2924,7 +2979,7 @@ savedMessagesTopic id:int53 type:SavedMessagesTopicType is_pinned:Bool order:int
|
||||||
//@unread_reaction_count Number of messages with unread reactions in the chat
|
//@unread_reaction_count Number of messages with unread reactions in the chat
|
||||||
//@last_message Last message in the topic; may be null if none or unknown
|
//@last_message Last message in the topic; may be null if none or unknown
|
||||||
//@draft_message A draft of a message in the topic; may be null if none
|
//@draft_message A draft of a message in the topic; may be null if none
|
||||||
directMessagesChatTopic chat_id:int53 id:int53 sender_id:MessageSender order:int64 is_marked_as_unread:Bool unread_count:int53 last_read_inbox_message_id:int53 last_read_outbox_message_id:int53 unread_reaction_count:int53 last_message:message draft_message:draftMessage = DirectMessagesChatTopic;
|
directMessagesChatTopic chat_id:int53 id:int53 sender_id:MessageSender order:int64 can_send_unpaid_messages:Bool is_marked_as_unread:Bool unread_count:int53 last_read_inbox_message_id:int53 last_read_outbox_message_id:int53 unread_reaction_count:int53 last_message:message draft_message:draftMessage = DirectMessagesChatTopic;
|
||||||
|
|
||||||
|
|
||||||
//@description Describes a forum topic icon @color Color of the topic icon in RGB format @custom_emoji_id Unique identifier of the custom emoji shown on the topic icon; 0 if none
|
//@description Describes a forum topic icon @color Color of the topic icon in RGB format @custom_emoji_id Unique identifier of the custom emoji shown on the topic icon; 0 if none
|
||||||
|
|
@ -3987,13 +4042,14 @@ messageSticker sticker:sticker is_premium:Bool = MessageContent;
|
||||||
//@description A video message
|
//@description A video message
|
||||||
//@video The video description
|
//@video The video description
|
||||||
//@alternative_videos Alternative qualities of the video
|
//@alternative_videos Alternative qualities of the video
|
||||||
|
//@storyboards Available storyboards for the video
|
||||||
//@cover Cover of the video; may be null if none
|
//@cover Cover of the video; may be null if none
|
||||||
//@start_timestamp Timestamp from which the video playing must start, in seconds
|
//@start_timestamp Timestamp from which the video playing must start, in seconds
|
||||||
//@caption Video caption
|
//@caption Video caption
|
||||||
//@show_caption_above_media True, if the caption must be shown above the video; otherwise, the caption must be shown below the video
|
//@show_caption_above_media True, if the caption must be shown above the video; otherwise, the caption must be shown below the video
|
||||||
//@has_spoiler True, if the video preview must be covered by a spoiler animation
|
//@has_spoiler True, if the video preview must be covered by a spoiler animation
|
||||||
//@is_secret True, if the video thumbnail must be blurred and the video must be shown only while tapped
|
//@is_secret True, if the video thumbnail must be blurred and the video must be shown only while tapped
|
||||||
messageVideo video:video alternative_videos:vector<alternativeVideo> cover:photo start_timestamp:int32 caption:formattedText show_caption_above_media:Bool has_spoiler:Bool is_secret:Bool = MessageContent;
|
messageVideo video:video alternative_videos:vector<alternativeVideo> storyboards:vector<videoStoryboard> cover:photo start_timestamp:int32 caption:formattedText show_caption_above_media:Bool has_spoiler:Bool is_secret:Bool = MessageContent;
|
||||||
|
|
||||||
//@description A video note message @video_note The video note description @is_viewed True, if at least one of the recipients has viewed the video note @is_secret True, if the video note thumbnail must be blurred and the video note must be shown only while tapped
|
//@description A video note message @video_note The video note description @is_viewed True, if at least one of the recipients has viewed the video note @is_secret True, if the video note thumbnail must be blurred and the video note must be shown only while tapped
|
||||||
messageVideoNote video_note:videoNote is_viewed:Bool is_secret:Bool = MessageContent;
|
messageVideoNote video_note:videoNote is_viewed:Bool is_secret:Bool = MessageContent;
|
||||||
|
|
@ -4050,6 +4106,9 @@ messagePoll poll:poll = MessageContent;
|
||||||
//@via_mention True, if the story was automatically forwarded because of a mention of the user
|
//@via_mention True, if the story was automatically forwarded because of a mention of the user
|
||||||
messageStory story_poster_chat_id:int53 story_id:int32 via_mention:Bool = MessageContent;
|
messageStory story_poster_chat_id:int53 story_id:int32 via_mention:Bool = MessageContent;
|
||||||
|
|
||||||
|
//@description A message with a checklist @list The checklist description
|
||||||
|
messageChecklist list:checklist = MessageContent;
|
||||||
|
|
||||||
//@description A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice
|
//@description A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice
|
||||||
//@product_info Information about the product
|
//@product_info Information about the product
|
||||||
//@currency Currency for the product price
|
//@currency Currency for the product price
|
||||||
|
|
@ -4329,6 +4388,17 @@ messagePaidMessagePriceChanged paid_message_star_count:int53 = MessageContent;
|
||||||
//-0 if the direct messages group was disabled or the messages are free
|
//-0 if the direct messages group was disabled or the messages are free
|
||||||
messageDirectMessagePriceChanged is_enabled:Bool paid_message_star_count:int53 = MessageContent;
|
messageDirectMessagePriceChanged is_enabled:Bool paid_message_star_count:int53 = MessageContent;
|
||||||
|
|
||||||
|
//@description Some tasks from a checklist were marked as done or not done
|
||||||
|
//@checklist_message_id Identifier of the message with the checklist; can be 0 if the message was deleted
|
||||||
|
//@marked_as_done_task_ids Identifiers of tasks that were marked as done
|
||||||
|
//@marked_as_not_done_task_ids Identifiers of tasks that were marked as not done
|
||||||
|
messageChecklistTasksDone checklist_message_id:int53 marked_as_done_task_ids:vector<int32> marked_as_not_done_task_ids:vector<int32> = MessageContent;
|
||||||
|
|
||||||
|
//@description Some tasks were added to a checklist
|
||||||
|
//@checklist_message_id Identifier of the message with the checklist; can be 0 if the message was deleted
|
||||||
|
//@tasks List of tasks added to the checklist
|
||||||
|
messageChecklistTasksAdded checklist_message_id:int53 tasks:vector<checklistTask> = MessageContent;
|
||||||
|
|
||||||
//@description A contact has registered with Telegram
|
//@description A contact has registered with Telegram
|
||||||
messageContactRegistered = MessageContent;
|
messageContactRegistered = MessageContent;
|
||||||
|
|
||||||
|
|
@ -4652,6 +4722,10 @@ inputMessagePoll question:formattedText options:vector<formattedText> is_anonymo
|
||||||
//@story_id Story identifier
|
//@story_id Story identifier
|
||||||
inputMessageStory story_poster_chat_id:int53 story_id:int32 = InputMessageContent;
|
inputMessageStory story_poster_chat_id:int53 story_id:int32 = InputMessageContent;
|
||||||
|
|
||||||
|
//@description A message with a checklist. Checklists can't be sent to secret chats, channel chats and channel direct messages chats; for Telegram Premium users only
|
||||||
|
//@checklist The checklist to send
|
||||||
|
inputMessageChecklist checklist:inputChecklist = InputMessageContent;
|
||||||
|
|
||||||
//@description A forwarded message
|
//@description A forwarded message
|
||||||
//@from_chat_id Identifier for the chat this forwarded message came from
|
//@from_chat_id Identifier for the chat this forwarded message came from
|
||||||
//@message_id Identifier of the message to forward. A message can be forwarded only if messageProperties.can_be_forwarded
|
//@message_id Identifier of the message to forward. A message can be forwarded only if messageProperties.can_be_forwarded
|
||||||
|
|
@ -4663,12 +4737,13 @@ inputMessageForwarded from_chat_id:int53 message_id:int53 in_game_share:Bool rep
|
||||||
|
|
||||||
|
|
||||||
//@description Contains properties of a message and describes actions that can be done with the message right now
|
//@description Contains properties of a message and describes actions that can be done with the message right now
|
||||||
|
//@can_add_tasks True, if tasks can be added to the message's checklist using addChecklistTasks if the current user has Telegram Premium subscription
|
||||||
//@can_be_copied True, if content of the message can be copied using inputMessageForwarded or forwardMessages with copy options
|
//@can_be_copied True, if content of the message can be copied using inputMessageForwarded or forwardMessages with copy options
|
||||||
//@can_be_copied_to_secret_chat True, if content of the message can be copied to a secret chat using inputMessageForwarded or forwardMessages with copy options
|
//@can_be_copied_to_secret_chat True, if content of the message can be copied to a secret chat using inputMessageForwarded or forwardMessages with copy options
|
||||||
//@can_be_deleted_only_for_self True, if the message can be deleted only for the current user while other users will continue to see it using the method deleteMessages with revoke == false
|
//@can_be_deleted_only_for_self True, if the message can be deleted only for the current user while other users will continue to see it using the method deleteMessages with revoke == false
|
||||||
//@can_be_deleted_for_all_users True, if the message can be deleted for all users using the method deleteMessages with revoke == true
|
//@can_be_deleted_for_all_users True, if the message can be deleted for all users using the method deleteMessages with revoke == true
|
||||||
//@can_be_edited True, if the message can be edited using the methods editMessageText, editMessageCaption, or editMessageReplyMarkup.
|
//@can_be_edited True, if the message can be edited using the methods editMessageText, editMessageCaption, or editMessageReplyMarkup.
|
||||||
//-For live location and poll messages this fields shows whether editMessageLiveLocation or stopPoll can be used with this message
|
//-For live location, poll, and checklist messages this fields shows whether editMessageLiveLocation, stopPoll, or editMessageChecklist respectively can be used with this message
|
||||||
//@can_be_forwarded True, if the message can be forwarded using inputMessageForwarded or forwardMessages without copy options
|
//@can_be_forwarded True, if the message can be forwarded using inputMessageForwarded or forwardMessages without copy options
|
||||||
//@can_be_paid True, if the message can be paid using inputInvoiceMessage
|
//@can_be_paid True, if the message can be paid using inputInvoiceMessage
|
||||||
//@can_be_pinned True, if the message can be pinned or unpinned in the chat using pinChatMessage or unpinChatMessage
|
//@can_be_pinned True, if the message can be pinned or unpinned in the chat using pinChatMessage or unpinChatMessage
|
||||||
|
|
@ -4685,14 +4760,16 @@ inputMessageForwarded from_chat_id:int53 message_id:int53 in_game_share:Bool rep
|
||||||
//@can_get_message_thread True, if information about the message thread is available through getMessageThread and getMessageThreadHistory
|
//@can_get_message_thread True, if information about the message thread is available through getMessageThread and getMessageThreadHistory
|
||||||
//@can_get_read_date True, if read date of the message can be received through getMessageReadDate
|
//@can_get_read_date True, if read date of the message can be received through getMessageReadDate
|
||||||
//@can_get_statistics True, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards
|
//@can_get_statistics True, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards
|
||||||
|
//@can_get_video_advertisements True, if advertisements for video of the message can be received though getVideoMessageAdvertisements
|
||||||
//@can_get_viewers True, if chat members already viewed the message can be received through getMessageViewers
|
//@can_get_viewers True, if chat members already viewed the message can be received through getMessageViewers
|
||||||
|
//@can_mark_tasks_as_done True, if tasks can be marked as done or not done in the message's checklist using markChecklistTasksAsDone if the current user has Telegram Premium subscription
|
||||||
//@can_recognize_speech True, if speech can be recognized for the message through recognizeSpeech
|
//@can_recognize_speech True, if speech can be recognized for the message through recognizeSpeech
|
||||||
//@can_report_chat True, if the message can be reported using reportChat
|
//@can_report_chat True, if the message can be reported using reportChat
|
||||||
//@can_report_reactions True, if reactions on the message can be reported through reportMessageReactions
|
//@can_report_reactions True, if reactions on the message can be reported through reportMessageReactions
|
||||||
//@can_report_supergroup_spam True, if the message can be reported using reportSupergroupSpam
|
//@can_report_supergroup_spam True, if the message can be reported using reportSupergroupSpam
|
||||||
//@can_set_fact_check True, if fact check for the message can be changed through setMessageFactCheck
|
//@can_set_fact_check True, if fact check for the message can be changed through setMessageFactCheck
|
||||||
//@need_show_statistics True, if message statistics must be available from context menu of the message
|
//@need_show_statistics True, if message statistics must be available from context menu of the message
|
||||||
messageProperties can_be_copied:Bool can_be_copied_to_secret_chat:Bool can_be_deleted_only_for_self:Bool can_be_deleted_for_all_users:Bool can_be_edited:Bool can_be_forwarded:Bool can_be_paid:Bool can_be_pinned:Bool can_be_replied:Bool can_be_replied_in_another_chat:Bool can_be_saved:Bool can_be_shared_in_story:Bool can_edit_media:Bool can_edit_scheduling_state:Bool can_get_author:Bool can_get_embedding_code:Bool can_get_link:Bool can_get_media_timestamp_links:Bool can_get_message_thread:Bool can_get_read_date:Bool can_get_statistics:Bool can_get_viewers:Bool can_recognize_speech:Bool can_report_chat:Bool can_report_reactions:Bool can_report_supergroup_spam:Bool can_set_fact_check:Bool need_show_statistics:Bool = MessageProperties;
|
messageProperties can_add_tasks:Bool can_be_copied:Bool can_be_copied_to_secret_chat:Bool can_be_deleted_only_for_self:Bool can_be_deleted_for_all_users:Bool can_be_edited:Bool can_be_forwarded:Bool can_be_paid:Bool can_be_pinned:Bool can_be_replied:Bool can_be_replied_in_another_chat:Bool can_be_saved:Bool can_be_shared_in_story:Bool can_edit_media:Bool can_edit_scheduling_state:Bool can_get_author:Bool can_get_embedding_code:Bool can_get_link:Bool can_get_media_timestamp_links:Bool can_get_message_thread:Bool can_get_read_date:Bool can_get_statistics:Bool can_get_video_advertisements:Bool can_get_viewers:Bool can_mark_tasks_as_done:Bool can_recognize_speech:Bool can_report_chat:Bool can_report_reactions:Bool can_report_supergroup_spam:Bool can_set_fact_check:Bool need_show_statistics:Bool = MessageProperties;
|
||||||
|
|
||||||
|
|
||||||
//@class SearchMessagesFilter @description Represents a filter for message search results
|
//@class SearchMessagesFilter @description Represents a filter for message search results
|
||||||
|
|
@ -6445,6 +6522,9 @@ premiumFeatureBusiness = PremiumFeature;
|
||||||
//@description The ability to use all available message effects
|
//@description The ability to use all available message effects
|
||||||
premiumFeatureMessageEffects = PremiumFeature;
|
premiumFeatureMessageEffects = PremiumFeature;
|
||||||
|
|
||||||
|
//@description The ability to create and use checklist messages
|
||||||
|
premiumFeatureChecklists = PremiumFeature;
|
||||||
|
|
||||||
|
|
||||||
//@class BusinessFeature @description Describes a feature available to Business user accounts
|
//@class BusinessFeature @description Describes a feature available to Business user accounts
|
||||||
|
|
||||||
|
|
@ -6956,6 +7036,11 @@ pushMessageContentStory is_mention:Bool is_pinned:Bool = PushMessageContent;
|
||||||
//@description A text message @text Message text @is_pinned True, if the message is a pinned message with the specified content
|
//@description A text message @text Message text @is_pinned True, if the message is a pinned message with the specified content
|
||||||
pushMessageContentText text:string is_pinned:Bool = PushMessageContent;
|
pushMessageContentText text:string is_pinned:Bool = PushMessageContent;
|
||||||
|
|
||||||
|
//@description A message with a checklist
|
||||||
|
//@title Checklist title
|
||||||
|
//@is_pinned True, if the message is a pinned message with the specified content
|
||||||
|
pushMessageContentChecklist title:string is_pinned:Bool = PushMessageContent;
|
||||||
|
|
||||||
//@description A video message
|
//@description A video message
|
||||||
//@video Message content; may be null
|
//@video Message content; may be null
|
||||||
//@caption Video caption
|
//@caption Video caption
|
||||||
|
|
@ -7021,6 +7106,12 @@ pushMessageContentSuggestProfilePhoto = PushMessageContent;
|
||||||
//@description A user in the chat came within proximity alert range from the current user @distance The distance to the user
|
//@description A user in the chat came within proximity alert range from the current user @distance The distance to the user
|
||||||
pushMessageContentProximityAlertTriggered distance:int32 = PushMessageContent;
|
pushMessageContentProximityAlertTriggered distance:int32 = PushMessageContent;
|
||||||
|
|
||||||
|
//@description Some tasks were added to a checklist @task_count Number of added tasks
|
||||||
|
pushMessageContentChecklistTasksAdded task_count:int32 = PushMessageContent;
|
||||||
|
|
||||||
|
//@description Some tasks from a checklist were marked as done or not done @task_count Number of changed tasks
|
||||||
|
pushMessageContentChecklistTasksDone task_count:int32 = PushMessageContent;
|
||||||
|
|
||||||
//@description A forwarded messages @total_count Number of forwarded messages
|
//@description A forwarded messages @total_count Number of forwarded messages
|
||||||
pushMessageContentMessageForwards total_count:int32 = PushMessageContent;
|
pushMessageContentMessageForwards total_count:int32 = PushMessageContent;
|
||||||
|
|
||||||
|
|
@ -9313,8 +9404,8 @@ getMessage chat_id:int53 message_id:int53 = Message;
|
||||||
getMessageLocally chat_id:int53 message_id:int53 = Message;
|
getMessageLocally chat_id:int53 message_id:int53 = Message;
|
||||||
|
|
||||||
//@description Returns information about a non-bundled message that is replied by a given message. Also, returns the pinned message, the game message, the invoice message,
|
//@description Returns information about a non-bundled message that is replied by a given message. Also, returns the pinned message, the game message, the invoice message,
|
||||||
//-the message with a previously set same background, the giveaway message, and the topic creation message for messages of the types
|
//-the message with a previously set same background, the giveaway message, the checklist message, and the topic creation message for messages of the types
|
||||||
//-messagePinMessage, messageGameScore, messagePaymentSuccessful, messageChatSetBackground, messageGiveawayCompleted and topic messages without non-bundled replied message respectively.
|
//-messagePinMessage, messageGameScore, messagePaymentSuccessful, messageChatSetBackground, messageGiveawayCompleted, messageChecklistTasksDone and messageChecklistTasksAdded, and topic messages without non-bundled replied message respectively.
|
||||||
//-Returns a 404 error if the message doesn't exist
|
//-Returns a 404 error if the message doesn't exist
|
||||||
//@chat_id Identifier of the chat the message belongs to
|
//@chat_id Identifier of the chat the message belongs to
|
||||||
//@message_id Identifier of the reply message
|
//@message_id Identifier of the reply message
|
||||||
|
|
@ -9517,6 +9608,18 @@ unpinAllDirectMessagesChatTopicMessages chat_id:int53 topic_id:int53 = Ok;
|
||||||
//@topic_id Topic identifier
|
//@topic_id Topic identifier
|
||||||
readAllDirectMessagesChatTopicReactions chat_id:int53 topic_id:int53 = Ok;
|
readAllDirectMessagesChatTopicReactions chat_id:int53 topic_id:int53 = Ok;
|
||||||
|
|
||||||
|
//@description Returns the total number of Telegram Stars received by the channel chat for direct messages from the given topic
|
||||||
|
//@chat_id Chat identifier of the channel direct messages chat administered by the current user
|
||||||
|
//@topic_id Identifier of the topic
|
||||||
|
getDirectMessagesChatTopicRevenue chat_id:int53 topic_id:int53 = StarCount;
|
||||||
|
|
||||||
|
//@description Allows to send unpaid messages to the given topic of the channel direct messages chat administered by the current user
|
||||||
|
//@chat_id Chat identifier
|
||||||
|
//@topic_id Identifier of the topic
|
||||||
|
//@can_send_unpaid_messages Pass true to allow unpaid messages; pass false to disallow unpaid messages
|
||||||
|
//@refund_payments Pass true to refund the user previously paid messages
|
||||||
|
toggleDirectMessagesChatTopicCanSendUnpaidMessages chat_id:int53 topic_id:int53 can_send_unpaid_messages:Bool refund_payments:Bool = Ok;
|
||||||
|
|
||||||
|
|
||||||
//@description Loads more Saved Messages topics. The loaded topics will be sent through updateSavedMessagesTopic. Topics are sorted by their topic.order in descending order. Returns a 404 error if all topics have been loaded
|
//@description Loads more Saved Messages topics. The loaded topics will be sent through updateSavedMessagesTopic. Topics are sorted by their topic.order in descending order. Returns a 404 error if all topics have been loaded
|
||||||
//@limit The maximum number of topics to be loaded. For optimal performance, the number of loaded topics is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached
|
//@limit The maximum number of topics to be loaded. For optimal performance, the number of loaded topics is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached
|
||||||
|
|
@ -9757,6 +9860,22 @@ openSponsoredChat sponsored_chat_unique_id:int53 = Ok;
|
||||||
//@option_id Option identifier chosen by the user; leave empty for the initial request
|
//@option_id Option identifier chosen by the user; leave empty for the initial request
|
||||||
reportSponsoredChat sponsored_chat_unique_id:int53 option_id:bytes = ReportSponsoredResult;
|
reportSponsoredChat sponsored_chat_unique_id:int53 option_id:bytes = ReportSponsoredResult;
|
||||||
|
|
||||||
|
//@description Returns advertisements to be shown while a video from a message is watched. Available only if messageProperties.can_get_video_advertisements
|
||||||
|
//@chat_id Identifier of the chat with the message
|
||||||
|
//@message_id Identifier of the message
|
||||||
|
getVideoMessageAdvertisements chat_id:int53 message_id:int53 = VideoMessageAdvertisements;
|
||||||
|
|
||||||
|
//@description Informs TDLib that the user viewed a video message advertisement @advertisement_unique_id Unique identifier of the advertisement
|
||||||
|
viewVideoMessageAdvertisement advertisement_unique_id:int53 = Ok;
|
||||||
|
|
||||||
|
//@description Informs TDLib that the user clicked a video message advertisement @advertisement_unique_id Unique identifier of the advertisement
|
||||||
|
clickVideoMessageAdvertisement advertisement_unique_id:int53 = Ok;
|
||||||
|
|
||||||
|
//@description Reports a video message advertisement to Telegram moderators
|
||||||
|
//@advertisement_unique_id Unique identifier of the advertisement
|
||||||
|
//@option_id Option identifier chosen by the user; leave empty for the initial request
|
||||||
|
reportVideoMessageAdvertisement advertisement_unique_id:int53 option_id:bytes = ReportSponsoredResult;
|
||||||
|
|
||||||
|
|
||||||
//@description Removes an active notification from notification list. Needs to be called only if the notification is removed by the current user @notification_group_id Identifier of notification group to which the notification belongs @notification_id Identifier of removed notification
|
//@description Removes an active notification from notification list. Needs to be called only if the notification is removed by the current user @notification_group_id Identifier of notification group to which the notification belongs @notification_id Identifier of removed notification
|
||||||
removeNotification notification_group_id:int32 notification_id:int32 = Ok;
|
removeNotification notification_group_id:int32 notification_id:int32 = Ok;
|
||||||
|
|
@ -9924,6 +10043,13 @@ editMessageText chat_id:int53 message_id:int53 reply_markup:ReplyMarkup input_me
|
||||||
//@proximity_alert_radius The new maximum distance for proximity alerts, in meters (0-100000). Pass 0 if the notification is disabled
|
//@proximity_alert_radius The new maximum distance for proximity alerts, in meters (0-100000). Pass 0 if the notification is disabled
|
||||||
editMessageLiveLocation chat_id:int53 message_id:int53 reply_markup:ReplyMarkup location:location live_period:int32 heading:int32 proximity_alert_radius:int32 = Message;
|
editMessageLiveLocation chat_id:int53 message_id:int53 reply_markup:ReplyMarkup location:location live_period:int32 heading:int32 proximity_alert_radius:int32 = Message;
|
||||||
|
|
||||||
|
//@description Edits the message content of a checklist. Returns the edited message after the edit is completed on the server side
|
||||||
|
//@chat_id The chat the message belongs to
|
||||||
|
//@message_id Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited
|
||||||
|
//@reply_markup The new message reply markup; pass null if none; for bots only
|
||||||
|
//@checklist The new checklist. If some tasks were completed, this information will be kept
|
||||||
|
editMessageChecklist chat_id:int53 message_id:int53 reply_markup:ReplyMarkup checklist:inputChecklist = Message;
|
||||||
|
|
||||||
//@description Edits the media content of a message, including message caption. If only the caption needs to be edited, use editMessageCaption instead.
|
//@description Edits the media content of a message, including message caption. If only the caption needs to be edited, use editMessageCaption instead.
|
||||||
//-The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa. Returns the edited message after the edit is completed on the server side
|
//-The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa. Returns the edited message after the edit is completed on the server side
|
||||||
//@chat_id The chat the message belongs to
|
//@chat_id The chat the message belongs to
|
||||||
|
|
@ -10036,6 +10162,14 @@ editBusinessMessageText business_connection_id:string chat_id:int53 message_id:i
|
||||||
//@proximity_alert_radius The new maximum distance for proximity alerts, in meters (0-100000). Pass 0 if the notification is disabled
|
//@proximity_alert_radius The new maximum distance for proximity alerts, in meters (0-100000). Pass 0 if the notification is disabled
|
||||||
editBusinessMessageLiveLocation business_connection_id:string chat_id:int53 message_id:int53 reply_markup:ReplyMarkup location:location live_period:int32 heading:int32 proximity_alert_radius:int32 = BusinessMessage;
|
editBusinessMessageLiveLocation business_connection_id:string chat_id:int53 message_id:int53 reply_markup:ReplyMarkup location:location live_period:int32 heading:int32 proximity_alert_radius:int32 = BusinessMessage;
|
||||||
|
|
||||||
|
//@description Edits the content of a checklist in a message sent on behalf of a business account; for bots only
|
||||||
|
//@business_connection_id Unique identifier of business connection on behalf of which the message was sent
|
||||||
|
//@chat_id The chat the message belongs to
|
||||||
|
//@message_id Identifier of the message
|
||||||
|
//@reply_markup The new message reply markup; pass null if none
|
||||||
|
//@checklist The new checklist. If some tasks were completed, this information will be kept
|
||||||
|
editBusinessMessageChecklist business_connection_id:string chat_id:int53 message_id:int53 reply_markup:ReplyMarkup checklist:inputChecklist = BusinessMessage;
|
||||||
|
|
||||||
//@description Edits the media content of a message with a text, an animation, an audio, a document, a photo or a video in a message sent on behalf of a business account; for bots only
|
//@description Edits the media content of a message with a text, an animation, an audio, a document, a photo or a video in a message sent on behalf of a business account; for bots only
|
||||||
//@business_connection_id Unique identifier of business connection on behalf of which the message was sent
|
//@business_connection_id Unique identifier of business connection on behalf of which the message was sent
|
||||||
//@chat_id The chat the message belongs to
|
//@chat_id The chat the message belongs to
|
||||||
|
|
@ -10163,7 +10297,7 @@ deleteQuickReplyShortcutMessages shortcut_id:int32 message_ids:vector<int53> = O
|
||||||
//-The shortcut must not contain more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added message
|
//-The shortcut must not contain more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added message
|
||||||
//@shortcut_name Name of the target shortcut
|
//@shortcut_name Name of the target shortcut
|
||||||
//@reply_to_message_id Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none
|
//@reply_to_message_id Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none
|
||||||
//@input_message_content The content of the message to be added; inputMessagePoll, inputMessageForwarded and inputMessageLocation with live_period aren't supported
|
//@input_message_content The content of the message to be added; inputMessagePaidMedia, inputMessageForwarded and inputMessageLocation with live_period aren't supported
|
||||||
addQuickReplyShortcutMessage shortcut_name:string reply_to_message_id:int53 input_message_content:InputMessageContent = QuickReplyMessage;
|
addQuickReplyShortcutMessage shortcut_name:string reply_to_message_id:int53 input_message_content:InputMessageContent = QuickReplyMessage;
|
||||||
|
|
||||||
//@description Adds a message to a quick reply shortcut via inline bot. If shortcut doesn't exist and there are less than getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created.
|
//@description Adds a message to a quick reply shortcut via inline bot. If shortcut doesn't exist and there are less than getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created.
|
||||||
|
|
@ -10189,10 +10323,11 @@ addQuickReplyShortcutMessageAlbum shortcut_name:string reply_to_message_id:int53
|
||||||
readdQuickReplyShortcutMessages shortcut_name:string message_ids:vector<int53> = QuickReplyMessages;
|
readdQuickReplyShortcutMessages shortcut_name:string message_ids:vector<int53> = QuickReplyMessages;
|
||||||
|
|
||||||
//@description Asynchronously edits the text, media or caption of a quick reply message. Use quickReplyMessage.can_be_edited to check whether a message can be edited.
|
//@description Asynchronously edits the text, media or caption of a quick reply message. Use quickReplyMessage.can_be_edited to check whether a message can be edited.
|
||||||
//-Media message can be edited only to a media message. The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa
|
//-Media message can be edited only to a media message. Checklist messages can be edited only to a checklist message.
|
||||||
|
//-The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa
|
||||||
//@shortcut_id Unique identifier of the quick reply shortcut with the message
|
//@shortcut_id Unique identifier of the quick reply shortcut with the message
|
||||||
//@message_id Identifier of the message
|
//@message_id Identifier of the message
|
||||||
//@input_message_content New content of the message. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo
|
//@input_message_content New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageChecklist, inputMessageDocument, inputMessagePhoto, inputMessageText, or inputMessageVideo
|
||||||
editQuickReplyMessage shortcut_id:int32 message_id:int53 input_message_content:InputMessageContent = Ok;
|
editQuickReplyMessage shortcut_id:int32 message_id:int53 input_message_content:InputMessageContent = Ok;
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -10412,6 +10547,20 @@ getPollVoters chat_id:int53 message_id:int53 option_id:int32 offset:int32 limit:
|
||||||
stopPoll chat_id:int53 message_id:int53 reply_markup:ReplyMarkup = Ok;
|
stopPoll chat_id:int53 message_id:int53 reply_markup:ReplyMarkup = Ok;
|
||||||
|
|
||||||
|
|
||||||
|
//@description Adds tasks to a checklist in a message
|
||||||
|
//@chat_id Identifier of the chat with the message
|
||||||
|
//@message_id Identifier of the message containing the checklist. Use messageProperties.can_add_tasks to check whether the tasks can be added
|
||||||
|
//@tasks List of added tasks
|
||||||
|
addChecklistTasks chat_id:int53 message_id:int53 tasks:vector<inputChecklistTask> = Ok;
|
||||||
|
|
||||||
|
//@description Adds tasks of a checklist in a message as done or not done
|
||||||
|
//@chat_id Identifier of the chat with the message
|
||||||
|
//@message_id Identifier of the message containing the checklist. Use messageProperties.can_mark_tasks_as_done to check whether the tasks can be marked as done or not done
|
||||||
|
//@marked_as_done_task_ids Identifiers of tasks that were marked as done
|
||||||
|
//@marked_as_not_done_task_ids Identifiers of tasks that were marked as not done
|
||||||
|
markChecklistTasksAsDone chat_id:int53 message_id:int53 marked_as_done_task_ids:vector<int32> marked_as_not_done_task_ids:vector<int32> = Ok;
|
||||||
|
|
||||||
|
|
||||||
//@description Hides a suggested action @action Suggested action to hide
|
//@description Hides a suggested action @action Suggested action to hide
|
||||||
hideSuggestedAction action:SuggestedAction = Ok;
|
hideSuggestedAction action:SuggestedAction = Ok;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue