mirror of
https://github.com/c0re100/gotdlib.git
synced 2026-02-22 04:30:17 +01:00
Update to TDLib 1.8.16
This commit is contained in:
parent
7a1c7f37a2
commit
0b8a2f54dd
4 changed files with 2089 additions and 109 deletions
|
|
@ -3218,7 +3218,7 @@ type SendInlineQueryResultMessageRequest struct {
|
|||
Options *MessageSendOptions `json:"options"`
|
||||
// Identifier of the inline query
|
||||
QueryId JsonInt64 `json:"query_id"`
|
||||
// Identifier of the inline result
|
||||
// Identifier of the inline query result
|
||||
ResultId string `json:"result_id"`
|
||||
// Pass true to hide the bot, via which the message is sent. Can be used only for bots getOption("animation_search_bot_username"), getOption("photo_search_bot_username"), and getOption("venue_search_bot_username")
|
||||
HideViaBot bool `json:"hide_via_bot"`
|
||||
|
|
@ -5110,7 +5110,7 @@ type GetInlineQueryResultsRequest struct {
|
|||
UserLocation *Location `json:"user_location"`
|
||||
// Text of the query
|
||||
Query string `json:"query"`
|
||||
// Offset of the first entry to return
|
||||
// Offset of the first entry to return; use empty string to get the first chunk of results
|
||||
Offset string `json:"offset"`
|
||||
}
|
||||
|
||||
|
|
@ -8416,14 +8416,53 @@ func (client *Client) GetStory(req *GetStoryRequest) (*Story, error) {
|
|||
return UnmarshalStory(result.Data)
|
||||
}
|
||||
|
||||
// Checks whether the current user can send a story
|
||||
func (client *Client) CanSendStory() (CanSendStoryResult, error) {
|
||||
result, err := client.Send(Request{
|
||||
meta: meta{
|
||||
Type: "canSendStory",
|
||||
},
|
||||
Data: map[string]interface{}{},
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if result.Type == "error" {
|
||||
return nil, buildResponseError(result.Data)
|
||||
}
|
||||
|
||||
switch result.Type {
|
||||
case TypeCanSendStoryResultOk:
|
||||
return UnmarshalCanSendStoryResultOk(result.Data)
|
||||
|
||||
case TypeCanSendStoryResultPremiumNeeded:
|
||||
return UnmarshalCanSendStoryResultPremiumNeeded(result.Data)
|
||||
|
||||
case TypeCanSendStoryResultActiveStoryLimitExceeded:
|
||||
return UnmarshalCanSendStoryResultActiveStoryLimitExceeded(result.Data)
|
||||
|
||||
case TypeCanSendStoryResultWeeklyLimitExceeded:
|
||||
return UnmarshalCanSendStoryResultWeeklyLimitExceeded(result.Data)
|
||||
|
||||
case TypeCanSendStoryResultMonthlyLimitExceeded:
|
||||
return UnmarshalCanSendStoryResultMonthlyLimitExceeded(result.Data)
|
||||
|
||||
default:
|
||||
return nil, errors.New("invalid type")
|
||||
}
|
||||
}
|
||||
|
||||
type SendStoryRequest struct {
|
||||
// Content of the story
|
||||
Content InputStoryContent `json:"content"`
|
||||
// Clickable rectangle areas to be shown on the story media; pass null if none
|
||||
Areas *InputStoryAreas `json:"areas"`
|
||||
// Story caption; pass null to use an empty caption; 0-getOption("story_caption_length_max") characters
|
||||
Caption *FormattedText `json:"caption"`
|
||||
// The privacy settings for the story
|
||||
PrivacySettings StoryPrivacySettings `json:"privacy_settings"`
|
||||
// Period after which the story is moved to archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, 2 * 86400, 3 * 86400, or 7 * 86400 for Telegram Premium users, and 86400 otherwise
|
||||
// Period after which the story is moved to archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 for Telegram Premium users, and 86400 otherwise
|
||||
ActivePeriod int32 `json:"active_period"`
|
||||
// Pass true to keep the story accessible after expiration
|
||||
IsPinned bool `json:"is_pinned"`
|
||||
|
|
@ -8431,7 +8470,7 @@ type SendStoryRequest struct {
|
|||
ProtectContent bool `json:"protect_content"`
|
||||
}
|
||||
|
||||
// Sends a new story. Returns a temporary story with identifier 0
|
||||
// Sends a new story. Returns a temporary story
|
||||
func (client *Client) SendStory(req *SendStoryRequest) (*Story, error) {
|
||||
result, err := client.Send(Request{
|
||||
meta: meta{
|
||||
|
|
@ -8439,6 +8478,7 @@ func (client *Client) SendStory(req *SendStoryRequest) (*Story, error) {
|
|||
},
|
||||
Data: map[string]interface{}{
|
||||
"content": req.Content,
|
||||
"areas": req.Areas,
|
||||
"caption": req.Caption,
|
||||
"privacy_settings": req.PrivacySettings,
|
||||
"active_period": req.ActivePeriod,
|
||||
|
|
@ -8462,6 +8502,8 @@ type EditStoryRequest struct {
|
|||
StoryId int32 `json:"story_id"`
|
||||
// New content of the story; pass null to keep the current content
|
||||
Content InputStoryContent `json:"content"`
|
||||
// New clickable rectangle areas to be shown on the story media; pass null to keep the current areas. Areas can't be edited if story content isn't changed
|
||||
Areas *InputStoryAreas `json:"areas"`
|
||||
// New story caption; pass null to keep the current caption
|
||||
Caption *FormattedText `json:"caption"`
|
||||
}
|
||||
|
|
@ -8475,6 +8517,7 @@ func (client *Client) EditStory(req *EditStoryRequest) (*Ok, error) {
|
|||
Data: map[string]interface{}{
|
||||
"story_id": req.StoryId,
|
||||
"content": req.Content,
|
||||
"areas": req.Areas,
|
||||
"caption": req.Caption,
|
||||
},
|
||||
})
|
||||
|
|
@ -8792,24 +8835,94 @@ func (client *Client) CloseStory(req *CloseStoryRequest) (*Ok, error) {
|
|||
return UnmarshalOk(result.Data)
|
||||
}
|
||||
|
||||
type GetStoryAvailableReactionsRequest struct {
|
||||
// Number of reaction per row, 5-25
|
||||
RowSize int32 `json:"row_size"`
|
||||
}
|
||||
|
||||
// Returns reactions, which can be chosen for a story
|
||||
func (client *Client) GetStoryAvailableReactions(req *GetStoryAvailableReactionsRequest) (*AvailableReactions, error) {
|
||||
result, err := client.Send(Request{
|
||||
meta: meta{
|
||||
Type: "getStoryAvailableReactions",
|
||||
},
|
||||
Data: map[string]interface{}{
|
||||
"row_size": req.RowSize,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if result.Type == "error" {
|
||||
return nil, buildResponseError(result.Data)
|
||||
}
|
||||
|
||||
return UnmarshalAvailableReactions(result.Data)
|
||||
}
|
||||
|
||||
type SetStoryReactionRequest struct {
|
||||
// The identifier of the sender of the story
|
||||
StorySenderChatId int64 `json:"story_sender_chat_id"`
|
||||
// The identifier of the story
|
||||
StoryId int32 `json:"story_id"`
|
||||
// Type of the reaction to set; pass null to remove the reaction. `reactionTypeCustomEmoji` reactions can be used only by Telegram Premium users
|
||||
ReactionType ReactionType `json:"reaction_type"`
|
||||
// Pass true if the reaction needs to be added to recent reactions
|
||||
UpdateRecentReactions bool `json:"update_recent_reactions"`
|
||||
}
|
||||
|
||||
// Changes chosen reaction on a story
|
||||
func (client *Client) SetStoryReaction(req *SetStoryReactionRequest) (*Ok, error) {
|
||||
result, err := client.Send(Request{
|
||||
meta: meta{
|
||||
Type: "setStoryReaction",
|
||||
},
|
||||
Data: map[string]interface{}{
|
||||
"story_sender_chat_id": req.StorySenderChatId,
|
||||
"story_id": req.StoryId,
|
||||
"reaction_type": req.ReactionType,
|
||||
"update_recent_reactions": req.UpdateRecentReactions,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if result.Type == "error" {
|
||||
return nil, buildResponseError(result.Data)
|
||||
}
|
||||
|
||||
return UnmarshalOk(result.Data)
|
||||
}
|
||||
|
||||
type GetStoryViewersRequest struct {
|
||||
// Story identifier
|
||||
StoryId int32 `json:"story_id"`
|
||||
// A viewer from which to return next viewers; pass null to get results from the beginning
|
||||
OffsetViewer *MessageViewer `json:"offset_viewer"`
|
||||
// The maximum number of story viewers to return For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit
|
||||
// Query to search for in names and usernames of the viewers; may be empty to get all relevant viewers
|
||||
Query string `json:"query"`
|
||||
// Pass true to get only contacts; pass false to get all relevant viewers
|
||||
OnlyContacts bool `json:"only_contacts"`
|
||||
// Pass true to get viewers with reaction first; pass false to get viewers sorted just by view_date
|
||||
PreferWithReaction bool `json:"prefer_with_reaction"`
|
||||
// Offset of the first entry 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 story viewers to return
|
||||
Limit int32 `json:"limit"`
|
||||
}
|
||||
|
||||
// Returns viewers of a recent outgoing story. The method can be called if story.can_get_viewers == true. The views are returned in a reverse chronological order (i.e., in order of decreasing view_date) For optimal performance, the number of returned stories is chosen by TDLib
|
||||
func (client *Client) GetStoryViewers(req *GetStoryViewersRequest) (*MessageViewers, error) {
|
||||
// Returns viewers of a story. The method can be called if story.can_get_viewers == true
|
||||
func (client *Client) GetStoryViewers(req *GetStoryViewersRequest) (*StoryViewers, error) {
|
||||
result, err := client.Send(Request{
|
||||
meta: meta{
|
||||
Type: "getStoryViewers",
|
||||
},
|
||||
Data: map[string]interface{}{
|
||||
"story_id": req.StoryId,
|
||||
"offset_viewer": req.OffsetViewer,
|
||||
"query": req.Query,
|
||||
"only_contacts": req.OnlyContacts,
|
||||
"prefer_with_reaction": req.PreferWithReaction,
|
||||
"offset": req.Offset,
|
||||
"limit": req.Limit,
|
||||
},
|
||||
})
|
||||
|
|
@ -8821,7 +8934,7 @@ func (client *Client) GetStoryViewers(req *GetStoryViewersRequest) (*MessageView
|
|||
return nil, buildResponseError(result.Data)
|
||||
}
|
||||
|
||||
return UnmarshalMessageViewers(result.Data)
|
||||
return UnmarshalStoryViewers(result.Data)
|
||||
}
|
||||
|
||||
type ReportStoryRequest struct {
|
||||
|
|
@ -8859,6 +8972,25 @@ func (client *Client) ReportStory(req *ReportStoryRequest) (*Ok, error) {
|
|||
return UnmarshalOk(result.Data)
|
||||
}
|
||||
|
||||
// Activates stealth mode for stories, which hides all views of stories from the current user in the last "story_stealth_mode_past_period" seconds and for the next "story_stealth_mode_future_period" seconds; for Telegram Premium users only
|
||||
func (client *Client) ActivateStoryStealthMode() (*Ok, error) {
|
||||
result, err := client.Send(Request{
|
||||
meta: meta{
|
||||
Type: "activateStoryStealthMode",
|
||||
},
|
||||
Data: map[string]interface{}{},
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if result.Type == "error" {
|
||||
return nil, buildResponseError(result.Data)
|
||||
}
|
||||
|
||||
return UnmarshalOk(result.Data)
|
||||
}
|
||||
|
||||
type GetAttachmentMenuBotRequest struct {
|
||||
// Bot's user identifier
|
||||
BotUserId int64 `json:"bot_user_id"`
|
||||
|
|
@ -11198,22 +11330,22 @@ func (client *Client) GetGroupCallStreamSegment(req *GetGroupCallStreamSegmentRe
|
|||
return UnmarshalFilePart(result.Data)
|
||||
}
|
||||
|
||||
type ToggleMessageSenderIsBlockedRequest struct {
|
||||
type SetMessageSenderBlockListRequest struct {
|
||||
// Identifier of a message sender to block/unblock
|
||||
SenderId MessageSender `json:"sender_id"`
|
||||
// New value of is_blocked
|
||||
IsBlocked bool `json:"is_blocked"`
|
||||
// New block list for the message sender; pass null to unblock the message sender
|
||||
BlockList BlockList `json:"block_list"`
|
||||
}
|
||||
|
||||
// Changes the block state of a message sender. Currently, only users and supergroup chats can be blocked
|
||||
func (client *Client) ToggleMessageSenderIsBlocked(req *ToggleMessageSenderIsBlockedRequest) (*Ok, error) {
|
||||
// Changes the block list of a message sender. Currently, only users and supergroup chats can be blocked
|
||||
func (client *Client) SetMessageSenderBlockList(req *SetMessageSenderBlockListRequest) (*Ok, error) {
|
||||
result, err := client.Send(Request{
|
||||
meta: meta{
|
||||
Type: "toggleMessageSenderIsBlocked",
|
||||
Type: "setMessageSenderBlockList",
|
||||
},
|
||||
Data: map[string]interface{}{
|
||||
"sender_id": req.SenderId,
|
||||
"is_blocked": req.IsBlocked,
|
||||
"block_list": req.BlockList,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
|
|
@ -11263,6 +11395,8 @@ func (client *Client) BlockMessageSenderFromReplies(req *BlockMessageSenderFromR
|
|||
}
|
||||
|
||||
type GetBlockedMessageSendersRequest struct {
|
||||
// Block list from which to return users
|
||||
BlockList BlockList `json:"block_list"`
|
||||
// Number of users and chats to skip in the result; must be non-negative
|
||||
Offset int32 `json:"offset"`
|
||||
// The maximum number of users and chats to return; up to 100
|
||||
|
|
@ -11276,6 +11410,7 @@ func (client *Client) GetBlockedMessageSenders(req *GetBlockedMessageSendersRequ
|
|||
Type: "getBlockedMessageSenders",
|
||||
},
|
||||
Data: map[string]interface{}{
|
||||
"block_list": req.BlockList,
|
||||
"offset": req.Offset,
|
||||
"limit": req.Limit,
|
||||
},
|
||||
|
|
@ -13166,7 +13301,7 @@ func (client *Client) GetMenuButton(req *GetMenuButtonRequest) (*BotMenuButton,
|
|||
}
|
||||
|
||||
type SetDefaultGroupAdministratorRightsRequest struct {
|
||||
// Default administrator rights for adding the bot to basic group and supergroup chats; may be null
|
||||
// Default administrator rights for adding the bot to basic group and supergroup chats; pass null to remove default rights
|
||||
DefaultGroupAdministratorRights *ChatAdministratorRights `json:"default_group_administrator_rights"`
|
||||
}
|
||||
|
||||
|
|
@ -13192,7 +13327,7 @@ func (client *Client) SetDefaultGroupAdministratorRights(req *SetDefaultGroupAdm
|
|||
}
|
||||
|
||||
type SetDefaultChannelAdministratorRightsRequest struct {
|
||||
// Default administrator rights for adding the bot to channels; may be null
|
||||
// Default administrator rights for adding the bot to channels; pass null to remove default rights
|
||||
DefaultChannelAdministratorRights *ChatAdministratorRights `json:"default_channel_administrator_rights"`
|
||||
}
|
||||
|
||||
|
|
@ -18410,8 +18545,8 @@ func (client *Client) TestUseUpdate() (Update, error) {
|
|||
case TypeUpdateChatIsMarkedAsUnread:
|
||||
return UnmarshalUpdateChatIsMarkedAsUnread(result.Data)
|
||||
|
||||
case TypeUpdateChatIsBlocked:
|
||||
return UnmarshalUpdateChatIsBlocked(result.Data)
|
||||
case TypeUpdateChatBlockList:
|
||||
return UnmarshalUpdateChatBlockList(result.Data)
|
||||
|
||||
case TypeUpdateChatHasScheduledMessages:
|
||||
return UnmarshalUpdateChatHasScheduledMessages(result.Data)
|
||||
|
|
@ -18521,12 +18656,21 @@ func (client *Client) TestUseUpdate() (Update, error) {
|
|||
case TypeUpdateStoryDeleted:
|
||||
return UnmarshalUpdateStoryDeleted(result.Data)
|
||||
|
||||
case TypeUpdateStorySendSucceeded:
|
||||
return UnmarshalUpdateStorySendSucceeded(result.Data)
|
||||
|
||||
case TypeUpdateStorySendFailed:
|
||||
return UnmarshalUpdateStorySendFailed(result.Data)
|
||||
|
||||
case TypeUpdateChatActiveStories:
|
||||
return UnmarshalUpdateChatActiveStories(result.Data)
|
||||
|
||||
case TypeUpdateStoryListChatCount:
|
||||
return UnmarshalUpdateStoryListChatCount(result.Data)
|
||||
|
||||
case TypeUpdateStoryStealthMode:
|
||||
return UnmarshalUpdateStoryStealthMode(result.Data)
|
||||
|
||||
case TypeUpdateOption:
|
||||
return UnmarshalUpdateOption(result.Data)
|
||||
|
||||
|
|
|
|||
1172
client/type.go
1172
client/type.go
File diff suppressed because it is too large
Load diff
|
|
@ -3633,6 +3633,15 @@ func UnmarshalPremiumLimitType(data json.RawMessage) (PremiumLimitType, error) {
|
|||
case TypePremiumLimitTypeActiveStoryCount:
|
||||
return UnmarshalPremiumLimitTypeActiveStoryCount(data)
|
||||
|
||||
case TypePremiumLimitTypeWeeklySentStoryCount:
|
||||
return UnmarshalPremiumLimitTypeWeeklySentStoryCount(data)
|
||||
|
||||
case TypePremiumLimitTypeMonthlySentStoryCount:
|
||||
return UnmarshalPremiumLimitTypeMonthlySentStoryCount(data)
|
||||
|
||||
case TypePremiumLimitTypeStoryCaptionLength:
|
||||
return UnmarshalPremiumLimitTypeStoryCaptionLength(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
|
|
@ -3706,6 +3715,9 @@ func UnmarshalPremiumFeature(data json.RawMessage) (PremiumFeature, error) {
|
|||
case TypePremiumFeatureRealTimeChatTranslation:
|
||||
return UnmarshalPremiumFeatureRealTimeChatTranslation(data)
|
||||
|
||||
case TypePremiumFeatureUpgradedStories:
|
||||
return UnmarshalPremiumFeatureUpgradedStories(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
|
|
@ -3725,6 +3737,52 @@ func UnmarshalListOfPremiumFeature(dataList []json.RawMessage) ([]PremiumFeature
|
|||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalPremiumStoryFeature(data json.RawMessage) (PremiumStoryFeature, error) {
|
||||
var meta meta
|
||||
|
||||
err := json.Unmarshal(data, &meta)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch meta.Type {
|
||||
case TypePremiumStoryFeaturePriorityOrder:
|
||||
return UnmarshalPremiumStoryFeaturePriorityOrder(data)
|
||||
|
||||
case TypePremiumStoryFeatureStealthMode:
|
||||
return UnmarshalPremiumStoryFeatureStealthMode(data)
|
||||
|
||||
case TypePremiumStoryFeaturePermanentViewsHistory:
|
||||
return UnmarshalPremiumStoryFeaturePermanentViewsHistory(data)
|
||||
|
||||
case TypePremiumStoryFeatureCustomExpirationDuration:
|
||||
return UnmarshalPremiumStoryFeatureCustomExpirationDuration(data)
|
||||
|
||||
case TypePremiumStoryFeatureSaveStories:
|
||||
return UnmarshalPremiumStoryFeatureSaveStories(data)
|
||||
|
||||
case TypePremiumStoryFeatureLinksAndFormatting:
|
||||
return UnmarshalPremiumStoryFeatureLinksAndFormatting(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
}
|
||||
|
||||
func UnmarshalListOfPremiumStoryFeature(dataList []json.RawMessage) ([]PremiumStoryFeature, error) {
|
||||
list := []PremiumStoryFeature{}
|
||||
|
||||
for _, data := range dataList {
|
||||
entity, err := UnmarshalPremiumStoryFeature(data)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
list = append(list, entity)
|
||||
}
|
||||
|
||||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalPremiumSource(data json.RawMessage) (PremiumSource, error) {
|
||||
var meta meta
|
||||
|
||||
|
|
@ -3740,6 +3798,9 @@ func UnmarshalPremiumSource(data json.RawMessage) (PremiumSource, error) {
|
|||
case TypePremiumSourceFeature:
|
||||
return UnmarshalPremiumSourceFeature(data)
|
||||
|
||||
case TypePremiumSourceStoryFeature:
|
||||
return UnmarshalPremiumSourceStoryFeature(data)
|
||||
|
||||
case TypePremiumSourceLink:
|
||||
return UnmarshalPremiumSourceLink(data)
|
||||
|
||||
|
|
@ -3974,6 +4035,49 @@ func UnmarshalListOfInputBackground(dataList []json.RawMessage) ([]InputBackgrou
|
|||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalCanSendStoryResult(data json.RawMessage) (CanSendStoryResult, error) {
|
||||
var meta meta
|
||||
|
||||
err := json.Unmarshal(data, &meta)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch meta.Type {
|
||||
case TypeCanSendStoryResultOk:
|
||||
return UnmarshalCanSendStoryResultOk(data)
|
||||
|
||||
case TypeCanSendStoryResultPremiumNeeded:
|
||||
return UnmarshalCanSendStoryResultPremiumNeeded(data)
|
||||
|
||||
case TypeCanSendStoryResultActiveStoryLimitExceeded:
|
||||
return UnmarshalCanSendStoryResultActiveStoryLimitExceeded(data)
|
||||
|
||||
case TypeCanSendStoryResultWeeklyLimitExceeded:
|
||||
return UnmarshalCanSendStoryResultWeeklyLimitExceeded(data)
|
||||
|
||||
case TypeCanSendStoryResultMonthlyLimitExceeded:
|
||||
return UnmarshalCanSendStoryResultMonthlyLimitExceeded(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
}
|
||||
|
||||
func UnmarshalListOfCanSendStoryResult(dataList []json.RawMessage) ([]CanSendStoryResult, error) {
|
||||
list := []CanSendStoryResult{}
|
||||
|
||||
for _, data := range dataList {
|
||||
entity, err := UnmarshalCanSendStoryResult(data)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
list = append(list, entity)
|
||||
}
|
||||
|
||||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalCanTransferOwnershipResult(data json.RawMessage) (CanTransferOwnershipResult, error) {
|
||||
var meta meta
|
||||
|
||||
|
|
@ -4930,6 +5034,77 @@ func UnmarshalListOfInternalLinkType(dataList []json.RawMessage) ([]InternalLink
|
|||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalStoryAreaType(data json.RawMessage) (StoryAreaType, error) {
|
||||
var meta meta
|
||||
|
||||
err := json.Unmarshal(data, &meta)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch meta.Type {
|
||||
case TypeStoryAreaTypeLocation:
|
||||
return UnmarshalStoryAreaTypeLocation(data)
|
||||
|
||||
case TypeStoryAreaTypeVenue:
|
||||
return UnmarshalStoryAreaTypeVenue(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
}
|
||||
|
||||
func UnmarshalListOfStoryAreaType(dataList []json.RawMessage) ([]StoryAreaType, error) {
|
||||
list := []StoryAreaType{}
|
||||
|
||||
for _, data := range dataList {
|
||||
entity, err := UnmarshalStoryAreaType(data)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
list = append(list, entity)
|
||||
}
|
||||
|
||||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalInputStoryAreaType(data json.RawMessage) (InputStoryAreaType, error) {
|
||||
var meta meta
|
||||
|
||||
err := json.Unmarshal(data, &meta)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch meta.Type {
|
||||
case TypeInputStoryAreaTypeLocation:
|
||||
return UnmarshalInputStoryAreaTypeLocation(data)
|
||||
|
||||
case TypeInputStoryAreaTypeFoundVenue:
|
||||
return UnmarshalInputStoryAreaTypeFoundVenue(data)
|
||||
|
||||
case TypeInputStoryAreaTypePreviousVenue:
|
||||
return UnmarshalInputStoryAreaTypePreviousVenue(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
}
|
||||
|
||||
func UnmarshalListOfInputStoryAreaType(dataList []json.RawMessage) ([]InputStoryAreaType, error) {
|
||||
list := []InputStoryAreaType{}
|
||||
|
||||
for _, data := range dataList {
|
||||
entity, err := UnmarshalInputStoryAreaType(data)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
list = append(list, entity)
|
||||
}
|
||||
|
||||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalStoryContent(data json.RawMessage) (StoryContent, error) {
|
||||
var meta meta
|
||||
|
||||
|
|
@ -5035,6 +5210,40 @@ func UnmarshalListOfStoryList(dataList []json.RawMessage) ([]StoryList, error) {
|
|||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalBlockList(data json.RawMessage) (BlockList, error) {
|
||||
var meta meta
|
||||
|
||||
err := json.Unmarshal(data, &meta)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch meta.Type {
|
||||
case TypeBlockListMain:
|
||||
return UnmarshalBlockListMain(data)
|
||||
|
||||
case TypeBlockListStories:
|
||||
return UnmarshalBlockListStories(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
}
|
||||
|
||||
func UnmarshalListOfBlockList(dataList []json.RawMessage) ([]BlockList, error) {
|
||||
list := []BlockList{}
|
||||
|
||||
for _, data := range dataList {
|
||||
entity, err := UnmarshalBlockList(data)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
list = append(list, entity)
|
||||
}
|
||||
|
||||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalFileType(data json.RawMessage) (FileType, error) {
|
||||
var meta meta
|
||||
|
||||
|
|
@ -5772,8 +5981,8 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
|
|||
case TypeUpdateChatIsMarkedAsUnread:
|
||||
return UnmarshalUpdateChatIsMarkedAsUnread(data)
|
||||
|
||||
case TypeUpdateChatIsBlocked:
|
||||
return UnmarshalUpdateChatIsBlocked(data)
|
||||
case TypeUpdateChatBlockList:
|
||||
return UnmarshalUpdateChatBlockList(data)
|
||||
|
||||
case TypeUpdateChatHasScheduledMessages:
|
||||
return UnmarshalUpdateChatHasScheduledMessages(data)
|
||||
|
|
@ -5883,12 +6092,21 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
|
|||
case TypeUpdateStoryDeleted:
|
||||
return UnmarshalUpdateStoryDeleted(data)
|
||||
|
||||
case TypeUpdateStorySendSucceeded:
|
||||
return UnmarshalUpdateStorySendSucceeded(data)
|
||||
|
||||
case TypeUpdateStorySendFailed:
|
||||
return UnmarshalUpdateStorySendFailed(data)
|
||||
|
||||
case TypeUpdateChatActiveStories:
|
||||
return UnmarshalUpdateChatActiveStories(data)
|
||||
|
||||
case TypeUpdateStoryListChatCount:
|
||||
return UnmarshalUpdateStoryListChatCount(data)
|
||||
|
||||
case TypeUpdateStoryStealthMode:
|
||||
return UnmarshalUpdateStoryStealthMode(data)
|
||||
|
||||
case TypeUpdateOption:
|
||||
return UnmarshalUpdateOption(data)
|
||||
|
||||
|
|
@ -12149,6 +12367,30 @@ func UnmarshalPremiumLimitTypeActiveStoryCount(data json.RawMessage) (*PremiumLi
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPremiumLimitTypeWeeklySentStoryCount(data json.RawMessage) (*PremiumLimitTypeWeeklySentStoryCount, error) {
|
||||
var resp PremiumLimitTypeWeeklySentStoryCount
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPremiumLimitTypeMonthlySentStoryCount(data json.RawMessage) (*PremiumLimitTypeMonthlySentStoryCount, error) {
|
||||
var resp PremiumLimitTypeMonthlySentStoryCount
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPremiumLimitTypeStoryCaptionLength(data json.RawMessage) (*PremiumLimitTypeStoryCaptionLength, error) {
|
||||
var resp PremiumLimitTypeStoryCaptionLength
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPremiumFeatureIncreasedLimits(data json.RawMessage) (*PremiumFeatureIncreasedLimits, error) {
|
||||
var resp PremiumFeatureIncreasedLimits
|
||||
|
||||
|
|
@ -12269,6 +12511,62 @@ func UnmarshalPremiumFeatureRealTimeChatTranslation(data json.RawMessage) (*Prem
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPremiumFeatureUpgradedStories(data json.RawMessage) (*PremiumFeatureUpgradedStories, error) {
|
||||
var resp PremiumFeatureUpgradedStories
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPremiumStoryFeaturePriorityOrder(data json.RawMessage) (*PremiumStoryFeaturePriorityOrder, error) {
|
||||
var resp PremiumStoryFeaturePriorityOrder
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPremiumStoryFeatureStealthMode(data json.RawMessage) (*PremiumStoryFeatureStealthMode, error) {
|
||||
var resp PremiumStoryFeatureStealthMode
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPremiumStoryFeaturePermanentViewsHistory(data json.RawMessage) (*PremiumStoryFeaturePermanentViewsHistory, error) {
|
||||
var resp PremiumStoryFeaturePermanentViewsHistory
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPremiumStoryFeatureCustomExpirationDuration(data json.RawMessage) (*PremiumStoryFeatureCustomExpirationDuration, error) {
|
||||
var resp PremiumStoryFeatureCustomExpirationDuration
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPremiumStoryFeatureSaveStories(data json.RawMessage) (*PremiumStoryFeatureSaveStories, error) {
|
||||
var resp PremiumStoryFeatureSaveStories
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPremiumStoryFeatureLinksAndFormatting(data json.RawMessage) (*PremiumStoryFeatureLinksAndFormatting, error) {
|
||||
var resp PremiumStoryFeatureLinksAndFormatting
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPremiumLimit(data json.RawMessage) (*PremiumLimit, error) {
|
||||
var resp PremiumLimit
|
||||
|
||||
|
|
@ -12301,6 +12599,14 @@ func UnmarshalPremiumSourceFeature(data json.RawMessage) (*PremiumSourceFeature,
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPremiumSourceStoryFeature(data json.RawMessage) (*PremiumSourceStoryFeature, error) {
|
||||
var resp PremiumSourceStoryFeature
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPremiumSourceLink(data json.RawMessage) (*PremiumSourceLink, error) {
|
||||
var resp PremiumSourceLink
|
||||
|
||||
|
|
@ -12549,6 +12855,46 @@ func UnmarshalHashtags(data json.RawMessage) (*Hashtags, error) {
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalCanSendStoryResultOk(data json.RawMessage) (*CanSendStoryResultOk, error) {
|
||||
var resp CanSendStoryResultOk
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalCanSendStoryResultPremiumNeeded(data json.RawMessage) (*CanSendStoryResultPremiumNeeded, error) {
|
||||
var resp CanSendStoryResultPremiumNeeded
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalCanSendStoryResultActiveStoryLimitExceeded(data json.RawMessage) (*CanSendStoryResultActiveStoryLimitExceeded, error) {
|
||||
var resp CanSendStoryResultActiveStoryLimitExceeded
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalCanSendStoryResultWeeklyLimitExceeded(data json.RawMessage) (*CanSendStoryResultWeeklyLimitExceeded, error) {
|
||||
var resp CanSendStoryResultWeeklyLimitExceeded
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalCanSendStoryResultMonthlyLimitExceeded(data json.RawMessage) (*CanSendStoryResultMonthlyLimitExceeded, error) {
|
||||
var resp CanSendStoryResultMonthlyLimitExceeded
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalCanTransferOwnershipResultOk(data json.RawMessage) (*CanTransferOwnershipResultOk, error) {
|
||||
var resp CanTransferOwnershipResultOk
|
||||
|
||||
|
|
@ -13941,6 +14287,94 @@ func UnmarshalMessageLinkInfo(data json.RawMessage) (*MessageLinkInfo, error) {
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStoryViewer(data json.RawMessage) (*StoryViewer, error) {
|
||||
var resp StoryViewer
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStoryViewers(data json.RawMessage) (*StoryViewers, error) {
|
||||
var resp StoryViewers
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStoryAreaPosition(data json.RawMessage) (*StoryAreaPosition, error) {
|
||||
var resp StoryAreaPosition
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStoryAreaTypeLocation(data json.RawMessage) (*StoryAreaTypeLocation, error) {
|
||||
var resp StoryAreaTypeLocation
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStoryAreaTypeVenue(data json.RawMessage) (*StoryAreaTypeVenue, error) {
|
||||
var resp StoryAreaTypeVenue
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStoryArea(data json.RawMessage) (*StoryArea, error) {
|
||||
var resp StoryArea
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalInputStoryAreaTypeLocation(data json.RawMessage) (*InputStoryAreaTypeLocation, error) {
|
||||
var resp InputStoryAreaTypeLocation
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalInputStoryAreaTypeFoundVenue(data json.RawMessage) (*InputStoryAreaTypeFoundVenue, error) {
|
||||
var resp InputStoryAreaTypeFoundVenue
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalInputStoryAreaTypePreviousVenue(data json.RawMessage) (*InputStoryAreaTypePreviousVenue, error) {
|
||||
var resp InputStoryAreaTypePreviousVenue
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalInputStoryArea(data json.RawMessage) (*InputStoryArea, error) {
|
||||
var resp InputStoryArea
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalInputStoryAreas(data json.RawMessage) (*InputStoryAreas, error) {
|
||||
var resp InputStoryAreas
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStoryVideo(data json.RawMessage) (*StoryVideo, error) {
|
||||
var resp StoryVideo
|
||||
|
||||
|
|
@ -14045,6 +14479,22 @@ func UnmarshalChatActiveStories(data json.RawMessage) (*ChatActiveStories, error
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalBlockListMain(data json.RawMessage) (*BlockListMain, error) {
|
||||
var resp BlockListMain
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalBlockListStories(data json.RawMessage) (*BlockListStories, error) {
|
||||
var resp BlockListStories
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalFilePart(data json.RawMessage) (*FilePart, error) {
|
||||
var resp FilePart
|
||||
|
||||
|
|
@ -15181,8 +15631,8 @@ func UnmarshalUpdateChatIsMarkedAsUnread(data json.RawMessage) (*UpdateChatIsMar
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUpdateChatIsBlocked(data json.RawMessage) (*UpdateChatIsBlocked, error) {
|
||||
var resp UpdateChatIsBlocked
|
||||
func UnmarshalUpdateChatBlockList(data json.RawMessage) (*UpdateChatBlockList, error) {
|
||||
var resp UpdateChatBlockList
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
|
|
@ -15477,6 +15927,22 @@ func UnmarshalUpdateStoryDeleted(data json.RawMessage) (*UpdateStoryDeleted, err
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUpdateStorySendSucceeded(data json.RawMessage) (*UpdateStorySendSucceeded, error) {
|
||||
var resp UpdateStorySendSucceeded
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUpdateStorySendFailed(data json.RawMessage) (*UpdateStorySendFailed, error) {
|
||||
var resp UpdateStorySendFailed
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUpdateChatActiveStories(data json.RawMessage) (*UpdateChatActiveStories, error) {
|
||||
var resp UpdateChatActiveStories
|
||||
|
||||
|
|
@ -15493,6 +15959,14 @@ func UnmarshalUpdateStoryListChatCount(data json.RawMessage) (*UpdateStoryListCh
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUpdateStoryStealthMode(data json.RawMessage) (*UpdateStoryStealthMode, error) {
|
||||
var resp UpdateStoryStealthMode
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUpdateOption(data json.RawMessage) (*UpdateOption, error) {
|
||||
var resp UpdateOption
|
||||
|
||||
|
|
@ -18188,6 +18662,15 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypePremiumLimitTypeActiveStoryCount:
|
||||
return UnmarshalPremiumLimitTypeActiveStoryCount(data)
|
||||
|
||||
case TypePremiumLimitTypeWeeklySentStoryCount:
|
||||
return UnmarshalPremiumLimitTypeWeeklySentStoryCount(data)
|
||||
|
||||
case TypePremiumLimitTypeMonthlySentStoryCount:
|
||||
return UnmarshalPremiumLimitTypeMonthlySentStoryCount(data)
|
||||
|
||||
case TypePremiumLimitTypeStoryCaptionLength:
|
||||
return UnmarshalPremiumLimitTypeStoryCaptionLength(data)
|
||||
|
||||
case TypePremiumFeatureIncreasedLimits:
|
||||
return UnmarshalPremiumFeatureIncreasedLimits(data)
|
||||
|
||||
|
|
@ -18233,6 +18716,27 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypePremiumFeatureRealTimeChatTranslation:
|
||||
return UnmarshalPremiumFeatureRealTimeChatTranslation(data)
|
||||
|
||||
case TypePremiumFeatureUpgradedStories:
|
||||
return UnmarshalPremiumFeatureUpgradedStories(data)
|
||||
|
||||
case TypePremiumStoryFeaturePriorityOrder:
|
||||
return UnmarshalPremiumStoryFeaturePriorityOrder(data)
|
||||
|
||||
case TypePremiumStoryFeatureStealthMode:
|
||||
return UnmarshalPremiumStoryFeatureStealthMode(data)
|
||||
|
||||
case TypePremiumStoryFeaturePermanentViewsHistory:
|
||||
return UnmarshalPremiumStoryFeaturePermanentViewsHistory(data)
|
||||
|
||||
case TypePremiumStoryFeatureCustomExpirationDuration:
|
||||
return UnmarshalPremiumStoryFeatureCustomExpirationDuration(data)
|
||||
|
||||
case TypePremiumStoryFeatureSaveStories:
|
||||
return UnmarshalPremiumStoryFeatureSaveStories(data)
|
||||
|
||||
case TypePremiumStoryFeatureLinksAndFormatting:
|
||||
return UnmarshalPremiumStoryFeatureLinksAndFormatting(data)
|
||||
|
||||
case TypePremiumLimit:
|
||||
return UnmarshalPremiumLimit(data)
|
||||
|
||||
|
|
@ -18245,6 +18749,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypePremiumSourceFeature:
|
||||
return UnmarshalPremiumSourceFeature(data)
|
||||
|
||||
case TypePremiumSourceStoryFeature:
|
||||
return UnmarshalPremiumSourceStoryFeature(data)
|
||||
|
||||
case TypePremiumSourceLink:
|
||||
return UnmarshalPremiumSourceLink(data)
|
||||
|
||||
|
|
@ -18338,6 +18845,21 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeHashtags:
|
||||
return UnmarshalHashtags(data)
|
||||
|
||||
case TypeCanSendStoryResultOk:
|
||||
return UnmarshalCanSendStoryResultOk(data)
|
||||
|
||||
case TypeCanSendStoryResultPremiumNeeded:
|
||||
return UnmarshalCanSendStoryResultPremiumNeeded(data)
|
||||
|
||||
case TypeCanSendStoryResultActiveStoryLimitExceeded:
|
||||
return UnmarshalCanSendStoryResultActiveStoryLimitExceeded(data)
|
||||
|
||||
case TypeCanSendStoryResultWeeklyLimitExceeded:
|
||||
return UnmarshalCanSendStoryResultWeeklyLimitExceeded(data)
|
||||
|
||||
case TypeCanSendStoryResultMonthlyLimitExceeded:
|
||||
return UnmarshalCanSendStoryResultMonthlyLimitExceeded(data)
|
||||
|
||||
case TypeCanTransferOwnershipResultOk:
|
||||
return UnmarshalCanTransferOwnershipResultOk(data)
|
||||
|
||||
|
|
@ -18860,6 +19382,39 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeMessageLinkInfo:
|
||||
return UnmarshalMessageLinkInfo(data)
|
||||
|
||||
case TypeStoryViewer:
|
||||
return UnmarshalStoryViewer(data)
|
||||
|
||||
case TypeStoryViewers:
|
||||
return UnmarshalStoryViewers(data)
|
||||
|
||||
case TypeStoryAreaPosition:
|
||||
return UnmarshalStoryAreaPosition(data)
|
||||
|
||||
case TypeStoryAreaTypeLocation:
|
||||
return UnmarshalStoryAreaTypeLocation(data)
|
||||
|
||||
case TypeStoryAreaTypeVenue:
|
||||
return UnmarshalStoryAreaTypeVenue(data)
|
||||
|
||||
case TypeStoryArea:
|
||||
return UnmarshalStoryArea(data)
|
||||
|
||||
case TypeInputStoryAreaTypeLocation:
|
||||
return UnmarshalInputStoryAreaTypeLocation(data)
|
||||
|
||||
case TypeInputStoryAreaTypeFoundVenue:
|
||||
return UnmarshalInputStoryAreaTypeFoundVenue(data)
|
||||
|
||||
case TypeInputStoryAreaTypePreviousVenue:
|
||||
return UnmarshalInputStoryAreaTypePreviousVenue(data)
|
||||
|
||||
case TypeInputStoryArea:
|
||||
return UnmarshalInputStoryArea(data)
|
||||
|
||||
case TypeInputStoryAreas:
|
||||
return UnmarshalInputStoryAreas(data)
|
||||
|
||||
case TypeStoryVideo:
|
||||
return UnmarshalStoryVideo(data)
|
||||
|
||||
|
|
@ -18899,6 +19454,12 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeChatActiveStories:
|
||||
return UnmarshalChatActiveStories(data)
|
||||
|
||||
case TypeBlockListMain:
|
||||
return UnmarshalBlockListMain(data)
|
||||
|
||||
case TypeBlockListStories:
|
||||
return UnmarshalBlockListStories(data)
|
||||
|
||||
case TypeFilePart:
|
||||
return UnmarshalFilePart(data)
|
||||
|
||||
|
|
@ -19325,8 +19886,8 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeUpdateChatIsMarkedAsUnread:
|
||||
return UnmarshalUpdateChatIsMarkedAsUnread(data)
|
||||
|
||||
case TypeUpdateChatIsBlocked:
|
||||
return UnmarshalUpdateChatIsBlocked(data)
|
||||
case TypeUpdateChatBlockList:
|
||||
return UnmarshalUpdateChatBlockList(data)
|
||||
|
||||
case TypeUpdateChatHasScheduledMessages:
|
||||
return UnmarshalUpdateChatHasScheduledMessages(data)
|
||||
|
|
@ -19436,12 +19997,21 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeUpdateStoryDeleted:
|
||||
return UnmarshalUpdateStoryDeleted(data)
|
||||
|
||||
case TypeUpdateStorySendSucceeded:
|
||||
return UnmarshalUpdateStorySendSucceeded(data)
|
||||
|
||||
case TypeUpdateStorySendFailed:
|
||||
return UnmarshalUpdateStorySendFailed(data)
|
||||
|
||||
case TypeUpdateChatActiveStories:
|
||||
return UnmarshalUpdateChatActiveStories(data)
|
||||
|
||||
case TypeUpdateStoryListChatCount:
|
||||
return UnmarshalUpdateStoryListChatCount(data)
|
||||
|
||||
case TypeUpdateStoryStealthMode:
|
||||
return UnmarshalUpdateStoryStealthMode(data)
|
||||
|
||||
case TypeUpdateOption:
|
||||
return UnmarshalUpdateOption(data)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue