Update to TDLib 1.8.52

This commit is contained in:
c0re100 2025-09-02 19:11:19 +08:00
parent 5c5078ec42
commit 14418433a4
No known key found for this signature in database
GPG key ID: 7C3B3004FE745AAF
4 changed files with 2174 additions and 229 deletions

View file

@ -1429,7 +1429,7 @@ type GetRepliedMessageRequest struct {
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, 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
// Returns information about a non-bundled message that is replied by a given message. Also, returns the pinned message for messagePinMessage, the game message for messageGameScore, the invoice message for messagePaymentSuccessful, the message with a previously set same background for messageChatSetBackground, the giveaway message for messageGiveawayCompleted, the checklist message for messageChecklistTasksDone, messageChecklistTasksAdded, the message with suggested post information for messageSuggestedPostApprovalFailed, messageSuggestedPostApproved, messageSuggestedPostDeclined, messageSuggestedPostPaid, messageSuggestedPostRefunded, the message with the regular gift that was upgraded for messageUpgradedGift with origin of the type upgradedGiftOriginUpgrade, and the topic creation message for topic messages without non-bundled replied message. Returns a 404 error if the message doesn't exist
func (client *Client) GetRepliedMessage(req *GetRepliedMessageRequest) (*Message, error) {
result, err := client.Send(Request{
meta: meta{
@ -2519,9 +2519,9 @@ type GetDirectMessagesChatTopicHistoryRequest struct {
TopicId int64 `json:"topic_id"`
// Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message
FromMessageId int64 `json:"from_message_id"`
// Specify 0 to get results from exactly the message from_message_id or a negative offset up to 99 to get additionally some newer messages
// Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages
Offset int32 `json:"offset"`
// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
Limit int32 `json:"limit"`
}
@ -2863,9 +2863,9 @@ type GetSavedMessagesTopicHistoryRequest struct {
SavedMessagesTopicId int64 `json:"saved_messages_topic_id"`
// Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message
FromMessageId int64 `json:"from_message_id"`
// Specify 0 to get results from exactly the message from_message_id or a negative offset up to 99 to get additionally some newer messages
// Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages
Offset int32 `json:"offset"`
// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
Limit int32 `json:"limit"`
}
@ -3072,9 +3072,9 @@ type GetChatHistoryRequest struct {
ChatId int64 `json:"chat_id"`
// Identifier of the message starting from which history must be fetched; use 0 to get results from the last message
FromMessageId int64 `json:"from_message_id"`
// Specify 0 to get results from exactly the message from_message_id or a negative offset up to 99 to get additionally some newer messages
// Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages
Offset int32 `json:"offset"`
// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
Limit int32 `json:"limit"`
// Pass true to get only messages that are available without sending network requests
OnlyLocal bool `json:"only_local"`
@ -3112,9 +3112,9 @@ type GetMessageThreadHistoryRequest struct {
MessageId int64 `json:"message_id"`
// Identifier of the message starting from which history must be fetched; use 0 to get results from the last message
FromMessageId int64 `json:"from_message_id"`
// Specify 0 to get results from exactly the message from_message_id or a negative offset up to 99 to get additionally some newer messages
// Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages
Offset int32 `json:"offset"`
// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
Limit int32 `json:"limit"`
}
@ -3212,9 +3212,9 @@ type SearchChatMessagesRequest struct {
SenderId MessageSender `json:"sender_id"`
// Identifier of the message starting from which history must be fetched; use 0 to get results from the last message
FromMessageId int64 `json:"from_message_id"`
// Specify 0 to get results from exactly the message from_message_id or a negative offset to get the specified message and some newer messages
// Specify 0 to get results from exactly the message from_message_id or a negative number to get the specified message and some newer messages
Offset int32 `json:"offset"`
// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
Limit int32 `json:"limit"`
// Additional filter for messages to search; pass null to search for all messages
Filter SearchMessagesFilter `json:"filter"`
@ -3342,9 +3342,9 @@ type SearchSavedMessagesRequest struct {
Query string `json:"query"`
// Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message
FromMessageId int64 `json:"from_message_id"`
// Specify 0 to get results from exactly the message from_message_id or a negative offset to get the specified message and some newer messages
// Specify 0 to get results from exactly the message from_message_id or a negative number to get the specified message and some newer messages
Offset int32 `json:"offset"`
// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than -offset. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
Limit int32 `json:"limit"`
}
@ -6071,7 +6071,7 @@ type SetBusinessAccountProfilePhotoRequest struct {
BusinessConnectionId string `json:"business_connection_id"`
// Profile photo to set; pass null to remove the photo
Photo InputChatPhoto `json:"photo"`
// Pass true to set the public photo, which will be visible even the main photo is hidden by privacy settings
// Pass true to set the public photo, which will be visible even if the main photo is hidden by privacy settings
IsPublic bool `json:"is_public"`
}
@ -6624,7 +6624,7 @@ type EditForumTopicRequest struct {
IconCustomEmojiId JsonInt64 `json:"icon_custom_emoji_id"`
}
// Edits title and icon of a topic in a forum supergroup chat; requires can_manage_topics right in the supergroup unless the user is creator of the topic
// Edits title and icon of a topic in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup unless the user is creator of the topic
func (client *Client) EditForumTopic(req *EditForumTopicRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
@ -6789,7 +6789,7 @@ type ToggleForumTopicIsClosedRequest struct {
IsClosed bool `json:"is_closed"`
}
// Toggles whether a topic is closed in a forum supergroup chat; requires can_manage_topics right in the supergroup unless the user is creator of the topic
// Toggles whether a topic is closed in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup unless the user is creator of the topic
func (client *Client) ToggleForumTopicIsClosed(req *ToggleForumTopicIsClosedRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
@ -6819,7 +6819,7 @@ type ToggleGeneralForumTopicIsHiddenRequest struct {
IsHidden bool `json:"is_hidden"`
}
// Toggles whether a General topic is hidden in a forum supergroup chat; requires can_manage_topics right in the supergroup
// Toggles whether a General topic is hidden in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup
func (client *Client) ToggleGeneralForumTopicIsHidden(req *ToggleGeneralForumTopicIsHiddenRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
@ -6850,7 +6850,7 @@ type ToggleForumTopicIsPinnedRequest struct {
IsPinned bool `json:"is_pinned"`
}
// Changes the pinned state of a forum topic; requires can_manage_topics right in the supergroup. There can be up to getOption("pinned_forum_topic_count_max") pinned forum topics
// Changes the pinned state of a forum topic; requires can_manage_topics administrator right in the supergroup. There can be up to getOption("pinned_forum_topic_count_max") pinned forum topics
func (client *Client) ToggleForumTopicIsPinned(req *ToggleForumTopicIsPinnedRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
@ -6880,7 +6880,7 @@ type SetPinnedForumTopicsRequest struct {
MessageThreadIds []int64 `json:"message_thread_ids"`
}
// Changes the order of pinned forum topics; requires can_manage_topics right in the supergroup
// Changes the order of pinned forum topics; requires can_manage_topics administrator right in the supergroup
func (client *Client) SetPinnedForumTopics(req *SetPinnedForumTopicsRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
@ -9163,7 +9163,7 @@ type ViewMessagesRequest struct {
MessageIds []int64 `json:"message_ids"`
// Source of the message view; pass null to guess the source based on chat open state
Source MessageSource `json:"source"`
// Pass true to mark as read the specified messages even the chat is closed
// Pass true to mark as read the specified messages even if the chat is closed
ForceRead bool `json:"force_read"`
}
@ -9383,6 +9383,9 @@ func (client *Client) GetInternalLinkType(req *GetInternalLinkTypeRequest) (Inte
case TypeInternalLinkTypeMyStars:
return UnmarshalInternalLinkTypeMyStars(result.Data)
case TypeInternalLinkTypeMyToncoins:
return UnmarshalInternalLinkTypeMyToncoins(result.Data)
case TypeInternalLinkTypePassportDataRequest:
return UnmarshalInternalLinkTypePassportDataRequest(result.Data)
@ -11189,7 +11192,7 @@ type SetChatSlowModeDelayRequest struct {
SlowModeDelay int32 `json:"slow_mode_delay"`
}
// Changes the slow mode delay of a chat. Available only for supergroups; requires can_restrict_members right
// Changes the slow mode delay of a chat. Available only for supergroups; requires can_restrict_members administrator right
func (client *Client) SetChatSlowModeDelay(req *SetChatSlowModeDelayRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
@ -12087,7 +12090,7 @@ type CanPostStoryRequest struct {
ChatId int64 `json:"chat_id"`
}
// Checks whether the current user can post a story on behalf of a chat; requires can_post_stories right for supergroup and channel chats
// Checks whether the current user can post a story on behalf of a chat; requires can_post_stories administrator right for supergroup and channel chats
func (client *Client) CanPostStory(req *CanPostStoryRequest) (CanPostStoryResult, error) {
result, err := client.Send(Request{
meta: meta{
@ -12150,7 +12153,7 @@ type PostStoryRequest struct {
ProtectContent bool `json:"protect_content"`
}
// Posts a new story on behalf of a chat; requires can_post_stories right for supergroup and channel chats. Returns a temporary story
// Posts a new story on behalf of a chat; requires can_post_stories administrator right for supergroup and channel chats. Returns a temporary story
func (client *Client) PostStory(req *PostStoryRequest) (*Story, error) {
result, err := client.Send(Request{
meta: meta{
@ -12480,7 +12483,7 @@ type GetChatArchivedStoriesRequest struct {
Limit int32 `json:"limit"`
}
// Returns the list of all stories posted by the given chat; requires can_edit_stories right in the chat. The stories are returned in reverse chronological order (i.e., in order of decreasing story_id). For optimal performance, the number of returned stories is chosen by TDLib
// Returns the list of all stories posted by the given chat; requires can_edit_stories administrator right in the chat. The stories are returned in reverse chronological order (i.e., in order of decreasing story_id). For optimal performance, the number of returned stories is chosen by TDLib
func (client *Client) GetChatArchivedStories(req *GetChatArchivedStoriesRequest) (*Stories, error) {
result, err := client.Send(Request{
meta: meta{
@ -12510,7 +12513,7 @@ type SetChatPinnedStoriesRequest struct {
StoryIds []int32 `json:"story_ids"`
}
// Changes the list of pinned stories on a chat page; requires can_edit_stories right in the chat
// Changes the list of pinned stories on a chat page; requires can_edit_stories administrator right in the chat
func (client *Client) SetChatPinnedStories(req *SetChatPinnedStoriesRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
@ -13273,7 +13276,7 @@ func (client *Client) GetDefaultChatEmojiStatuses() (*EmojiStatusCustomEmojis, e
return UnmarshalEmojiStatusCustomEmojis(result.Data)
}
// Returns the list of emoji statuses, which can't be used as chat emoji status, even they are from a sticker set with is_allowed_as_chat_emoji_status == true
// Returns the list of emoji statuses, which can't be used as chat emoji status, even if they are from a sticker set with is_allowed_as_chat_emoji_status == true
func (client *Client) GetDisallowedChatEmojiStatuses() (*EmojiStatusCustomEmojis, error) {
result, err := client.Send(Request{
meta: meta{
@ -14484,6 +14487,102 @@ func (client *Client) ProcessChatJoinRequests(req *ProcessChatJoinRequestsReques
return UnmarshalOk(result.Data)
}
type ApproveSuggestedPostRequest struct {
// Chat identifier of the channel direct messages chat
ChatId int64 `json:"chat_id"`
// Identifier of the message with the suggested post. Use messageProperties.can_be_approved to check whether the suggested post can be approved
MessageId int64 `json:"message_id"`
// Point in time (Unix timestamp) when the post is expected to be published; pass 0 if the date has already been chosen. If specified, then the date must be in the future, but at most getOption("suggested_post_send_delay_max") seconds in the future
SendDate int32 `json:"send_date"`
}
// Approves a suggested post in a channel direct messages chat
func (client *Client) ApproveSuggestedPost(req *ApproveSuggestedPostRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
Type: "approveSuggestedPost",
},
Data: map[string]interface{}{
"chat_id": req.ChatId,
"message_id": req.MessageId,
"send_date": req.SendDate,
},
})
if err != nil {
return nil, err
}
if result.Type == "error" {
return nil, buildResponseError(result.Data)
}
return UnmarshalOk(result.Data)
}
type DeclineSuggestedPostRequest struct {
// Chat identifier of the channel direct messages chat
ChatId int64 `json:"chat_id"`
// Identifier of the message with the suggested post. Use messageProperties.can_be_declined to check whether the suggested post can be declined
MessageId int64 `json:"message_id"`
// Comment for the creator of the suggested post; 0-128 characters
Comment string `json:"comment"`
}
// Declines a suggested post in a channel direct messages chat
func (client *Client) DeclineSuggestedPost(req *DeclineSuggestedPostRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
Type: "declineSuggestedPost",
},
Data: map[string]interface{}{
"chat_id": req.ChatId,
"message_id": req.MessageId,
"comment": req.Comment,
},
})
if err != nil {
return nil, err
}
if result.Type == "error" {
return nil, buildResponseError(result.Data)
}
return UnmarshalOk(result.Data)
}
type AddOfferRequest struct {
// Identifier of the channel direct messages chat
ChatId int64 `json:"chat_id"`
// Identifier of the message in the chat which will be sent as suggested post. Use messageProperties.can_add_offer to check whether an offer can be added or messageProperties.can_edit_suggested_post_info to check whether price or time of sending of the post can be changed
MessageId int64 `json:"message_id"`
// Options to be used to send the message. New information about the suggested post must always be specified
Options *MessageSendOptions `json:"options"`
}
// Sent a suggested post based on a previously sent message in a channel direct messages chat. Can be also used to suggest price or time change for an existing suggested post. Returns the sent message
func (client *Client) AddOffer(req *AddOfferRequest) (*Message, error) {
result, err := client.Send(Request{
meta: meta{
Type: "addOffer",
},
Data: map[string]interface{}{
"chat_id": req.ChatId,
"message_id": req.MessageId,
"options": req.Options,
},
})
if err != nil {
return nil, err
}
if result.Type == "error" {
return nil, buildResponseError(result.Data)
}
return UnmarshalMessage(result.Data)
}
type CreateCallRequest struct {
// Identifier of the user to be called
UserId int64 `json:"user_id"`
@ -17576,7 +17675,7 @@ func (client *Client) GetWebPageInstantView(req *GetWebPageInstantViewRequest) (
type SetProfilePhotoRequest struct {
// Profile photo to set
Photo InputChatPhoto `json:"photo"`
// Pass true to set the public photo, which will be visible even the main photo is hidden by privacy settings
// Pass true to set the public photo, which will be visible even if the main photo is hidden by privacy settings
IsPublic bool `json:"is_public"`
}
@ -20481,7 +20580,7 @@ type SellGiftRequest struct {
ReceivedGiftId string `json:"received_gift_id"`
}
// Sells a gift for Telegram Stars
// Sells a gift for Telegram Stars; requires owner privileges for gifts owned by a chat
func (client *Client) SellGift(req *SellGiftRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
@ -20894,7 +20993,7 @@ type SearchGiftsForResaleRequest struct {
Limit int32 `json:"limit"`
}
// Returns upgraded gifts that can be bought from other owners
// Returns upgraded gifts that can be bought from other owners using sendResoldGift
func (client *Client) SearchGiftsForResale(req *SearchGiftsForResaleRequest) (*GiftsForResale, error) {
result, err := client.Send(Request{
meta: meta{
@ -22206,9 +22305,9 @@ func (client *Client) GetChatRevenueWithdrawalUrl(req *GetChatRevenueWithdrawalU
type GetChatRevenueTransactionsRequest struct {
// Chat identifier
ChatId int64 `json:"chat_id"`
// Number of transactions to skip
Offset int32 `json:"offset"`
// The maximum number of transactions to be returned; up to 200
// Offset of the first transaction to return as received from the previous request; use empty string to get the first chunk of results
Offset string `json:"offset"`
// The maximum number of transactions to be returned; up to 100
Limit int32 `json:"limit"`
}
@ -22235,6 +22334,38 @@ func (client *Client) GetChatRevenueTransactions(req *GetChatRevenueTransactions
return UnmarshalChatRevenueTransactions(result.Data)
}
type GetTonTransactionsRequest struct {
// Direction of the transactions to receive; pass null to get all transactions
Direction TransactionDirection `json:"direction"`
// Offset of the first transaction to return as received from the previous request; use empty string to get the first chunk of results
Offset string `json:"offset"`
// The maximum number of transactions to return
Limit int32 `json:"limit"`
}
// Returns the list of Toncoin transactions of the current user
func (client *Client) GetTonTransactions(req *GetTonTransactionsRequest) (*TonTransactions, error) {
result, err := client.Send(Request{
meta: meta{
Type: "getTonTransactions",
},
Data: map[string]interface{}{
"direction": req.Direction,
"offset": req.Offset,
"limit": req.Limit,
},
})
if err != nil {
return nil, err
}
if result.Type == "error" {
return nil, buildResponseError(result.Data)
}
return UnmarshalTonTransactions(result.Data)
}
type GetStarRevenueStatisticsRequest struct {
// Identifier of the owner of the Telegram Stars; can be identifier of the current user, an owned bot, or a supergroup or a channel chat with supergroupFullInfo.can_get_star_revenue_statistics == true
OwnerId MessageSender `json:"owner_id"`
@ -22267,7 +22398,7 @@ func (client *Client) GetStarRevenueStatistics(req *GetStarRevenueStatisticsRequ
type GetStarWithdrawalUrlRequest struct {
// Identifier of the owner of the Telegram Stars; can be identifier of the current user, an owned bot, or an owned supergroup or channel chat
OwnerId MessageSender `json:"owner_id"`
// The number of Telegram Stars to withdraw. Must be at least getOption("star_withdrawal_count_min")
// The number of Telegram Stars to withdraw; must be between getOption("star_withdrawal_count_min") and getOption("star_withdrawal_count_max")
StarCount int64 `json:"star_count"`
// The 2-step verification password of the current user
Password string `json:"password"`
@ -24271,7 +24402,7 @@ type GetStarTransactionsRequest struct {
// If non-empty, only transactions related to the Star Subscription will be returned
SubscriptionId string `json:"subscription_id"`
// Direction of the transactions to receive; pass null to get all transactions
Direction StarTransactionDirection `json:"direction"`
Direction TransactionDirection `json:"direction"`
// Offset of the first transaction to return as received from the previous request; use empty string to get the first chunk of results
Offset string `json:"offset"`
// The maximum number of transactions to return
@ -25970,6 +26101,9 @@ func (client *Client) TestUseUpdate() (Update, error) {
case TypeUpdateMessageFactCheck:
return UnmarshalUpdateMessageFactCheck(result.Data)
case TypeUpdateMessageSuggestedPostInfo:
return UnmarshalUpdateMessageSuggestedPostInfo(result.Data)
case TypeUpdateMessageLiveLocationViewed:
return UnmarshalUpdateMessageLiveLocationViewed(result.Data)
@ -26315,6 +26449,9 @@ func (client *Client) TestUseUpdate() (Update, error) {
case TypeUpdateOwnedStarCount:
return UnmarshalUpdateOwnedStarCount(result.Data)
case TypeUpdateOwnedTonCount:
return UnmarshalUpdateOwnedTonCount(result.Data)
case TypeUpdateChatRevenueAmount:
return UnmarshalUpdateChatRevenueAmount(result.Data)

File diff suppressed because it is too large Load diff

View file

@ -662,6 +662,111 @@ func UnmarshalListOfInputChatPhoto(dataList []json.RawMessage) ([]InputChatPhoto
return list, nil
}
func UnmarshalSuggestedPostPrice(data json.RawMessage) (SuggestedPostPrice, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypeSuggestedPostPriceStar:
return UnmarshalSuggestedPostPriceStar(data)
case TypeSuggestedPostPriceTon:
return UnmarshalSuggestedPostPriceTon(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfSuggestedPostPrice(dataList []json.RawMessage) ([]SuggestedPostPrice, error) {
list := []SuggestedPostPrice{}
for _, data := range dataList {
entity, err := UnmarshalSuggestedPostPrice(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
func UnmarshalSuggestedPostState(data json.RawMessage) (SuggestedPostState, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypeSuggestedPostStatePending:
return UnmarshalSuggestedPostStatePending(data)
case TypeSuggestedPostStateApproved:
return UnmarshalSuggestedPostStateApproved(data)
case TypeSuggestedPostStateDeclined:
return UnmarshalSuggestedPostStateDeclined(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfSuggestedPostState(dataList []json.RawMessage) ([]SuggestedPostState, error) {
list := []SuggestedPostState{}
for _, data := range dataList {
entity, err := UnmarshalSuggestedPostState(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
func UnmarshalSuggestedPostRefundReason(data json.RawMessage) (SuggestedPostRefundReason, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypeSuggestedPostRefundReasonPostDeleted:
return UnmarshalSuggestedPostRefundReasonPostDeleted(data)
case TypeSuggestedPostRefundReasonPaymentRefunded:
return UnmarshalSuggestedPostRefundReasonPaymentRefunded(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfSuggestedPostRefundReason(dataList []json.RawMessage) ([]SuggestedPostRefundReason, error) {
list := []SuggestedPostRefundReason{}
for _, data := range dataList {
entity, err := UnmarshalSuggestedPostRefundReason(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
func UnmarshalStarSubscriptionType(data json.RawMessage) (StarSubscriptionType, error) {
var meta meta
@ -770,6 +875,43 @@ func UnmarshalListOfAffiliateProgramSortOrder(dataList []json.RawMessage) ([]Aff
return list, nil
}
func UnmarshalUpgradedGiftOrigin(data json.RawMessage) (UpgradedGiftOrigin, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypeUpgradedGiftOriginUpgrade:
return UnmarshalUpgradedGiftOriginUpgrade(data)
case TypeUpgradedGiftOriginTransfer:
return UnmarshalUpgradedGiftOriginTransfer(data)
case TypeUpgradedGiftOriginResale:
return UnmarshalUpgradedGiftOriginResale(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfUpgradedGiftOrigin(dataList []json.RawMessage) ([]UpgradedGiftOrigin, error) {
list := []UpgradedGiftOrigin{}
for _, data := range dataList {
entity, err := UnmarshalUpgradedGiftOrigin(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
func UnmarshalUpgradedGiftAttributeId(data json.RawMessage) (UpgradedGiftAttributeId, error) {
var meta meta
@ -878,7 +1020,7 @@ func UnmarshalListOfSentGift(dataList []json.RawMessage) ([]SentGift, error) {
return list, nil
}
func UnmarshalStarTransactionDirection(data json.RawMessage) (StarTransactionDirection, error) {
func UnmarshalTransactionDirection(data json.RawMessage) (TransactionDirection, error) {
var meta meta
err := json.Unmarshal(data, &meta)
@ -887,22 +1029,22 @@ func UnmarshalStarTransactionDirection(data json.RawMessage) (StarTransactionDir
}
switch meta.Type {
case TypeStarTransactionDirectionIncoming:
return UnmarshalStarTransactionDirectionIncoming(data)
case TypeTransactionDirectionIncoming:
return UnmarshalTransactionDirectionIncoming(data)
case TypeStarTransactionDirectionOutgoing:
return UnmarshalStarTransactionDirectionOutgoing(data)
case TypeTransactionDirectionOutgoing:
return UnmarshalTransactionDirectionOutgoing(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfStarTransactionDirection(dataList []json.RawMessage) ([]StarTransactionDirection, error) {
list := []StarTransactionDirection{}
func UnmarshalListOfTransactionDirection(dataList []json.RawMessage) ([]TransactionDirection, error) {
list := []TransactionDirection{}
for _, data := range dataList {
entity, err := UnmarshalStarTransactionDirection(data)
entity, err := UnmarshalTransactionDirection(data)
if err != nil {
return nil, err
}
@ -1011,6 +1153,12 @@ func UnmarshalStarTransactionType(data json.RawMessage) (StarTransactionType, er
case TypeStarTransactionTypePaidMessageReceive:
return UnmarshalStarTransactionTypePaidMessageReceive(data)
case TypeStarTransactionTypeSuggestedPostPaymentSend:
return UnmarshalStarTransactionTypeSuggestedPostPaymentSend(data)
case TypeStarTransactionTypeSuggestedPostPaymentReceive:
return UnmarshalStarTransactionTypeSuggestedPostPaymentReceive(data)
case TypeStarTransactionTypePremiumPurchase:
return UnmarshalStarTransactionTypePremiumPurchase(data)
@ -1042,6 +1190,43 @@ func UnmarshalListOfStarTransactionType(dataList []json.RawMessage) ([]StarTrans
return list, nil
}
func UnmarshalTonTransactionType(data json.RawMessage) (TonTransactionType, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypeTonTransactionTypeFragmentDeposit:
return UnmarshalTonTransactionTypeFragmentDeposit(data)
case TypeTonTransactionTypeSuggestedPostPayment:
return UnmarshalTonTransactionTypeSuggestedPostPayment(data)
case TypeTonTransactionTypeUnsupported:
return UnmarshalTonTransactionTypeUnsupported(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfTonTransactionType(dataList []json.RawMessage) ([]TonTransactionType, error) {
list := []TonTransactionType{}
for _, data := range dataList {
entity, err := UnmarshalTonTransactionType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
func UnmarshalGiveawayParticipantStatus(data json.RawMessage) (GiveawayParticipantStatus, error) {
var meta meta
@ -3633,6 +3818,9 @@ func UnmarshalMessageContent(data json.RawMessage) (MessageContent, error) {
case TypeMessageGiftedStars:
return UnmarshalMessageGiftedStars(data)
case TypeMessageGiftedTon:
return UnmarshalMessageGiftedTon(data)
case TypeMessageGiveawayPrizeStars:
return UnmarshalMessageGiveawayPrizeStars(data)
@ -3660,6 +3848,21 @@ func UnmarshalMessageContent(data json.RawMessage) (MessageContent, error) {
case TypeMessageChecklistTasksAdded:
return UnmarshalMessageChecklistTasksAdded(data)
case TypeMessageSuggestedPostApprovalFailed:
return UnmarshalMessageSuggestedPostApprovalFailed(data)
case TypeMessageSuggestedPostApproved:
return UnmarshalMessageSuggestedPostApproved(data)
case TypeMessageSuggestedPostDeclined:
return UnmarshalMessageSuggestedPostDeclined(data)
case TypeMessageSuggestedPostPaid:
return UnmarshalMessageSuggestedPostPaid(data)
case TypeMessageSuggestedPostRefunded:
return UnmarshalMessageSuggestedPostRefunded(data)
case TypeMessageContactRegistered:
return UnmarshalMessageContactRegistered(data)
@ -7384,6 +7587,9 @@ func UnmarshalInternalLinkType(data json.RawMessage) (InternalLinkType, error) {
case TypeInternalLinkTypeMyStars:
return UnmarshalInternalLinkTypeMyStars(data)
case TypeInternalLinkTypeMyToncoins:
return UnmarshalInternalLinkTypeMyToncoins(data)
case TypeInternalLinkTypePassportDataRequest:
return UnmarshalInternalLinkTypePassportDataRequest(data)
@ -8147,14 +8353,20 @@ func UnmarshalChatRevenueTransactionType(data json.RawMessage) (ChatRevenueTrans
}
switch meta.Type {
case TypeChatRevenueTransactionTypeEarnings:
return UnmarshalChatRevenueTransactionTypeEarnings(data)
case TypeChatRevenueTransactionTypeUnsupported:
return UnmarshalChatRevenueTransactionTypeUnsupported(data)
case TypeChatRevenueTransactionTypeWithdrawal:
return UnmarshalChatRevenueTransactionTypeWithdrawal(data)
case TypeChatRevenueTransactionTypeSponsoredMessageEarnings:
return UnmarshalChatRevenueTransactionTypeSponsoredMessageEarnings(data)
case TypeChatRevenueTransactionTypeRefund:
return UnmarshalChatRevenueTransactionTypeRefund(data)
case TypeChatRevenueTransactionTypeSuggestedPostEarnings:
return UnmarshalChatRevenueTransactionTypeSuggestedPostEarnings(data)
case TypeChatRevenueTransactionTypeFragmentWithdrawal:
return UnmarshalChatRevenueTransactionTypeFragmentWithdrawal(data)
case TypeChatRevenueTransactionTypeFragmentRefund:
return UnmarshalChatRevenueTransactionTypeFragmentRefund(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
@ -8343,6 +8555,9 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
case TypeUpdateMessageFactCheck:
return UnmarshalUpdateMessageFactCheck(data)
case TypeUpdateMessageSuggestedPostInfo:
return UnmarshalUpdateMessageSuggestedPostInfo(data)
case TypeUpdateMessageLiveLocationViewed:
return UnmarshalUpdateMessageLiveLocationViewed(data)
@ -8688,6 +8903,9 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
case TypeUpdateOwnedStarCount:
return UnmarshalUpdateOwnedStarCount(data)
case TypeUpdateOwnedTonCount:
return UnmarshalUpdateOwnedTonCount(data)
case TypeUpdateChatRevenueAmount:
return UnmarshalUpdateChatRevenueAmount(data)
@ -10005,6 +10223,78 @@ func UnmarshalChatAdministratorRights(data json.RawMessage) (*ChatAdministratorR
return &resp, err
}
func UnmarshalSuggestedPostPriceStar(data json.RawMessage) (*SuggestedPostPriceStar, error) {
var resp SuggestedPostPriceStar
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalSuggestedPostPriceTon(data json.RawMessage) (*SuggestedPostPriceTon, error) {
var resp SuggestedPostPriceTon
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalSuggestedPostStatePending(data json.RawMessage) (*SuggestedPostStatePending, error) {
var resp SuggestedPostStatePending
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalSuggestedPostStateApproved(data json.RawMessage) (*SuggestedPostStateApproved, error) {
var resp SuggestedPostStateApproved
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalSuggestedPostStateDeclined(data json.RawMessage) (*SuggestedPostStateDeclined, error) {
var resp SuggestedPostStateDeclined
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalSuggestedPostInfo(data json.RawMessage) (*SuggestedPostInfo, error) {
var resp SuggestedPostInfo
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalInputSuggestedPostInfo(data json.RawMessage) (*InputSuggestedPostInfo, error) {
var resp InputSuggestedPostInfo
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalSuggestedPostRefundReasonPostDeleted(data json.RawMessage) (*SuggestedPostRefundReasonPostDeleted, error) {
var resp SuggestedPostRefundReasonPostDeleted
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalSuggestedPostRefundReasonPaymentRefunded(data json.RawMessage) (*SuggestedPostRefundReasonPaymentRefunded, error) {
var resp SuggestedPostRefundReasonPaymentRefunded
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalStarAmount(data json.RawMessage) (*StarAmount, error) {
var resp StarAmount
@ -10277,6 +10567,30 @@ func UnmarshalGiftSettings(data json.RawMessage) (*GiftSettings, error) {
return &resp, err
}
func UnmarshalUpgradedGiftOriginUpgrade(data json.RawMessage) (*UpgradedGiftOriginUpgrade, error) {
var resp UpgradedGiftOriginUpgrade
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUpgradedGiftOriginTransfer(data json.RawMessage) (*UpgradedGiftOriginTransfer, error) {
var resp UpgradedGiftOriginTransfer
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUpgradedGiftOriginResale(data json.RawMessage) (*UpgradedGiftOriginResale, error) {
var resp UpgradedGiftOriginResale
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUpgradedGiftModel(data json.RawMessage) (*UpgradedGiftModel, error) {
var resp UpgradedGiftModel
@ -10485,16 +10799,16 @@ func UnmarshalGiftUpgradePreview(data json.RawMessage) (*GiftUpgradePreview, err
return &resp, err
}
func UnmarshalStarTransactionDirectionIncoming(data json.RawMessage) (*StarTransactionDirectionIncoming, error) {
var resp StarTransactionDirectionIncoming
func UnmarshalTransactionDirectionIncoming(data json.RawMessage) (*TransactionDirectionIncoming, error) {
var resp TransactionDirectionIncoming
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalStarTransactionDirectionOutgoing(data json.RawMessage) (*StarTransactionDirectionOutgoing, error) {
var resp StarTransactionDirectionOutgoing
func UnmarshalTransactionDirectionOutgoing(data json.RawMessage) (*TransactionDirectionOutgoing, error) {
var resp TransactionDirectionOutgoing
err := json.Unmarshal(data, &resp)
@ -10741,6 +11055,22 @@ func UnmarshalStarTransactionTypePaidMessageReceive(data json.RawMessage) (*Star
return &resp, err
}
func UnmarshalStarTransactionTypeSuggestedPostPaymentSend(data json.RawMessage) (*StarTransactionTypeSuggestedPostPaymentSend, error) {
var resp StarTransactionTypeSuggestedPostPaymentSend
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalStarTransactionTypeSuggestedPostPaymentReceive(data json.RawMessage) (*StarTransactionTypeSuggestedPostPaymentReceive, error) {
var resp StarTransactionTypeSuggestedPostPaymentReceive
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalStarTransactionTypePremiumPurchase(data json.RawMessage) (*StarTransactionTypePremiumPurchase, error) {
var resp StarTransactionTypePremiumPurchase
@ -10789,6 +11119,46 @@ func UnmarshalStarTransactions(data json.RawMessage) (*StarTransactions, error)
return &resp, err
}
func UnmarshalTonTransactionTypeFragmentDeposit(data json.RawMessage) (*TonTransactionTypeFragmentDeposit, error) {
var resp TonTransactionTypeFragmentDeposit
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalTonTransactionTypeSuggestedPostPayment(data json.RawMessage) (*TonTransactionTypeSuggestedPostPayment, error) {
var resp TonTransactionTypeSuggestedPostPayment
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalTonTransactionTypeUnsupported(data json.RawMessage) (*TonTransactionTypeUnsupported, error) {
var resp TonTransactionTypeUnsupported
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalTonTransaction(data json.RawMessage) (*TonTransaction, error) {
var resp TonTransaction
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalTonTransactions(data json.RawMessage) (*TonTransactions, error) {
var resp TonTransactions
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalGiveawayParticipantStatusEligible(data json.RawMessage) (*GiveawayParticipantStatusEligible, error) {
var resp GiveawayParticipantStatusEligible
@ -14965,6 +15335,14 @@ func UnmarshalMessageGiftedStars(data json.RawMessage) (*MessageGiftedStars, err
return &resp, err
}
func UnmarshalMessageGiftedTon(data json.RawMessage) (*MessageGiftedTon, error) {
var resp MessageGiftedTon
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalMessageGiveawayPrizeStars(data json.RawMessage) (*MessageGiveawayPrizeStars, error) {
var resp MessageGiveawayPrizeStars
@ -15037,6 +15415,46 @@ func UnmarshalMessageChecklistTasksAdded(data json.RawMessage) (*MessageChecklis
return &resp, err
}
func UnmarshalMessageSuggestedPostApprovalFailed(data json.RawMessage) (*MessageSuggestedPostApprovalFailed, error) {
var resp MessageSuggestedPostApprovalFailed
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalMessageSuggestedPostApproved(data json.RawMessage) (*MessageSuggestedPostApproved, error) {
var resp MessageSuggestedPostApproved
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalMessageSuggestedPostDeclined(data json.RawMessage) (*MessageSuggestedPostDeclined, error) {
var resp MessageSuggestedPostDeclined
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalMessageSuggestedPostPaid(data json.RawMessage) (*MessageSuggestedPostPaid, error) {
var resp MessageSuggestedPostPaid
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalMessageSuggestedPostRefunded(data json.RawMessage) (*MessageSuggestedPostRefunded, error) {
var resp MessageSuggestedPostRefunded
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalMessageContactRegistered(data json.RawMessage) (*MessageContactRegistered, error) {
var resp MessageContactRegistered
@ -20461,6 +20879,14 @@ func UnmarshalInternalLinkTypeMyStars(data json.RawMessage) (*InternalLinkTypeMy
return &resp, err
}
func UnmarshalInternalLinkTypeMyToncoins(data json.RawMessage) (*InternalLinkTypeMyToncoins, error) {
var resp InternalLinkTypeMyToncoins
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalInternalLinkTypePassportDataRequest(data json.RawMessage) (*InternalLinkTypePassportDataRequest, error) {
var resp InternalLinkTypePassportDataRequest
@ -21613,24 +22039,40 @@ func UnmarshalRevenueWithdrawalStateFailed(data json.RawMessage) (*RevenueWithdr
return &resp, err
}
func UnmarshalChatRevenueTransactionTypeEarnings(data json.RawMessage) (*ChatRevenueTransactionTypeEarnings, error) {
var resp ChatRevenueTransactionTypeEarnings
func UnmarshalChatRevenueTransactionTypeUnsupported(data json.RawMessage) (*ChatRevenueTransactionTypeUnsupported, error) {
var resp ChatRevenueTransactionTypeUnsupported
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalChatRevenueTransactionTypeWithdrawal(data json.RawMessage) (*ChatRevenueTransactionTypeWithdrawal, error) {
var resp ChatRevenueTransactionTypeWithdrawal
func UnmarshalChatRevenueTransactionTypeSponsoredMessageEarnings(data json.RawMessage) (*ChatRevenueTransactionTypeSponsoredMessageEarnings, error) {
var resp ChatRevenueTransactionTypeSponsoredMessageEarnings
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalChatRevenueTransactionTypeRefund(data json.RawMessage) (*ChatRevenueTransactionTypeRefund, error) {
var resp ChatRevenueTransactionTypeRefund
func UnmarshalChatRevenueTransactionTypeSuggestedPostEarnings(data json.RawMessage) (*ChatRevenueTransactionTypeSuggestedPostEarnings, error) {
var resp ChatRevenueTransactionTypeSuggestedPostEarnings
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalChatRevenueTransactionTypeFragmentWithdrawal(data json.RawMessage) (*ChatRevenueTransactionTypeFragmentWithdrawal, error) {
var resp ChatRevenueTransactionTypeFragmentWithdrawal
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalChatRevenueTransactionTypeFragmentRefund(data json.RawMessage) (*ChatRevenueTransactionTypeFragmentRefund, error) {
var resp ChatRevenueTransactionTypeFragmentRefund
err := json.Unmarshal(data, &resp)
@ -21877,6 +22319,14 @@ func UnmarshalUpdateMessageFactCheck(data json.RawMessage) (*UpdateMessageFactCh
return &resp, err
}
func UnmarshalUpdateMessageSuggestedPostInfo(data json.RawMessage) (*UpdateMessageSuggestedPostInfo, error) {
var resp UpdateMessageSuggestedPostInfo
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUpdateMessageLiveLocationViewed(data json.RawMessage) (*UpdateMessageLiveLocationViewed, error) {
var resp UpdateMessageLiveLocationViewed
@ -22797,6 +23247,14 @@ func UnmarshalUpdateOwnedStarCount(data json.RawMessage) (*UpdateOwnedStarCount,
return &resp, err
}
func UnmarshalUpdateOwnedTonCount(data json.RawMessage) (*UpdateOwnedTonCount, error) {
var resp UpdateOwnedTonCount
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUpdateChatRevenueAmount(data json.RawMessage) (*UpdateChatRevenueAmount, error) {
var resp UpdateChatRevenueAmount
@ -23604,6 +24062,33 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeChatAdministratorRights:
return UnmarshalChatAdministratorRights(data)
case TypeSuggestedPostPriceStar:
return UnmarshalSuggestedPostPriceStar(data)
case TypeSuggestedPostPriceTon:
return UnmarshalSuggestedPostPriceTon(data)
case TypeSuggestedPostStatePending:
return UnmarshalSuggestedPostStatePending(data)
case TypeSuggestedPostStateApproved:
return UnmarshalSuggestedPostStateApproved(data)
case TypeSuggestedPostStateDeclined:
return UnmarshalSuggestedPostStateDeclined(data)
case TypeSuggestedPostInfo:
return UnmarshalSuggestedPostInfo(data)
case TypeInputSuggestedPostInfo:
return UnmarshalInputSuggestedPostInfo(data)
case TypeSuggestedPostRefundReasonPostDeleted:
return UnmarshalSuggestedPostRefundReasonPostDeleted(data)
case TypeSuggestedPostRefundReasonPaymentRefunded:
return UnmarshalSuggestedPostRefundReasonPaymentRefunded(data)
case TypeStarAmount:
return UnmarshalStarAmount(data)
@ -23706,6 +24191,15 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeGiftSettings:
return UnmarshalGiftSettings(data)
case TypeUpgradedGiftOriginUpgrade:
return UnmarshalUpgradedGiftOriginUpgrade(data)
case TypeUpgradedGiftOriginTransfer:
return UnmarshalUpgradedGiftOriginTransfer(data)
case TypeUpgradedGiftOriginResale:
return UnmarshalUpgradedGiftOriginResale(data)
case TypeUpgradedGiftModel:
return UnmarshalUpgradedGiftModel(data)
@ -23784,11 +24278,11 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeGiftUpgradePreview:
return UnmarshalGiftUpgradePreview(data)
case TypeStarTransactionDirectionIncoming:
return UnmarshalStarTransactionDirectionIncoming(data)
case TypeTransactionDirectionIncoming:
return UnmarshalTransactionDirectionIncoming(data)
case TypeStarTransactionDirectionOutgoing:
return UnmarshalStarTransactionDirectionOutgoing(data)
case TypeTransactionDirectionOutgoing:
return UnmarshalTransactionDirectionOutgoing(data)
case TypeStarTransactionTypePremiumBotDeposit:
return UnmarshalStarTransactionTypePremiumBotDeposit(data)
@ -23880,6 +24374,12 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeStarTransactionTypePaidMessageReceive:
return UnmarshalStarTransactionTypePaidMessageReceive(data)
case TypeStarTransactionTypeSuggestedPostPaymentSend:
return UnmarshalStarTransactionTypeSuggestedPostPaymentSend(data)
case TypeStarTransactionTypeSuggestedPostPaymentReceive:
return UnmarshalStarTransactionTypeSuggestedPostPaymentReceive(data)
case TypeStarTransactionTypePremiumPurchase:
return UnmarshalStarTransactionTypePremiumPurchase(data)
@ -23898,6 +24398,21 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeStarTransactions:
return UnmarshalStarTransactions(data)
case TypeTonTransactionTypeFragmentDeposit:
return UnmarshalTonTransactionTypeFragmentDeposit(data)
case TypeTonTransactionTypeSuggestedPostPayment:
return UnmarshalTonTransactionTypeSuggestedPostPayment(data)
case TypeTonTransactionTypeUnsupported:
return UnmarshalTonTransactionTypeUnsupported(data)
case TypeTonTransaction:
return UnmarshalTonTransaction(data)
case TypeTonTransactions:
return UnmarshalTonTransactions(data)
case TypeGiveawayParticipantStatusEligible:
return UnmarshalGiveawayParticipantStatusEligible(data)
@ -25464,6 +25979,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeMessageGiftedStars:
return UnmarshalMessageGiftedStars(data)
case TypeMessageGiftedTon:
return UnmarshalMessageGiftedTon(data)
case TypeMessageGiveawayPrizeStars:
return UnmarshalMessageGiveawayPrizeStars(data)
@ -25491,6 +26009,21 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeMessageChecklistTasksAdded:
return UnmarshalMessageChecklistTasksAdded(data)
case TypeMessageSuggestedPostApprovalFailed:
return UnmarshalMessageSuggestedPostApprovalFailed(data)
case TypeMessageSuggestedPostApproved:
return UnmarshalMessageSuggestedPostApproved(data)
case TypeMessageSuggestedPostDeclined:
return UnmarshalMessageSuggestedPostDeclined(data)
case TypeMessageSuggestedPostPaid:
return UnmarshalMessageSuggestedPostPaid(data)
case TypeMessageSuggestedPostRefunded:
return UnmarshalMessageSuggestedPostRefunded(data)
case TypeMessageContactRegistered:
return UnmarshalMessageContactRegistered(data)
@ -27525,6 +28058,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeInternalLinkTypeMyStars:
return UnmarshalInternalLinkTypeMyStars(data)
case TypeInternalLinkTypeMyToncoins:
return UnmarshalInternalLinkTypeMyToncoins(data)
case TypeInternalLinkTypePassportDataRequest:
return UnmarshalInternalLinkTypePassportDataRequest(data)
@ -27957,14 +28493,20 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeRevenueWithdrawalStateFailed:
return UnmarshalRevenueWithdrawalStateFailed(data)
case TypeChatRevenueTransactionTypeEarnings:
return UnmarshalChatRevenueTransactionTypeEarnings(data)
case TypeChatRevenueTransactionTypeUnsupported:
return UnmarshalChatRevenueTransactionTypeUnsupported(data)
case TypeChatRevenueTransactionTypeWithdrawal:
return UnmarshalChatRevenueTransactionTypeWithdrawal(data)
case TypeChatRevenueTransactionTypeSponsoredMessageEarnings:
return UnmarshalChatRevenueTransactionTypeSponsoredMessageEarnings(data)
case TypeChatRevenueTransactionTypeRefund:
return UnmarshalChatRevenueTransactionTypeRefund(data)
case TypeChatRevenueTransactionTypeSuggestedPostEarnings:
return UnmarshalChatRevenueTransactionTypeSuggestedPostEarnings(data)
case TypeChatRevenueTransactionTypeFragmentWithdrawal:
return UnmarshalChatRevenueTransactionTypeFragmentWithdrawal(data)
case TypeChatRevenueTransactionTypeFragmentRefund:
return UnmarshalChatRevenueTransactionTypeFragmentRefund(data)
case TypeChatRevenueTransaction:
return UnmarshalChatRevenueTransaction(data)
@ -28056,6 +28598,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeUpdateMessageFactCheck:
return UnmarshalUpdateMessageFactCheck(data)
case TypeUpdateMessageSuggestedPostInfo:
return UnmarshalUpdateMessageSuggestedPostInfo(data)
case TypeUpdateMessageLiveLocationViewed:
return UnmarshalUpdateMessageLiveLocationViewed(data)
@ -28401,6 +28946,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeUpdateOwnedStarCount:
return UnmarshalUpdateOwnedStarCount(data)
case TypeUpdateOwnedTonCount:
return UnmarshalUpdateOwnedTonCount(data)
case TypeUpdateChatRevenueAmount:
return UnmarshalUpdateChatRevenueAmount(data)

View file

@ -828,7 +828,7 @@ animatedChatPhoto length:int32 file:file main_frame_timestamp:double = AnimatedC
//@minithumbnail Photo minithumbnail; may be null
//@sizes Available variants of the photo in JPEG format, in different size
//@animation A big (up to 1280x1280) animated variant of the photo in MPEG4 format; may be null
//@small_animation A small (160x160) animated variant of the photo in MPEG4 format; may be null even the big animation is available
//@small_animation A small (160x160) animated variant of the photo in MPEG4 format; may be null even if the big animation is available
//@sticker Sticker-based version of the chat photo; may be null
chatPhoto id:int64 added_date:int32 minithumbnail:minithumbnail sizes:vector<photoSize> animation:animatedChatPhoto small_animation:animatedChatPhoto sticker:chatPhotoSticker = ChatPhoto;
@ -877,7 +877,7 @@ chatPermissions can_send_basic_messages:Bool can_send_audios:Bool can_send_docum
//@can_manage_chat True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report supergroup spam messages,
//-ignore slow mode, and send messages to the chat without paying Telegram Stars. Implied by any other privilege; applicable to supergroups and channels only
//@can_change_info True, if the administrator can change the chat title, photo, and other settings
//@can_post_messages True, if the administrator can create channel posts, answer to channel direct messages, or view channel statistics; applicable to channels only
//@can_post_messages True, if the administrator can create channel posts, approve suggested channel posts, or view channel statistics; applicable to channels only
//@can_edit_messages True, if the administrator can edit messages of other users and pin messages; applicable to channels only
//@can_delete_messages True, if the administrator can delete messages of other users
//@can_invite_users True, if the administrator can invite new users to the chat
@ -889,8 +889,58 @@ chatPermissions can_send_basic_messages:Bool can_send_audios:Bool can_send_docum
//@can_post_stories True, if the administrator can create new chat stories, or edit and delete posted stories; applicable to supergroups and channels only
//@can_edit_stories True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access story archive; applicable to supergroups and channels only
//@can_delete_stories True, if the administrator can delete stories posted by other users; applicable to supergroups and channels only
//@can_manage_direct_messages True, if the administrator can answer to channel direct messages; applicable to channels only
//@is_anonymous True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only
chatAdministratorRights can_manage_chat:Bool can_change_info:Bool can_post_messages:Bool can_edit_messages:Bool can_delete_messages:Bool can_invite_users:Bool can_restrict_members:Bool can_pin_messages:Bool can_manage_topics:Bool can_promote_members:Bool can_manage_video_chats:Bool can_post_stories:Bool can_edit_stories:Bool can_delete_stories:Bool is_anonymous:Bool = ChatAdministratorRights;
chatAdministratorRights can_manage_chat:Bool can_change_info:Bool can_post_messages:Bool can_edit_messages:Bool can_delete_messages:Bool can_invite_users:Bool can_restrict_members:Bool can_pin_messages:Bool can_manage_topics:Bool can_promote_members:Bool can_manage_video_chats:Bool can_post_stories:Bool can_edit_stories:Bool can_delete_stories:Bool can_manage_direct_messages:Bool is_anonymous:Bool = ChatAdministratorRights;
//@class SuggestedPostPrice @description Describes price of a suggested post
//@description Describes price of a suggested post in Telegram Stars
//@star_count The amount of Telegram Stars agreed to pay for the post; getOption("suggested_post_star_count_min")-getOption("suggested_post_star_count_max")
suggestedPostPriceStar star_count:int53 = SuggestedPostPrice;
//@description Describes price of a suggested post in Toncoins
//@toncoin_cent_count The amount of 1/100 of Toncoin agreed to pay for the post; getOption("suggested_post_toncoin_cent_count_min")-getOption("suggested_post_toncoin_cent_count_max")
suggestedPostPriceTon toncoin_cent_count:int53 = SuggestedPostPrice;
//@class SuggestedPostState @description Describes state of a suggested post
//@description The post must be approved or declined
suggestedPostStatePending = SuggestedPostState;
//@description The post was approved
suggestedPostStateApproved = SuggestedPostState;
//@description The post was declined
suggestedPostStateDeclined = SuggestedPostState;
//@description Contains information about a suggested post. If the post can be approved or declined, then changes to the post can be also suggested. Use sendMessage with reply to the message
//-and suggested post information to suggest message changes. Use addOffer to suggest price or time changes
//@price Price of the suggested post; may be null if the post is non-paid
//@send_date Point in time (Unix timestamp) when the post is expected to be published; 0 if the specific date isn't set yet
//@state State of the post
//@can_be_approved True, if the suggested post can be approved by the current user using approveSuggestedPost; updates aren't sent when value of this field changes
//@can_be_declined True, if the suggested post can be declined by the current user using declineSuggestedPost; updates aren't sent when value of this field changes
suggestedPostInfo price:SuggestedPostPrice send_date:int32 state:SuggestedPostState can_be_approved:Bool can_be_declined:Bool = SuggestedPostInfo;
//@description Contains information about a post to suggest
//@price Price of the suggested post; pass null to suggest a post without payment. If the current user isn't an administrator of the channel direct messages chat
//-and has no enough funds to pay for the post, then the error "BALANCE_TOO_LOW" will be returned immediately
//@send_date Point in time (Unix timestamp) when the post is expected to be published; pass 0 if the date isn't restricted. If specified,
//-then the date must be getOption("suggested_post_send_delay_min")-getOption("suggested_post_send_delay_max") seconds in the future
inputSuggestedPostInfo price:SuggestedPostPrice send_date:int32 = InputSuggestedPostInfo;
//@class SuggestedPostRefundReason @description Describes reason for refund of the payment for a suggested post
//@description The post was refunded, because it was deleted by channel administrators in less than getOption("suggested_post_lifetime_min") seconds
suggestedPostRefundReasonPostDeleted = SuggestedPostRefundReason;
//@description The post was refunded, because the payment for the post was refunded
suggestedPostRefundReasonPaymentRefunded = SuggestedPostRefundReason;
//@description Describes a possibly non-integer amount of Telegram Stars
@ -1110,6 +1160,20 @@ acceptedGiftTypes unlimited_gifts:Bool limited_gifts:Bool upgraded_gifts:Bool pr
//@accepted_gift_types Types of gifts accepted by the user; for Telegram Premium users only
giftSettings show_gift_button:Bool accepted_gift_types:acceptedGiftTypes = GiftSettings;
//@class UpgradedGiftOrigin @description Describes origin from which the upgraded gift was obtained
//@description The gift was obtained by upgrading of a previously received gift
//@gift_message_id Identifier of the message with the regular gift that was upgraded; can be 0 or an identifier of a deleted message
upgradedGiftOriginUpgrade gift_message_id:int53 = UpgradedGiftOrigin;
//@description The gift was transferred from another owner
upgradedGiftOriginTransfer = UpgradedGiftOrigin;
//@description The gift was bought from another user @star_count Number of Telegram Stars that were paid by the sender for the gift
upgradedGiftOriginResale star_count:int53 = UpgradedGiftOrigin;
//@description Describes a model of an upgraded gift
//@name Name of the model
//@sticker The sticker representing the upgraded gift
@ -1145,6 +1209,7 @@ upgradedGiftOriginalDetails sender_id:MessageSender receiver_id:MessageSender te
//@description Describes a gift that can be sent to another user or channel chat
//@id Unique identifier of the gift
//@publisher_chat_id Identifier of the chat that published the gift; 0 if none
//@sticker The sticker representing the gift
//@star_count Number of Telegram Stars that must be paid for the gift
//@default_sell_star_count Number of Telegram Stars that can be claimed by the receiver instead of the regular gift by default. If the gift was paid with just bought Telegram Stars, then full value can be claimed
@ -1154,10 +1219,11 @@ upgradedGiftOriginalDetails sender_id:MessageSender receiver_id:MessageSender te
//@total_count Number of total times the gift can be purchased; 0 if not limited
//@first_send_date Point in time (Unix timestamp) when the gift was send for the first time; for sold out gifts only
//@last_send_date Point in time (Unix timestamp) when the gift was send for the last time; for sold out gifts only
gift id:int64 sticker:sticker star_count:int53 default_sell_star_count:int53 upgrade_star_count:int53 is_for_birthday:Bool remaining_count:int32 total_count:int32 first_send_date:int32 last_send_date:int32 = Gift;
gift id:int64 publisher_chat_id:int53 sticker:sticker star_count:int53 default_sell_star_count:int53 upgrade_star_count:int53 is_for_birthday:Bool remaining_count:int32 total_count:int32 first_send_date:int32 last_send_date:int32 = Gift;
//@description Describes an upgraded gift that can be transferred to another owner or transferred to the TON blockchain as an NFT
//@id Unique identifier of the gift
//@publisher_chat_id Identifier of the chat that published the gift; 0 if none
//@title The title of the upgraded gift
//@name Unique name of the upgraded gift that can be used with internalLinkTypeUpgradedGift or sendResoldGift
//@number Unique number of the upgraded gift among gifts upgraded from the same gift
@ -1172,7 +1238,7 @@ gift id:int64 sticker:sticker star_count:int53 default_sell_star_count:int53 upg
//@backdrop Backdrop of the upgraded gift
//@original_details Information about the originally sent gift; may be null if unknown
//@resale_star_count Number of Telegram Stars that must be paid to buy the gift and send it to someone else; 0 if resale isn't possible
upgradedGift id:int64 title:string name:string number:int32 total_upgraded_count:int32 max_upgraded_count:int32 owner_id:MessageSender owner_address:string owner_name:string gift_address:string model:upgradedGiftModel symbol:upgradedGiftSymbol backdrop:upgradedGiftBackdrop original_details:upgradedGiftOriginalDetails resale_star_count:int53 = UpgradedGift;
upgradedGift id:int64 publisher_chat_id:int53 title:string name:string number:int32 total_upgraded_count:int32 max_upgraded_count:int32 owner_id:MessageSender owner_address:string owner_name:string gift_address:string model:upgradedGiftModel symbol:upgradedGiftSymbol backdrop:upgradedGiftBackdrop original_details:upgradedGiftOriginalDetails resale_star_count:int53 = UpgradedGift;
//@description Contains result of gift upgrading
//@gift The upgraded gift
@ -1288,13 +1354,13 @@ receivedGifts total_count:int32 gifts:vector<receivedGift> are_notifications_ena
giftUpgradePreview models:vector<upgradedGiftModel> symbols:vector<upgradedGiftSymbol> backdrops:vector<upgradedGiftBackdrop> = GiftUpgradePreview;
//@class StarTransactionDirection @description Describes direction of a transaction with Telegram Stars
//@class TransactionDirection @description Describes direction of transactions in a transaction list
//@description The transaction is incoming and increases the number of owned Telegram Stars
starTransactionDirectionIncoming = StarTransactionDirection;
//@description The transaction is incoming and increases the amount of owned currency
transactionDirectionIncoming = TransactionDirection;
//@description The transaction is outgoing and decreases the number of owned Telegram Stars
starTransactionDirectionOutgoing = StarTransactionDirection;
//@description The transaction is outgoing and decreases the amount of owned currency
transactionDirectionOutgoing = TransactionDirection;
//@class StarTransactionType @description Describes type of transaction with Telegram Stars
@ -1437,6 +1503,14 @@ starTransactionTypePaidMessageSend chat_id:int53 message_count:int32 = StarTrans
//@commission_star_amount The amount of Telegram Stars that were received by Telegram; can be negative for refunds
starTransactionTypePaidMessageReceive sender_id:MessageSender message_count:int32 commission_per_mille:int32 commission_star_amount:starAmount = StarTransactionType;
//@description The transaction is a payment for a suggested post; for regular users only
//@chat_id Identifier of the channel chat that posted the post
starTransactionTypeSuggestedPostPaymentSend chat_id:int53 = StarTransactionType;
//@description The transaction is a receiving of a payment for a suggested post by the channel chat; for channel chats only
//@user_id Identifier of the user that paid for the suggested post
starTransactionTypeSuggestedPostPaymentReceive user_id:int53 = StarTransactionType;
//@description The transaction is a purchase of Telegram Premium subscription; for regular users and bots only
//@user_id Identifier of the user that received the Telegram Premium subscription
//@month_count Number of months the Telegram Premium subscription will be active
@ -1468,6 +1542,35 @@ starTransaction id:string star_amount:starAmount is_refund:Bool date:int32 type:
starTransactions star_amount:starAmount transactions:vector<starTransaction> next_offset:string = StarTransactions;
//@class TonTransactionType @description Describes type of transaction with Toncoins
//@description The transaction is a deposit of Toncoins from Fragment
//@is_gift True, if the transaction is a gift from another user
//@sticker The sticker to be shown in the transaction information; may be null if unknown
tonTransactionTypeFragmentDeposit is_gift:Bool sticker:sticker = TonTransactionType;
//@description The transaction is a payment for a suggested post @chat_id Identifier of the channel chat that posted the post
tonTransactionTypeSuggestedPostPayment chat_id:int53 = TonTransactionType;
//@description The transaction is a transaction of an unsupported type
tonTransactionTypeUnsupported = TonTransactionType;
//@description Represents a transaction changing the amount of owned Toncoins
//@id Unique identifier of the transaction
//@ton_amount The amount of added owned Toncoins; negative for outgoing transactions
//@is_refund True, if the transaction is a refund of a previous transaction
//@date Point in time (Unix timestamp) when the transaction was completed
//@type Type of the transaction
tonTransaction id:string ton_amount:int53 is_refund:Bool date:int32 type:TonTransactionType = TonTransaction;
//@description Represents a list of Toncoin transactions
//@ton_amount The total amount of owned Toncoins
//@transactions List of Toncoin transactions
//@next_offset The offset for the next request. If empty, then there are no more results
tonTransactions ton_amount:int53 transactions:vector<tonTransaction> next_offset:string = TonTransactions;
//@class GiveawayParticipantStatus @description Contains information about status of a user in a giveaway
//@description The user is eligible for the giveaway
@ -1892,7 +1995,7 @@ basicGroupFullInfo photo:chatPhoto description:string creator_user_id:int53 memb
//@has_location True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup
//@sign_messages True, if messages sent to the channel contains name of the sender. This field is only applicable to channels
//@show_message_sender True, if messages sent to the channel have information about the sender user. This field is only applicable to channels
//@join_to_send_messages True, if users need to join the supergroup before they can send messages. Always true for channels and non-discussion supergroups
//@join_to_send_messages True, if users need to join the supergroup before they can send messages. May be false only for discussion supergroups and channel direct messages groups
//@join_by_request True, if all users directly joining the supergroup need to be approved by supergroup administrators. Always false for channels and supergroups without username, location, or a linked chat
//@is_slow_mode_enabled True, if the slow mode is enabled in the supergroup
//@is_channel True, if the supergroup is a channel
@ -2198,13 +2301,14 @@ inputTextQuote text:formattedText position:int32 = InputTextQuote;
//@chat_id The identifier of the chat to which the message belongs; may be 0 if the replied message is in unknown chat
//@message_id The identifier of the message; may be 0 if the replied message is in unknown chat
//@quote Chosen quote from the replied message; may be null if none
//@checklist_task_id Identifier of the checklist task in the original message that was replied; 0 if none
//@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
//@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, messageChecklist, messageContact, messageDice, messageDocument, messageGame,
//-messageGiveaway, messageGiveawayWinners, messageInvoice, messageLocation, messagePaidMedia, messagePhoto, messagePoll, messageSticker, messageStory,
//-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 checklist_task_id:int32 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
messageReplyToStory story_poster_chat_id:int53 story_id:int32 = MessageReplyTo;
@ -2215,13 +2319,15 @@ messageReplyToStory story_poster_chat_id:int53 story_id:int32 = MessageReplyTo;
//@description Describes a message to be replied in the same chat and forum topic
//@message_id The identifier of the message to be replied in the same chat and forum topic. A message can be replied in the same chat and forum topic only if messageProperties.can_be_replied
//@quote Quote from the message to be replied; pass null if none. Must always be null for replies in secret chats
inputMessageReplyToMessage message_id:int53 quote:inputTextQuote = InputMessageReplyTo;
//@checklist_task_id Identifier of the checklist task in the message to be replied; pass 0 to reply to the whole message
inputMessageReplyToMessage message_id:int53 quote:inputTextQuote checklist_task_id:int32 = InputMessageReplyTo;
//@description Describes a message to be replied that is from a different chat or a forum topic; not supported in secret chats
//@chat_id The identifier of the chat to which the message to be replied belongs
//@message_id The identifier of the message to be replied in the specified chat. A message can be replied in another chat or forum topic only if messageProperties.can_be_replied_in_another_chat
//@quote Quote from the message to be replied; pass null if none
inputMessageReplyToExternalMessage chat_id:int53 message_id:int53 quote:inputTextQuote = InputMessageReplyTo;
//@checklist_task_id Identifier of the checklist task in the message to be replied; pass 0 to reply to the whole message
inputMessageReplyToExternalMessage chat_id:int53 message_id:int53 quote:inputTextQuote checklist_task_id:int32 = InputMessageReplyTo;
//@description Describes a story to be replied
//@story_poster_chat_id The identifier of the poster of the story. Currently, stories can be replied only in the chat that posted the story; channel stories can't be replied
@ -2247,6 +2353,8 @@ factCheck text:formattedText country_code:string = FactCheck;
//@can_be_saved True, if content of the message can be saved locally
//@has_timestamped_media True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message
//@is_channel_post True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts
//@is_paid_star_suggested_post True, if the message is a suggested channel post which was paid in Telegram Stars; a warning must be shown if the message is deleted in less than getOption("suggested_post_lifetime_min") seconds after sending
//@is_paid_ton_suggested_post True, if the message is a suggested channel post which was paid in Toncoins; a warning must be shown if the message is deleted in less than getOption("suggested_post_lifetime_min") seconds after sending
//@contains_unread_mention True, if the message contains an unread mention for the current user
//@date Point in time (Unix timestamp) when the message was sent; 0 for scheduled messages
//@edit_date Point in time (Unix timestamp) when the message was last edited; 0 for scheduled messages
@ -2255,6 +2363,7 @@ factCheck text:formattedText country_code:string = FactCheck;
//@interaction_info Information about interactions with the message; may be null if none
//@unread_reactions Information about unread reactions added to the message
//@fact_check Information about fact-check added to the message; may be null if none
//@suggested_post_info Information about the suggested post; may be null if the message isn't a suggested post
//@reply_to Information about the message or the story this message is replying to; may be null if none
//@message_thread_id If non-zero, the identifier of the message thread the message belongs to; unique within the chat to which the message belongs
//@topic_id Identifier of the topic within the chat to which the message belongs; may be null if none
@ -2272,7 +2381,7 @@ factCheck text:formattedText country_code:string = FactCheck;
//@restriction_reason If non-empty, contains a human-readable description of the reason why access to this message must be restricted
//@content Content of the message
//@reply_markup Reply markup for the message; may be null if none
message id:int53 sender_id:MessageSender chat_id:int53 sending_state:MessageSendingState scheduling_state:MessageSchedulingState is_outgoing:Bool is_pinned:Bool is_from_offline:Bool can_be_saved:Bool has_timestamped_media:Bool is_channel_post:Bool contains_unread_mention:Bool date:int32 edit_date:int32 forward_info:messageForwardInfo import_info:messageImportInfo interaction_info:messageInteractionInfo unread_reactions:vector<unreadReaction> fact_check:factCheck reply_to:MessageReplyTo message_thread_id:int53 topic_id:MessageTopic self_destruct_type:MessageSelfDestructType self_destruct_in:double auto_delete_in:double via_bot_user_id:int53 sender_business_bot_user_id:int53 sender_boost_count:int32 paid_message_star_count:int53 author_signature:string media_album_id:int64 effect_id:int64 has_sensitive_content:Bool restriction_reason:string content:MessageContent reply_markup:ReplyMarkup = Message;
message id:int53 sender_id:MessageSender chat_id:int53 sending_state:MessageSendingState scheduling_state:MessageSchedulingState is_outgoing:Bool is_pinned:Bool is_from_offline:Bool can_be_saved:Bool has_timestamped_media:Bool is_channel_post:Bool is_paid_star_suggested_post:Bool is_paid_ton_suggested_post:Bool contains_unread_mention:Bool date:int32 edit_date:int32 forward_info:messageForwardInfo import_info:messageImportInfo interaction_info:messageInteractionInfo unread_reactions:vector<unreadReaction> fact_check:factCheck suggested_post_info:suggestedPostInfo reply_to:MessageReplyTo message_thread_id:int53 topic_id:MessageTopic self_destruct_type:MessageSelfDestructType self_destruct_in:double auto_delete_in:double via_bot_user_id:int53 sender_business_bot_user_id:int53 sender_boost_count:int32 paid_message_star_count:int53 author_signature:string media_album_id:int64 effect_id:int64 has_sensitive_content:Bool restriction_reason:string content:MessageContent reply_markup:ReplyMarkup = Message;
//@description Contains a list of messages @total_count Approximate total number of messages found @messages List of messages; messages may be null
@ -2375,8 +2484,8 @@ 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
//@min_display_duration The minimum amount of time the advertisement must be displayed before it can be hidden by the user, in seconds
//@max_display_duration The maximum amount of time the advertisement must be displayed 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
@ -2502,7 +2611,8 @@ reactionNotificationSettings message_reaction_source:ReactionNotificationSource
//@date Point in time (Unix timestamp) when the draft was created
//@input_message_text Content of the message draft; must be of the type inputMessageText, inputMessageVideoNote, or inputMessageVoiceNote
//@effect_id Identifier of the effect to apply to the message when it is sent; 0 if none
draftMessage reply_to:InputMessageReplyTo date:int32 input_message_text:InputMessageContent effect_id:int64 = DraftMessage;
//@suggested_post_info Information about the suggested post; may be null if none
draftMessage reply_to:InputMessageReplyTo date:int32 input_message_text:InputMessageContent effect_id:int64 suggested_post_info:inputSuggestedPostInfo = DraftMessage;
//@class ChatType @description Describes the type of chat
@ -2663,7 +2773,7 @@ videoChat group_call_id:int32 has_participants:Bool default_participant_id:Messa
//@permissions Actions that non-administrator chat members are allowed to take in the chat
//@last_message Last message in the chat; may be null if none or unknown
//@positions Positions of the chat in chat lists
//@chat_lists Chat lists to which the chat belongs. A chat can have a non-zero position in a chat list even it doesn't belong to the chat list and have no position in a chat list even it belongs to the chat list
//@chat_lists Chat lists to which the chat belongs. A chat can have a non-zero position in a chat list even if it doesn't belong to the chat list and have no position in a chat list even if it belongs to the chat list
//@message_sender_id Identifier of a user or chat that is selected to send messages in the chat; may be null if the user can't change message sender
//@block_list Block list to which the chat is added; may be null if none
//@has_protected_content True, if chat content can't be saved locally, forwarded, or copied
@ -2995,7 +3105,7 @@ forumTopicIcon color:int32 custom_emoji_id:int64 = ForumTopicIcon;
//@creator_id Identifier of the creator of the topic
//@is_general True, if the topic is the General topic list
//@is_outgoing True, if the topic was created by the current user
//@is_closed True, if the topic is closed
//@is_closed True, if the topic is closed. If the topic is closed, then the user must have can_manage_topics administrator right in the supergroup or must be the creator of the topic to send messages there
//@is_hidden True, if the topic is hidden above the topic list and closed; for General topic only
forumTopicInfo chat_id:int53 forum_topic_id:int53 message_thread_id:int53 name:string icon:forumTopicIcon creation_date:int32 creator_id:MessageSender is_general:Bool is_outgoing:Bool is_closed:Bool is_hidden:Bool = ForumTopicInfo;
@ -3447,7 +3557,8 @@ linkPreviewTypeVideo video:video cover:photo start_timestamp:int32 = LinkPreview
//@description The link is a link to a video chat
//@photo Photo of the chat with the video chat; may be null if none
//@is_live_stream True, if the video chat is expected to be a live stream in a channel or a broadcast group
linkPreviewTypeVideoChat photo:chatPhoto is_live_stream:Bool = LinkPreviewType;
//@joins_as_speaker True, if the user can use the link to join the video chat without being muted by administrators
linkPreviewTypeVideoChat photo:chatPhoto is_live_stream:Bool joins_as_speaker:Bool = LinkPreviewType;
//@description The link is a link to a video note message @video_note The video note
linkPreviewTypeVideoNote video_note:videoNote = LinkPreviewType;
@ -3708,7 +3819,7 @@ paidMediaUnsupported = PaidMedia;
//@description Describes parameters of a giveaway
//@boosted_chat_id Identifier of the supergroup or channel chat, which will be automatically boosted by the winners of the giveaway for duration of the Telegram Premium subscription,
//-or for the specified time. If the chat is a channel, then can_post_messages right is required in the channel, otherwise, the user must be an administrator in the supergroup
//-or for the specified time. If the chat is a channel, then can_post_messages administrator right is required in the channel, otherwise, the user must be an administrator in the supergroup
//@additional_chat_ids Identifiers of other supergroup or channel chats that must be subscribed by the users to be eligible for the giveaway. There can be up to getOption("giveaway_additional_chat_count_max") additional chats
//@winners_selection_date Point in time (Unix timestamp) when the giveaway is expected to be performed; must be 60-getOption("giveaway_duration_max") seconds in the future in scheduled giveaways
//@only_new_members True, if only new members of the chats will be eligible for the giveaway
@ -4327,6 +4438,14 @@ messageGiveawayWinners boosted_chat_id:int53 giveaway_message_id:int53 additiona
//@sticker A sticker to be shown in the message; may be null if unknown
messageGiftedStars gifter_user_id:int53 receiver_user_id:int53 currency:string amount:int53 cryptocurrency:string cryptocurrency_amount:int64 star_count:int53 transaction_id:string sticker:sticker = MessageContent;
//@description Toncoins were gifted to a user
//@gifter_user_id The identifier of a user that gifted Toncoins; 0 if the gift was anonymous or is outgoing
//@receiver_user_id The identifier of a user that received Toncoins; 0 if the gift is incoming
//@ton_amount The received amount of Toncoins, in the smallest units of the cryptocurrency
//@transaction_id Identifier of the transaction for Toncoin credit; for receiver only
//@sticker A sticker to be shown in the message; may be null if unknown
messageGiftedTon gifter_user_id:int53 receiver_user_id:int53 ton_amount:int53 transaction_id:string sticker:sticker = MessageContent;
//@description A Telegram Stars were received by the current user from a giveaway
//@star_count Number of Telegram Stars that were received
//@transaction_id Identifier of the transaction for Telegram Stars credit
@ -4357,17 +4476,16 @@ messageGift gift:gift sender_id:MessageSender receiver_id:MessageSender received
//@gift The gift
//@sender_id Sender of the gift; may be null for anonymous gifts
//@receiver_id Receiver of the gift
//@origin Origin of the upgraded gift
//@received_gift_id Unique identifier of the received gift for the current user; only for the receiver of the gift
//@is_upgrade True, if the gift was obtained by upgrading of a previously received gift; otherwise, this is a transferred or resold gift
//@is_saved True, if the gift is displayed on the user's or the channel's profile page; only for the receiver of the gift
//@can_be_transferred True, if the gift can be transferred to another owner; only for the receiver of the gift
//@was_transferred True, if the gift was transferred to another owner; only for the receiver of the gift
//@last_resale_star_count Number of Telegram Stars that were paid by the sender for the gift; 0 if the gift was upgraded or transferred
//@was_transferred True, if the gift has already been transferred to another owner; only for the receiver of the gift
//@transfer_star_count Number of Telegram Stars that must be paid to transfer the upgraded gift; only for the receiver of the gift
//@next_transfer_date Point in time (Unix timestamp) when the gift can be transferred to another owner; 0 if the gift can be transferred immediately or transfer isn't possible; only for the receiver of the gift
//@next_resale_date Point in time (Unix timestamp) when the gift can be resold to another user; 0 if the gift can't be resold; only for the receiver of the gift
//@export_date Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT; 0 if NFT export isn't possible; only for the receiver of the gift
messageUpgradedGift gift:upgradedGift sender_id:MessageSender receiver_id:MessageSender received_gift_id:string is_upgrade:Bool is_saved:Bool can_be_transferred:Bool was_transferred:Bool last_resale_star_count:int53 transfer_star_count:int53 next_transfer_date:int32 next_resale_date:int32 export_date:int32 = MessageContent;
messageUpgradedGift gift:upgradedGift sender_id:MessageSender receiver_id:MessageSender origin:UpgradedGiftOrigin received_gift_id:string is_saved:Bool can_be_transferred:Bool was_transferred:Bool transfer_star_count:int53 next_transfer_date:int32 next_resale_date:int32 export_date:int32 = MessageContent;
//@description A gift which purchase, upgrade or transfer were refunded
//@gift The gift
@ -4399,6 +4517,33 @@ messageChecklistTasksDone checklist_message_id:int53 marked_as_done_task_ids:vec
//@tasks List of tasks added to the checklist
messageChecklistTasksAdded checklist_message_id:int53 tasks:vector<checklistTask> = MessageContent;
//@description Approval of suggested post has failed, because the user which proposed the post had no enough funds
//@suggested_post_message_id Identifier of the message with the suggested post; can be 0 if the message was deleted
//@price Price of the suggested post
messageSuggestedPostApprovalFailed suggested_post_message_id:int53 price:SuggestedPostPrice = MessageContent;
//@description A suggested post was approved
//@suggested_post_message_id Identifier of the message with the suggested post; can be 0 if the message was deleted
//@price Price of the suggested post; may be null if the post is non-paid
//@send_date Point in time (Unix timestamp) when the post is expected to be published
messageSuggestedPostApproved suggested_post_message_id:int53 price:SuggestedPostPrice send_date:int32 = MessageContent;
//@description A suggested post was declined
//@suggested_post_message_id Identifier of the message with the suggested post; can be 0 if the message was deleted
//@comment Comment added by administrator of the channel when the post was declined
messageSuggestedPostDeclined suggested_post_message_id:int53 comment:string = MessageContent;
//@description A suggested post was published for getOption("suggested_post_lifetime_min") seconds and payment for the post was received
//@suggested_post_message_id Identifier of the message with the suggested post; can be 0 if the message was deleted
//@star_amount The amount of received Telegram Stars
//@ton_amount The amount of received Toncoins; in the smallest units of the cryptocurrency
messageSuggestedPostPaid suggested_post_message_id:int53 star_amount:starAmount ton_amount:int53 = MessageContent;
//@description A suggested post was refunded
//@suggested_post_message_id Identifier of the message with the suggested post; can be 0 if the message was deleted
//@reason Reason of the refund
messageSuggestedPostRefunded suggested_post_message_id:int53 reason:SuggestedPostRefundReason = MessageContent;
//@description A contact has registered with Telegram
messageContactRegistered = MessageContent;
@ -4553,6 +4698,7 @@ messageSelfDestructTypeImmediately = MessageSelfDestructType;
//@description Options to be used when a message is sent
//@direct_messages_chat_topic_id Unique identifier of the topic in a channel direct messages chat administered by the current user; pass 0 if the chat isn't a channel direct messages chat administered by the current user
//@suggested_post_info Information about the suggested post; pass null if none. For messages to channel direct messages chat only. Applicable only to sendMessage and addOffer
//@disable_notification Pass true to disable notification for the message
//@from_background Pass true if the message is sent from the background
//@protect_content Pass true if the content of the message must be protected from forwarding and saving; for bots only
@ -4564,7 +4710,7 @@ messageSelfDestructTypeImmediately = MessageSelfDestructType;
//@effect_id Identifier of the effect to apply to the message; pass 0 if none; applicable only to sendMessage and sendMessageAlbum in private chats
//@sending_id Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates
//@only_preview Pass true to get a fake message instead of actually sending them
messageSendOptions direct_messages_chat_topic_id:int53 disable_notification:Bool from_background:Bool protect_content:Bool allow_paid_broadcast:Bool paid_message_star_count:int53 update_order_of_installed_sticker_sets:Bool scheduling_state:MessageSchedulingState effect_id:int64 sending_id:int32 only_preview:Bool = MessageSendOptions;
messageSendOptions direct_messages_chat_topic_id:int53 suggested_post_info:inputSuggestedPostInfo disable_notification:Bool from_background:Bool protect_content:Bool allow_paid_broadcast:Bool paid_message_star_count:int53 update_order_of_installed_sticker_sets:Bool scheduling_state:MessageSchedulingState effect_id:int64 sending_id:int32 only_preview:Bool = MessageSendOptions;
//@description Options to be used when a message content is copied without reference to the original sender. Service messages, messages with messageInvoice, messagePaidMedia, messageGiveaway, or messageGiveawayWinners content can't be copied
//@send_copy True, if content of the message needs to be copied without reference to the original sender. Always true if the message is forwarded to a secret chat or is local.
@ -4737,9 +4883,12 @@ 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
//@can_add_offer True, if an offer can be added to the message using addOffer
//@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_approved True, if the message is a suggested post that can be approved by the user using approveSuggestedPost
//@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_declined True, if the message is a suggested post that can be declined by the user using declineSuggestedPost
//@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_edited True, if the message can be edited using the methods editMessageText, editMessageCaption, or editMessageReplyMarkup.
@ -4753,6 +4902,7 @@ inputMessageForwarded from_chat_id:int53 message_id:int53 in_game_share:Bool rep
//@can_be_shared_in_story True, if the message can be shared in a story using inputStoryAreaTypeMessage
//@can_edit_media True, if the message can be edited using the method editMessageMedia
//@can_edit_scheduling_state True, if scheduling state of the message can be edited
//@can_edit_suggested_post_info True, if another price or post send time can be suggested using addOffer
//@can_get_author True, if author of the message sent on behalf of a chat can be received through getMessageAuthor
//@can_get_embedding_code True, if code for message embedding can be received using getMessageEmbeddingCode
//@can_get_link True, if a link can be generated for the message using getMessageLink
@ -4769,7 +4919,7 @@ inputMessageForwarded from_chat_id:int53 message_id:int53 in_game_share:Bool rep
//@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
//@need_show_statistics True, if message statistics must be available from context menu of the message
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;
messageProperties can_add_offer:Bool can_add_tasks:Bool can_be_approved:Bool can_be_copied:Bool can_be_copied_to_secret_chat:Bool can_be_declined: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_edit_suggested_post_info: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
@ -6513,7 +6663,7 @@ premiumFeatureSavedMessagesTags = PremiumFeature;
//-and to restrict incoming messages from non-contacts using setNewChatPrivacySettings
premiumFeatureMessagePrivacy = PremiumFeature;
//@description The ability to view last seen and read times of other users even they can't view last seen or read time for the current user
//@description The ability to view last seen and read times of other users even if they can't view last seen or read time for the current user
premiumFeatureLastSeenTimes = PremiumFeature;
//@description The ability to use Business features
@ -7663,6 +7813,9 @@ internalLinkTypeMessageDraft text:formattedText contains_link:Bool = InternalLin
//@description The link is a link to the screen with information about Telegram Star balance and transactions of the current user
internalLinkTypeMyStars = InternalLinkType;
//@description The link is a link to the screen with information about Toncoin balance and transactions of the current user
internalLinkTypeMyToncoins = InternalLinkType;
//@description The link contains a request of Telegram passport data. Call getPassportAuthorizationForm with the given parameters to process the link if the link was received from outside of the application; otherwise, ignore it
//@bot_user_id User identifier of the service's bot; the corresponding user may be unknown yet
//@scope Telegram Passport element types requested by the service
@ -8339,21 +8492,26 @@ revenueWithdrawalStateFailed = RevenueWithdrawalState;
//@class ChatRevenueTransactionType @description Describes type of transaction for revenue earned from sponsored messages in a chat
//@description Describes an unsupported transaction
chatRevenueTransactionTypeUnsupported = ChatRevenueTransactionType;
//@description Describes earnings from sponsored messages in a chat in some time frame
//@start_date Point in time (Unix timestamp) when the earnings started
//@end_date Point in time (Unix timestamp) when the earnings ended
chatRevenueTransactionTypeEarnings start_date:int32 end_date:int32 = ChatRevenueTransactionType;
chatRevenueTransactionTypeSponsoredMessageEarnings start_date:int32 end_date:int32 = ChatRevenueTransactionType;
//@description Describes a withdrawal of earnings
//@description Describes earnings from a published suggested post @user_id Identifier of the user that paid for the suggested post
chatRevenueTransactionTypeSuggestedPostEarnings user_id:int53 = ChatRevenueTransactionType;
//@description Describes a withdrawal of earnings through Fragment
//@withdrawal_date Point in time (Unix timestamp) when the earnings withdrawal started
//@provider Name of the payment provider
//@state State of the withdrawal
chatRevenueTransactionTypeWithdrawal withdrawal_date:int32 provider:string state:RevenueWithdrawalState = ChatRevenueTransactionType;
chatRevenueTransactionTypeFragmentWithdrawal withdrawal_date:int32 state:RevenueWithdrawalState = ChatRevenueTransactionType;
//@description Describes a refund for failed withdrawal of earnings
//@description Describes a refund for failed withdrawal of earnings through Fragment
//@refund_date Point in time (Unix timestamp) when the transaction was refunded
//@provider Name of the payment provider
chatRevenueTransactionTypeRefund refund_date:int32 provider:string = ChatRevenueTransactionType;
chatRevenueTransactionTypeFragmentRefund refund_date:int32 = ChatRevenueTransactionType;
//@description Contains a chat revenue transactions
//@cryptocurrency Cryptocurrency in which revenue is calculated
@ -8361,8 +8519,11 @@ chatRevenueTransactionTypeRefund refund_date:int32 provider:string = ChatRevenue
//@type Type of the transaction
chatRevenueTransaction cryptocurrency:string cryptocurrency_amount:int64 type:ChatRevenueTransactionType = ChatRevenueTransaction;
//@description Contains a list of chat revenue transactions @total_count Total number of transactions @transactions List of transactions
chatRevenueTransactions total_count:int32 transactions:vector<chatRevenueTransaction> = ChatRevenueTransactions;
//@description Contains a list of chat revenue transactions
//@ton_amount The amount of owned Toncoins; in the smallest units of the cryptocurrency
//@transactions List of transactions
//@next_offset The offset for the next request. If empty, then there are no more results
chatRevenueTransactions ton_amount:int53 transactions:vector<chatRevenueTransaction> next_offset:string = ChatRevenueTransactions;
//@description Contains information about Telegram Stars earned by a bot or a chat
@ -8491,6 +8652,12 @@ updateMessageUnreadReactions chat_id:int53 message_id:int53 unread_reactions:vec
//@fact_check The new fact-check
updateMessageFactCheck chat_id:int53 message_id:int53 fact_check:factCheck = Update;
//@description Information about suggested post of a message was changed
//@chat_id Chat identifier
//@message_id Message identifier
//@suggested_post_info The new information about the suggested post
updateMessageSuggestedPostInfo chat_id:int53 message_id:int53 suggested_post_info:suggestedPostInfo = Update;
//@description A message with a live location was viewed. When the update is received, the application is expected to update the live location
//@chat_id Identifier of the chat with the live location message
//@message_id Identifier of the message with live location
@ -8809,7 +8976,7 @@ updateGroupCallParticipant group_call_id:int32 participant:groupCallParticipant
//@description The list of group call participants that can send and receive encrypted call data has changed; for group calls not bound to a chat only
//@group_call_id Identifier of the group call
//@participant_user_ids New list of group call participant user identifiers. The identifiers may be invalid or the corresponding users may be unknown.
//-The participants must be shown in the list of group call participants even there is no information about them
//-The participants must be shown in the list of group call participants even if there is no information about them
updateGroupCallParticipants group_call_id:int32 participant_user_ids:vector<int64> = Update;
//@description The verification state of an encrypted group call has changed; for group calls not bound to a chat only
@ -8958,6 +9125,9 @@ updateActiveLiveLocationMessages messages:vector<message> = Update;
//@description The number of Telegram Stars owned by the current user has changed @star_amount The new amount of owned Telegram Stars
updateOwnedStarCount star_amount:starAmount = Update;
//@description The number of Toncoins owned by the current user has changed @ton_amount The new amount of owned Toncoins; in the smallest units of the cryptocurrency
updateOwnedTonCount ton_amount:int53 = Update;
//@description The revenue earned from sponsored messages in a chat has changed. If chat revenue screen is opened, then getChatRevenueTransactions may be called to fetch new transactions
//@chat_id Identifier of the chat
//@revenue_amount New amount of earned revenue
@ -9403,10 +9573,12 @@ getMessage chat_id:int53 message_id:int53 = Message;
//@message_id Identifier of the message to get
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,
//-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
//@description Returns information about a non-bundled message that is replied by a given message. Also, returns the pinned message for messagePinMessage,
//-the game message for messageGameScore, the invoice message for messagePaymentSuccessful, the message with a previously set same background for messageChatSetBackground,
//-the giveaway message for messageGiveawayCompleted, the checklist message for messageChecklistTasksDone, messageChecklistTasksAdded, the message with suggested post information
//-for messageSuggestedPostApprovalFailed, messageSuggestedPostApproved, messageSuggestedPostDeclined, messageSuggestedPostPaid, messageSuggestedPostRefunded,
//-the message with the regular gift that was upgraded for messageUpgradedGift with origin of the type upgradedGiftOriginUpgrade,
//-and the topic creation message for topic messages without non-bundled replied message. Returns a 404 error if the message doesn't exist
//@chat_id Identifier of the chat the message belongs to
//@message_id Identifier of the reply message
getRepliedMessage chat_id:int53 message_id:int53 = Message;
@ -9563,8 +9735,8 @@ getDirectMessagesChatTopic chat_id:int53 topic_id:int53 = DirectMessagesChatTopi
//@chat_id Chat identifier of the channel direct messages chat
//@topic_id Identifier of the topic which messages will be fetched
//@from_message_id Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message
//@offset Specify 0 to get results from exactly the message from_message_id or a negative offset up to 99 to get additionally some newer messages
//@limit The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than or equal to -offset.
//@offset Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages
//@limit The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset.
//-For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
getDirectMessagesChatTopicHistory chat_id:int53 topic_id:int53 from_message_id:int53 offset:int32 limit:int32 = Messages;
@ -9628,8 +9800,8 @@ loadSavedMessagesTopics limit:int32 = Ok;
//@description Returns messages in a Saved Messages topic. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id)
//@saved_messages_topic_id Identifier of Saved Messages topic which messages will be fetched
//@from_message_id Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message
//@offset Specify 0 to get results from exactly the message from_message_id or a negative offset up to 99 to get additionally some newer messages
//@limit The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than or equal to -offset.
//@offset Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages
//@limit The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset.
//-For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
getSavedMessagesTopicHistory saved_messages_topic_id:int53 from_message_id:int53 offset:int32 limit:int32 = Messages;
@ -9667,8 +9839,8 @@ getGroupsInCommon user_id:int53 offset_chat_id:int53 limit:int32 = Chats;
//-For optimal performance, the number of returned messages is chosen by TDLib. This is an offline method if only_local is true
//@chat_id Chat identifier
//@from_message_id Identifier of the message starting from which history must be fetched; use 0 to get results from the last message
//@offset Specify 0 to get results from exactly the message from_message_id or a negative offset up to 99 to get additionally some newer messages
//@limit The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than or equal to -offset.
//@offset Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages
//@limit The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset.
//-For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
//@only_local Pass true to get only messages that are available without sending network requests
getChatHistory chat_id:int53 from_message_id:int53 offset:int32 limit:int32 only_local:Bool = Messages;
@ -9678,8 +9850,8 @@ getChatHistory chat_id:int53 from_message_id:int53 offset:int32 limit:int32 only
//@chat_id Chat identifier
//@message_id Message identifier, which thread history needs to be returned
//@from_message_id Identifier of the message starting from which history must be fetched; use 0 to get results from the last message
//@offset Specify 0 to get results from exactly the message from_message_id or a negative offset up to 99 to get additionally some newer messages
//@limit The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than or equal to -offset.
//@offset Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages
//@limit The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset.
//-For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
getMessageThreadHistory chat_id:int53 message_id:int53 from_message_id:int53 offset:int32 limit:int32 = Messages;
@ -9702,8 +9874,8 @@ deleteChat chat_id:int53 = Ok;
//@query Query to search for
//@sender_id Identifier of the sender of messages to search for; pass null to search for messages from any sender. Not supported in secret chats
//@from_message_id Identifier of the message starting from which history must be fetched; use 0 to get results from the last message
//@offset Specify 0 to get results from exactly the message from_message_id or a negative offset to get the specified message and some newer messages
//@limit The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than -offset.
//@offset Specify 0 to get results from exactly the message from_message_id or a negative number to get the specified message and some newer messages
//@limit The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than -offset.
//-For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
//@filter Additional filter for messages to search; pass null to search for all messages
searchChatMessages chat_id:int53 topic_id:MessageTopic query:string sender_id:MessageSender from_message_id:int53 offset:int32 limit:int32 filter:SearchMessagesFilter = FoundChatMessages;
@ -9735,8 +9907,8 @@ searchSecretMessages chat_id:int53 query:string offset:string limit:int32 filter
//@tag Tag to search for; pass null to return all suitable messages
//@query Query to search for
//@from_message_id Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message
//@offset Specify 0 to get results from exactly the message from_message_id or a negative offset to get the specified message and some newer messages
//@limit The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than -offset.
//@offset Specify 0 to get results from exactly the message from_message_id or a negative number to get the specified message and some newer messages
//@limit The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than -offset.
//-For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
searchSavedMessages saved_messages_topic_id:int53 tag:ReactionType query:string from_message_id:int53 offset:int32 limit:int32 = FoundChatMessages;
@ -10247,7 +10419,7 @@ setBusinessAccountBio business_connection_id:string bio:string = Ok;
//@description Changes a profile photo of a business account; for bots only
//@business_connection_id Unique identifier of business connection
//@photo Profile photo to set; pass null to remove the photo
//@is_public Pass true to set the public photo, which will be visible even the main photo is hidden by privacy settings
//@is_public Pass true to set the public photo, which will be visible even if the main photo is hidden by privacy settings
setBusinessAccountProfilePhoto business_connection_id:string photo:InputChatPhoto is_public:Bool = Ok;
//@description Changes the editable username of a business account; for bots only
@ -10340,7 +10512,7 @@ getForumTopicDefaultIcons = Stickers;
//@icon Icon of the topic. Icon color must be one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F. Telegram Premium users can use any custom emoji as topic icon, other users can use only a custom emoji returned by getForumTopicDefaultIcons
createForumTopic chat_id:int53 name:string icon:forumTopicIcon = ForumTopicInfo;
//@description Edits title and icon of a topic in a forum supergroup chat; requires can_manage_topics right in the supergroup unless the user is creator of the topic
//@description Edits title and icon of a topic in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup unless the user is creator of the topic
//@chat_id Identifier of the chat
//@message_thread_id Message thread identifier of the forum topic
//@name New name of the topic; 0-128 characters. If empty, the previous topic name is kept
@ -10369,24 +10541,24 @@ getForumTopics chat_id:int53 query:string offset_date:int32 offset_message_id:in
//@notification_settings New notification settings for the forum topic. If the topic is muted for more than 366 days, it is considered to be muted forever
setForumTopicNotificationSettings chat_id:int53 message_thread_id:int53 notification_settings:chatNotificationSettings = Ok;
//@description Toggles whether a topic is closed in a forum supergroup chat; requires can_manage_topics right in the supergroup unless the user is creator of the topic
//@description Toggles whether a topic is closed in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup unless the user is creator of the topic
//@chat_id Identifier of the chat
//@message_thread_id Message thread identifier of the forum topic
//@is_closed Pass true to close the topic; pass false to reopen it
toggleForumTopicIsClosed chat_id:int53 message_thread_id:int53 is_closed:Bool = Ok;
//@description Toggles whether a General topic is hidden in a forum supergroup chat; requires can_manage_topics right in the supergroup
//@description Toggles whether a General topic is hidden in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup
//@chat_id Identifier of the chat
//@is_hidden Pass true to hide and close the General topic; pass false to unhide it
toggleGeneralForumTopicIsHidden chat_id:int53 is_hidden:Bool = Ok;
//@description Changes the pinned state of a forum topic; requires can_manage_topics right in the supergroup. There can be up to getOption("pinned_forum_topic_count_max") pinned forum topics
//@description Changes the pinned state of a forum topic; requires can_manage_topics administrator right in the supergroup. There can be up to getOption("pinned_forum_topic_count_max") pinned forum topics
//@chat_id Chat identifier
//@message_thread_id Message thread identifier of the forum topic
//@is_pinned Pass true to pin the topic; pass false to unpin it
toggleForumTopicIsPinned chat_id:int53 message_thread_id:int53 is_pinned:Bool = Ok;
//@description Changes the order of pinned forum topics; requires can_manage_topics right in the supergroup @chat_id Chat identifier @message_thread_ids The new list of pinned forum topics
//@description Changes the order of pinned forum topics; requires can_manage_topics administrator right in the supergroup @chat_id Chat identifier @message_thread_ids The new list of pinned forum topics
setPinnedForumTopics chat_id:int53 message_thread_ids:vector<int53> = Ok;
//@description Deletes all messages in a forum topic; requires can_delete_messages administrator right in the supergroup unless the user is creator of the topic, the topic has no messages from other users and has at most 11 messages
@ -10773,7 +10945,7 @@ closeChat chat_id:int53 = Ok;
//@chat_id Chat identifier
//@message_ids The identifiers of the messages being viewed
//@source Source of the message view; pass null to guess the source based on chat open state
//@force_read Pass true to mark as read the specified messages even the chat is closed
//@force_read Pass true to mark as read the specified messages even if the chat is closed
viewMessages chat_id:int53 message_ids:vector<int53> source:MessageSource force_read:Bool = Ok;
//@description Informs TDLib that the message content has been opened (e.g., the user has opened a photo, video, document, location or venue, or has listened to an audio file or voice note message).
@ -11041,7 +11213,7 @@ setChatDirectMessagesGroup chat_id:int53 is_enabled:Bool paid_message_star_count
//@description Changes the location of a chat. Available only for some location-based supergroups, use supergroupFullInfo.can_set_location to check whether the method is allowed to use @chat_id Chat identifier @location New location for the chat; must be valid and not null
setChatLocation chat_id:int53 location:chatLocation = Ok;
//@description Changes the slow mode delay of a chat. Available only for supergroups; requires can_restrict_members right @chat_id Chat identifier @slow_mode_delay New slow mode delay for the chat, in seconds; must be one of 0, 10, 30, 60, 300, 900, 3600
//@description Changes the slow mode delay of a chat. Available only for supergroups; requires can_restrict_members administrator right @chat_id Chat identifier @slow_mode_delay New slow mode delay for the chat, in seconds; must be one of 0, 10, 30, 60, 300, 900, 3600
setChatSlowModeDelay chat_id:int53 slow_mode_delay:int32 = Ok;
//@description Pins a message in a chat. A message can be pinned only if messageProperties.can_be_pinned
@ -11180,11 +11352,11 @@ getStory story_poster_chat_id:int53 story_id:int32 only_local:Bool = Story;
//@description Returns supergroup and channel chats in which the current user has the right to post stories. The chats must be rechecked with canPostStory before actually trying to post a story there
getChatsToPostStories = Chats;
//@description Checks whether the current user can post a story on behalf of a chat; requires can_post_stories right for supergroup and channel chats
//@description Checks whether the current user can post a story on behalf of a chat; requires can_post_stories administrator right for supergroup and channel chats
//@chat_id Chat identifier. Pass Saved Messages chat identifier when posting a story on behalf of the current user
canPostStory chat_id:int53 = CanPostStoryResult;
//@description Posts a new story on behalf of a chat; requires can_post_stories right for supergroup and channel chats. Returns a temporary story
//@description Posts a new story on behalf of a chat; requires can_post_stories administrator right for supergroup and channel chats. Returns a temporary story
//@chat_id Identifier of the chat that will post the story. Pass Saved Messages chat identifier when posting a story on behalf of the current user
//@content Content of the story
//@areas Clickable rectangle areas to be shown on the story media; pass null if none
@ -11248,7 +11420,7 @@ getChatActiveStories chat_id:int53 = ChatActiveStories;
//-For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit
getChatPostedToChatPageStories chat_id:int53 from_story_id:int32 limit:int32 = Stories;
//@description Returns the list of all stories posted by the given chat; requires can_edit_stories right in the chat.
//@description Returns the list of all stories posted by the given chat; requires can_edit_stories administrator right in the chat.
//-The stories are returned in reverse chronological order (i.e., in order of decreasing story_id). For optimal performance, the number of returned stories is chosen by TDLib
//@chat_id Chat identifier
//@from_story_id Identifier of the story starting from which stories must be returned; use 0 to get results from the last story
@ -11256,7 +11428,7 @@ getChatPostedToChatPageStories chat_id:int53 from_story_id:int32 limit:int32 = S
//-For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit
getChatArchivedStories chat_id:int53 from_story_id:int32 limit:int32 = Stories;
//@description Changes the list of pinned stories on a chat page; requires can_edit_stories right in the chat
//@description Changes the list of pinned stories on a chat page; requires can_edit_stories administrator right in the chat
//@chat_id Identifier of the chat that posted the stories
//@story_ids New list of pinned stories. All stories must be posted to the chat page first. There can be up to getOption("pinned_story_count_max") pinned stories on a chat page
setChatPinnedStories chat_id:int53 story_ids:vector<int32> = Ok;
@ -11391,7 +11563,7 @@ getThemedChatEmojiStatuses = EmojiStatusCustomEmojis;
//@description Returns default emoji statuses for chats
getDefaultChatEmojiStatuses = EmojiStatusCustomEmojis;
//@description Returns the list of emoji statuses, which can't be used as chat emoji status, even they are from a sticker set with is_allowed_as_chat_emoji_status == true
//@description Returns the list of emoji statuses, which can't be used as chat emoji status, even if they are from a sticker set with is_allowed_as_chat_emoji_status == true
getDisallowedChatEmojiStatuses = EmojiStatusCustomEmojis;
@ -11602,6 +11774,28 @@ processChatJoinRequest chat_id:int53 user_id:int53 approve:Bool = Ok;
processChatJoinRequests chat_id:int53 invite_link:string approve:Bool = Ok;
//@description Approves a suggested post in a channel direct messages chat
//@chat_id Chat identifier of the channel direct messages chat
//@message_id Identifier of the message with the suggested post. Use messageProperties.can_be_approved to check whether the suggested post can be approved
//@send_date Point in time (Unix timestamp) when the post is expected to be published; pass 0 if the date has already been chosen. If specified,
//-then the date must be in the future, but at most getOption("suggested_post_send_delay_max") seconds in the future
approveSuggestedPost chat_id:int53 message_id:int53 send_date:int32 = Ok;
//@description Declines a suggested post in a channel direct messages chat
//@chat_id Chat identifier of the channel direct messages chat
//@message_id Identifier of the message with the suggested post. Use messageProperties.can_be_declined to check whether the suggested post can be declined
//@comment Comment for the creator of the suggested post; 0-128 characters
declineSuggestedPost chat_id:int53 message_id:int53 comment:string = Ok;
//@description Sent a suggested post based on a previously sent message in a channel direct messages chat. Can be also used to suggest price or time change for an existing suggested post.
//-Returns the sent message
//@chat_id Identifier of the channel direct messages chat
//@message_id Identifier of the message in the chat which will be sent as suggested post. Use messageProperties.can_add_offer to check whether an offer can be added
//-or messageProperties.can_edit_suggested_post_info to check whether price or time of sending of the post can be changed
//@options Options to be used to send the message. New information about the suggested post must always be specified
addOffer chat_id:int53 message_id:int53 options:messageSendOptions = Message;
//@description Creates a new call
//@user_id Identifier of the user to be called
//@protocol The call protocols supported by the application
@ -12078,7 +12272,7 @@ getWebPageInstantView url:string only_local:Bool = WebPageInstantView;
//@description Changes a profile photo for the current user
//@photo Profile photo to set
//@is_public Pass true to set the public photo, which will be visible even the main photo is hidden by privacy settings
//@is_public Pass true to set the public photo, which will be visible even if the main photo is hidden by privacy settings
setProfilePhoto photo:InputChatPhoto is_public:Bool = Ok;
//@description Deletes a profile photo @profile_photo_id Identifier of the profile photo to delete
@ -12541,7 +12735,7 @@ getAvailableGifts = AvailableGifts;
//@pay_for_upgrade Pass true to additionally pay for the gift upgrade and allow the receiver to upgrade it for free
sendGift gift_id:int64 owner_id:MessageSender text:formattedText is_private:Bool pay_for_upgrade:Bool = Ok;
//@description Sells a gift for Telegram Stars
//@description Sells a gift for Telegram Stars; requires owner privileges for gifts owned by a chat
//@business_connection_id Unique identifier of business connection on behalf of which to send the request; for bots only
//@received_gift_id Identifier of the gift
sellGift business_connection_id:string received_gift_id:string = Ok;
@ -12615,7 +12809,7 @@ getUpgradedGiftWithdrawalUrl received_gift_id:string password:string = HttpUrl;
//-The current user will receive getOption("gift_resale_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for the gift
setGiftResalePrice received_gift_id:string resale_star_count:int53 = Ok;
//@description Returns upgraded gifts that can be bought from other owners
//@description Returns upgraded gifts that can be bought from other owners using sendResoldGift
//@gift_id Identifier of the regular gift that was upgraded to a unique gift
//@order Order in which the results will be sorted
//@attributes Attributes used to filter received gifts. If multiple attributes of the same type are specified, then all of them are allowed.
@ -12823,9 +13017,15 @@ getChatRevenueWithdrawalUrl chat_id:int53 password:string = HttpUrl;
//@description Returns the list of revenue transactions for a chat. Currently, this method can be used only
//-for channels if supergroupFullInfo.can_get_revenue_statistics == true or bots if userFullInfo.bot_info.can_get_revenue_statistics == true
//@chat_id Chat identifier
//@offset Number of transactions to skip
//@limit The maximum number of transactions to be returned; up to 200
getChatRevenueTransactions chat_id:int53 offset:int32 limit:int32 = ChatRevenueTransactions;
//@offset Offset of the first transaction to return as received from the previous request; use empty string to get the first chunk of results
//@limit The maximum number of transactions to be returned; up to 100
getChatRevenueTransactions chat_id:int53 offset:string limit:int32 = ChatRevenueTransactions;
//@description Returns the list of Toncoin transactions of the current user
//@direction Direction of the transactions to receive; pass null to get all transactions
//@offset Offset of the first transaction to return as received from the previous request; use empty string to get the first chunk of results
//@limit The maximum number of transactions to return
getTonTransactions direction:TransactionDirection offset:string limit:int32 = TonTransactions;
//@description Returns detailed Telegram Star revenue statistics
@ -12835,7 +13035,7 @@ getStarRevenueStatistics owner_id:MessageSender is_dark:Bool = StarRevenueStatis
//@description Returns a URL for Telegram Star withdrawal
//@owner_id Identifier of the owner of the Telegram Stars; can be identifier of the current user, an owned bot, or an owned supergroup or channel chat
//@star_count The number of Telegram Stars to withdraw. Must be at least getOption("star_withdrawal_count_min")
//@star_count The number of Telegram Stars to withdraw; must be between getOption("star_withdrawal_count_min") and getOption("star_withdrawal_count_max")
//@password The 2-step verification password of the current user
getStarWithdrawalUrl owner_id:MessageSender star_count:int53 password:string = HttpUrl;
@ -13138,7 +13338,7 @@ getStarGiveawayPaymentOptions = StarGiveawayPaymentOptions;
//@direction Direction of the transactions to receive; pass null to get all transactions
//@offset Offset of the first transaction to return as received from the previous request; use empty string to get the first chunk of results
//@limit The maximum number of transactions to return
getStarTransactions owner_id:MessageSender subscription_id:string direction:StarTransactionDirection offset:string limit:int32 = StarTransactions;
getStarTransactions owner_id:MessageSender subscription_id:string direction:TransactionDirection offset:string limit:int32 = StarTransactions;
//@description Returns the list of Telegram Star subscriptions for the current user
//@only_expiring Pass true to receive only expiring subscriptions for which there are no enough Telegram Stars to extend