mirror of
https://github.com/c0re100/gotdlib.git
synced 2026-02-21 20:20:17 +01:00
Update to TDLib 1.8.40
This commit is contained in:
parent
4330cb2fa1
commit
098715f4f0
4 changed files with 1572 additions and 393 deletions
|
|
@ -7045,6 +7045,67 @@ func (client *Client) AnswerInlineQuery(req *AnswerInlineQueryRequest) (*Ok, err
|
|||
return UnmarshalOk(result.Data)
|
||||
}
|
||||
|
||||
type SavePreparedInlineMessageRequest struct {
|
||||
// Identifier of the user
|
||||
UserId int64 `json:"user_id"`
|
||||
// The description of the message
|
||||
Result InputInlineQueryResult `json:"result"`
|
||||
// Types of the chats to which the message can be sent
|
||||
ChatTypes *TargetChatTypes `json:"chat_types"`
|
||||
}
|
||||
|
||||
// Saves an inline message to be sent by the given user; for bots only
|
||||
func (client *Client) SavePreparedInlineMessage(req *SavePreparedInlineMessageRequest) (*PreparedInlineMessageId, error) {
|
||||
result, err := client.Send(Request{
|
||||
meta: meta{
|
||||
Type: "savePreparedInlineMessage",
|
||||
},
|
||||
Data: map[string]interface{}{
|
||||
"user_id": req.UserId,
|
||||
"result": req.Result,
|
||||
"chat_types": req.ChatTypes,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if result.Type == "error" {
|
||||
return nil, buildResponseError(result.Data)
|
||||
}
|
||||
|
||||
return UnmarshalPreparedInlineMessageId(result.Data)
|
||||
}
|
||||
|
||||
type GetPreparedInlineMessageRequest struct {
|
||||
// Identifier of the bot that created the message
|
||||
BotUserId int64 `json:"bot_user_id"`
|
||||
// Identifier of the prepared message
|
||||
PreparedMessageId string `json:"prepared_message_id"`
|
||||
}
|
||||
|
||||
// Saves an inline message to be sent by the given user; for bots only
|
||||
func (client *Client) GetPreparedInlineMessage(req *GetPreparedInlineMessageRequest) (*PreparedInlineMessage, error) {
|
||||
result, err := client.Send(Request{
|
||||
meta: meta{
|
||||
Type: "getPreparedInlineMessage",
|
||||
},
|
||||
Data: map[string]interface{}{
|
||||
"bot_user_id": req.BotUserId,
|
||||
"prepared_message_id": req.PreparedMessageId,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if result.Type == "error" {
|
||||
return nil, buildResponseError(result.Data)
|
||||
}
|
||||
|
||||
return UnmarshalPreparedInlineMessage(result.Data)
|
||||
}
|
||||
|
||||
type GetGrossingWebAppBotsRequest struct {
|
||||
// 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"`
|
||||
|
|
@ -7103,6 +7164,32 @@ func (client *Client) SearchWebApp(req *SearchWebAppRequest) (*FoundWebApp, erro
|
|||
return UnmarshalFoundWebApp(result.Data)
|
||||
}
|
||||
|
||||
type GetWebAppPlaceholderRequest struct {
|
||||
// Identifier of the target bot
|
||||
BotUserId int64 `json:"bot_user_id"`
|
||||
}
|
||||
|
||||
// Returns a default placeholder for Web Apps of a bot; this is an offline request. Returns a 404 error if the placeholder isn't known
|
||||
func (client *Client) GetWebAppPlaceholder(req *GetWebAppPlaceholderRequest) (*Outline, error) {
|
||||
result, err := client.Send(Request{
|
||||
meta: meta{
|
||||
Type: "getWebAppPlaceholder",
|
||||
},
|
||||
Data: map[string]interface{}{
|
||||
"bot_user_id": req.BotUserId,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if result.Type == "error" {
|
||||
return nil, buildResponseError(result.Data)
|
||||
}
|
||||
|
||||
return UnmarshalOutline(result.Data)
|
||||
}
|
||||
|
||||
type GetWebAppLinkUrlRequest struct {
|
||||
// Identifier of the chat in which the link was clicked; pass 0 if none
|
||||
ChatId int64 `json:"chat_id"`
|
||||
|
|
@ -7112,12 +7199,10 @@ type GetWebAppLinkUrlRequest struct {
|
|||
WebAppShortName string `json:"web_app_short_name"`
|
||||
// Start parameter from internalLinkTypeWebApp
|
||||
StartParameter string `json:"start_parameter"`
|
||||
// Preferred Web App theme; pass null to use the default theme
|
||||
Theme *ThemeParameters `json:"theme"`
|
||||
// Short name of the current application; 0-64 English letters, digits, and underscores
|
||||
ApplicationName string `json:"application_name"`
|
||||
// Pass true if the current user allowed the bot to send them messages
|
||||
AllowWriteAccess bool `json:"allow_write_access"`
|
||||
// Parameters to use to open the Web App
|
||||
Parameters *WebAppOpenParameters `json:"parameters"`
|
||||
}
|
||||
|
||||
// Returns an HTTPS URL of a Web App to open after a link of the type internalLinkTypeWebApp is clicked
|
||||
|
|
@ -7131,9 +7216,8 @@ func (client *Client) GetWebAppLinkUrl(req *GetWebAppLinkUrlRequest) (*HttpUrl,
|
|||
"bot_user_id": req.BotUserId,
|
||||
"web_app_short_name": req.WebAppShortName,
|
||||
"start_parameter": req.StartParameter,
|
||||
"theme": req.Theme,
|
||||
"application_name": req.ApplicationName,
|
||||
"allow_write_access": req.AllowWriteAccess,
|
||||
"parameters": req.Parameters,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
|
|
@ -7154,10 +7238,8 @@ type GetMainWebAppRequest struct {
|
|||
BotUserId int64 `json:"bot_user_id"`
|
||||
// Start parameter from internalLinkTypeMainWebApp
|
||||
StartParameter string `json:"start_parameter"`
|
||||
// Preferred Web App theme; pass null to use the default theme
|
||||
Theme *ThemeParameters `json:"theme"`
|
||||
// Short name of the current application; 0-64 English letters, digits, and underscores
|
||||
ApplicationName string `json:"application_name"`
|
||||
// Parameters to use to open the Web App
|
||||
Parameters *WebAppOpenParameters `json:"parameters"`
|
||||
}
|
||||
|
||||
// Returns information needed to open the main Web App of a bot
|
||||
|
|
@ -7170,8 +7252,7 @@ func (client *Client) GetMainWebApp(req *GetMainWebAppRequest) (*MainWebApp, err
|
|||
"chat_id": req.ChatId,
|
||||
"bot_user_id": req.BotUserId,
|
||||
"start_parameter": req.StartParameter,
|
||||
"theme": req.Theme,
|
||||
"application_name": req.ApplicationName,
|
||||
"parameters": req.Parameters,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
|
|
@ -7190,10 +7271,8 @@ type GetWebAppUrlRequest struct {
|
|||
BotUserId int64 `json:"bot_user_id"`
|
||||
// The URL from a keyboardButtonTypeWebApp button, inlineQueryResultsButtonTypeWebApp button, or an empty string when the bot is opened from the side menu
|
||||
Url string `json:"url"`
|
||||
// Preferred Web App theme; pass null to use the default theme
|
||||
Theme *ThemeParameters `json:"theme"`
|
||||
// Short name of the current application; 0-64 English letters, digits, and underscores
|
||||
ApplicationName string `json:"application_name"`
|
||||
// Parameters to use to open the Web App
|
||||
Parameters *WebAppOpenParameters `json:"parameters"`
|
||||
}
|
||||
|
||||
// Returns an HTTPS URL of a Web App to open from the side menu, a keyboardButtonTypeWebApp button, or an inlineQueryResultsButtonTypeWebApp button
|
||||
|
|
@ -7205,8 +7284,7 @@ func (client *Client) GetWebAppUrl(req *GetWebAppUrlRequest) (*HttpUrl, error) {
|
|||
Data: map[string]interface{}{
|
||||
"bot_user_id": req.BotUserId,
|
||||
"url": req.Url,
|
||||
"theme": req.Theme,
|
||||
"application_name": req.ApplicationName,
|
||||
"parameters": req.Parameters,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
|
|
@ -7259,14 +7337,12 @@ type OpenWebAppRequest struct {
|
|||
BotUserId int64 `json:"bot_user_id"`
|
||||
// The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an empty string otherwise
|
||||
Url string `json:"url"`
|
||||
// Preferred Web App theme; pass null to use the default theme
|
||||
Theme *ThemeParameters `json:"theme"`
|
||||
// Short name of the current application; 0-64 English letters, digits, and underscores
|
||||
ApplicationName string `json:"application_name"`
|
||||
// If not 0, the message thread identifier in which the message will be sent
|
||||
MessageThreadId int64 `json:"message_thread_id"`
|
||||
// Information about the message or story to be replied in the message sent by the Web App; pass null if none
|
||||
ReplyTo InputMessageReplyTo `json:"reply_to"`
|
||||
// Parameters to use to open the Web App
|
||||
Parameters *WebAppOpenParameters `json:"parameters"`
|
||||
}
|
||||
|
||||
// Informs TDLib that a Web App is being opened from the attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button. For each bot, a confirmation alert about data sent to the bot must be shown once
|
||||
|
|
@ -7279,10 +7355,9 @@ func (client *Client) OpenWebApp(req *OpenWebAppRequest) (*WebAppInfo, error) {
|
|||
"chat_id": req.ChatId,
|
||||
"bot_user_id": req.BotUserId,
|
||||
"url": req.Url,
|
||||
"theme": req.Theme,
|
||||
"application_name": req.ApplicationName,
|
||||
"message_thread_id": req.MessageThreadId,
|
||||
"reply_to": req.ReplyTo,
|
||||
"parameters": req.Parameters,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
|
|
@ -7351,6 +7426,38 @@ func (client *Client) AnswerWebAppQuery(req *AnswerWebAppQueryRequest) (*SentWeb
|
|||
return UnmarshalSentWebAppMessage(result.Data)
|
||||
}
|
||||
|
||||
type CheckWebAppFileDownloadRequest struct {
|
||||
// Identifier of the bot, providing the Web App
|
||||
BotUserId int64 `json:"bot_user_id"`
|
||||
// Name of the file
|
||||
FileName string `json:"file_name"`
|
||||
// URL of the file
|
||||
Url string `json:"url"`
|
||||
}
|
||||
|
||||
// Checks whether a file can be downloaded and saved locally by Web App request
|
||||
func (client *Client) CheckWebAppFileDownload(req *CheckWebAppFileDownloadRequest) (*Ok, error) {
|
||||
result, err := client.Send(Request{
|
||||
meta: meta{
|
||||
Type: "checkWebAppFileDownload",
|
||||
},
|
||||
Data: map[string]interface{}{
|
||||
"bot_user_id": req.BotUserId,
|
||||
"file_name": req.FileName,
|
||||
"url": req.Url,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if result.Type == "error" {
|
||||
return nil, buildResponseError(result.Data)
|
||||
}
|
||||
|
||||
return UnmarshalOk(result.Data)
|
||||
}
|
||||
|
||||
type GetCallbackQueryAnswerRequest struct {
|
||||
// Identifier of the chat with the message
|
||||
ChatId int64 `json:"chat_id"`
|
||||
|
|
@ -13319,7 +13426,7 @@ type GetVideoChatRtmpUrlRequest struct {
|
|||
ChatId int64 `json:"chat_id"`
|
||||
}
|
||||
|
||||
// Returns RTMP URL for streaming to the chat; requires owner privileges
|
||||
// Returns RTMP URL for streaming to the chat; requires can_manage_video_chats administrator right
|
||||
func (client *Client) GetVideoChatRtmpUrl(req *GetVideoChatRtmpUrlRequest) (*RtmpUrl, error) {
|
||||
result, err := client.Send(Request{
|
||||
meta: meta{
|
||||
|
|
@ -14504,6 +14611,64 @@ func (client *Client) SuggestUserProfilePhoto(req *SuggestUserProfilePhotoReques
|
|||
return UnmarshalOk(result.Data)
|
||||
}
|
||||
|
||||
type ToggleBotCanManageEmojiStatusRequest struct {
|
||||
// User identifier of the bot
|
||||
BotUserId int64 `json:"bot_user_id"`
|
||||
// Pass true if the bot is allowed to change emoji status of the user; pass false otherwise
|
||||
CanManageEmojiStatus bool `json:"can_manage_emoji_status"`
|
||||
}
|
||||
|
||||
// Toggles whether the bot can manage emoji status of the current user
|
||||
func (client *Client) ToggleBotCanManageEmojiStatus(req *ToggleBotCanManageEmojiStatusRequest) (*Ok, error) {
|
||||
result, err := client.Send(Request{
|
||||
meta: meta{
|
||||
Type: "toggleBotCanManageEmojiStatus",
|
||||
},
|
||||
Data: map[string]interface{}{
|
||||
"bot_user_id": req.BotUserId,
|
||||
"can_manage_emoji_status": req.CanManageEmojiStatus,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if result.Type == "error" {
|
||||
return nil, buildResponseError(result.Data)
|
||||
}
|
||||
|
||||
return UnmarshalOk(result.Data)
|
||||
}
|
||||
|
||||
type SetUserEmojiStatusRequest struct {
|
||||
// Identifier of the user
|
||||
UserId int64 `json:"user_id"`
|
||||
// New emoji status; pass null to switch to the default badge
|
||||
EmojiStatus *EmojiStatus `json:"emoji_status"`
|
||||
}
|
||||
|
||||
// Changes the emoji status of a user; for bots only
|
||||
func (client *Client) SetUserEmojiStatus(req *SetUserEmojiStatusRequest) (*Ok, error) {
|
||||
result, err := client.Send(Request{
|
||||
meta: meta{
|
||||
Type: "setUserEmojiStatus",
|
||||
},
|
||||
Data: map[string]interface{}{
|
||||
"user_id": req.UserId,
|
||||
"emoji_status": req.EmojiStatus,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if result.Type == "error" {
|
||||
return nil, buildResponseError(result.Data)
|
||||
}
|
||||
|
||||
return UnmarshalOk(result.Data)
|
||||
}
|
||||
|
||||
type SearchUserByPhoneNumberRequest struct {
|
||||
// Phone number to search for
|
||||
PhoneNumber string `json:"phone_number"`
|
||||
|
|
@ -14591,6 +14756,38 @@ func (client *Client) GetUserProfilePhotos(req *GetUserProfilePhotosRequest) (*C
|
|||
return UnmarshalChatPhotos(result.Data)
|
||||
}
|
||||
|
||||
type GetStickerOutlineRequest struct {
|
||||
// File identifier of the sticker
|
||||
StickerFileId int32 `json:"sticker_file_id"`
|
||||
// Pass true to get the outline scaled for animated emoji
|
||||
ForAnimatedEmoji bool `json:"for_animated_emoji"`
|
||||
// Pass true to get the outline scaled for clicked animated emoji message
|
||||
ForClickedAnimatedEmojiMessage bool `json:"for_clicked_animated_emoji_message"`
|
||||
}
|
||||
|
||||
// Returns outline of a sticker; this is an offline request. Returns a 404 error if the outline isn't known
|
||||
func (client *Client) GetStickerOutline(req *GetStickerOutlineRequest) (*Outline, error) {
|
||||
result, err := client.Send(Request{
|
||||
meta: meta{
|
||||
Type: "getStickerOutline",
|
||||
},
|
||||
Data: map[string]interface{}{
|
||||
"sticker_file_id": req.StickerFileId,
|
||||
"for_animated_emoji": req.ForAnimatedEmoji,
|
||||
"for_clicked_animated_emoji_message": req.ForClickedAnimatedEmojiMessage,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if result.Type == "error" {
|
||||
return nil, buildResponseError(result.Data)
|
||||
}
|
||||
|
||||
return UnmarshalOutline(result.Data)
|
||||
}
|
||||
|
||||
type GetStickersRequest struct {
|
||||
// Type of the stickers to return
|
||||
StickerType StickerType `json:"sticker_type"`
|
||||
|
|
@ -18585,6 +18782,8 @@ func (client *Client) GetUserGifts(req *GetUserGiftsRequest) (*UserGifts, error)
|
|||
}
|
||||
|
||||
type CreateInvoiceLinkRequest struct {
|
||||
// Unique identifier of business connection on behalf of which to send the request
|
||||
BusinessConnectionId string `json:"business_connection_id"`
|
||||
// Information about the invoice of the type inputMessageInvoice
|
||||
Invoice InputMessageContent `json:"invoice"`
|
||||
}
|
||||
|
|
@ -18596,6 +18795,7 @@ func (client *Client) CreateInvoiceLink(req *CreateInvoiceLinkRequest) (*HttpUrl
|
|||
Type: "createInvoiceLink",
|
||||
},
|
||||
Data: map[string]interface{}{
|
||||
"business_connection_id": req.BusinessConnectionId,
|
||||
"invoice": req.Invoice,
|
||||
},
|
||||
})
|
||||
|
|
@ -21950,7 +22150,7 @@ type EditStarSubscriptionRequest struct {
|
|||
IsCanceled bool `json:"is_canceled"`
|
||||
}
|
||||
|
||||
// Cancels or reenables Telegram Star subscription to a channel
|
||||
// Cancels or re-enables Telegram Star subscription
|
||||
func (client *Client) EditStarSubscription(req *EditStarSubscriptionRequest) (*Ok, error) {
|
||||
result, err := client.Send(Request{
|
||||
meta: meta{
|
||||
|
|
@ -21972,12 +22172,44 @@ func (client *Client) EditStarSubscription(req *EditStarSubscriptionRequest) (*O
|
|||
return UnmarshalOk(result.Data)
|
||||
}
|
||||
|
||||
type EditUserStarSubscriptionRequest struct {
|
||||
// User identifier
|
||||
UserId int64 `json:"user_id"`
|
||||
// Telegram payment identifier of the subscription
|
||||
TelegramPaymentChargeId string `json:"telegram_payment_charge_id"`
|
||||
// Pass true to cancel the subscription; pass false to allow the user to enable it
|
||||
IsCanceled bool `json:"is_canceled"`
|
||||
}
|
||||
|
||||
// Cancels or re-enables Telegram Star subscription for a user; for bots only
|
||||
func (client *Client) EditUserStarSubscription(req *EditUserStarSubscriptionRequest) (*Ok, error) {
|
||||
result, err := client.Send(Request{
|
||||
meta: meta{
|
||||
Type: "editUserStarSubscription",
|
||||
},
|
||||
Data: map[string]interface{}{
|
||||
"user_id": req.UserId,
|
||||
"telegram_payment_charge_id": req.TelegramPaymentChargeId,
|
||||
"is_canceled": req.IsCanceled,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if result.Type == "error" {
|
||||
return nil, buildResponseError(result.Data)
|
||||
}
|
||||
|
||||
return UnmarshalOk(result.Data)
|
||||
}
|
||||
|
||||
type ReuseStarSubscriptionRequest struct {
|
||||
// Identifier of the subscription
|
||||
SubscriptionId string `json:"subscription_id"`
|
||||
}
|
||||
|
||||
// Reuses an active subscription and joins the subscribed chat again
|
||||
// Reuses an active Telegram Star subscription to a channel chat and joins the chat again
|
||||
func (client *Client) ReuseStarSubscription(req *ReuseStarSubscriptionRequest) (*Ok, error) {
|
||||
result, err := client.Send(Request{
|
||||
meta: meta{
|
||||
|
|
|
|||
979
client/type.go
979
client/type.go
File diff suppressed because it is too large
Load diff
|
|
@ -659,6 +659,40 @@ func UnmarshalListOfInputChatPhoto(dataList []json.RawMessage) ([]InputChatPhoto
|
|||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalStarSubscriptionType(data json.RawMessage) (StarSubscriptionType, error) {
|
||||
var meta meta
|
||||
|
||||
err := json.Unmarshal(data, &meta)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch meta.Type {
|
||||
case TypeStarSubscriptionTypeChannel:
|
||||
return UnmarshalStarSubscriptionTypeChannel(data)
|
||||
|
||||
case TypeStarSubscriptionTypeBot:
|
||||
return UnmarshalStarSubscriptionTypeBot(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
}
|
||||
|
||||
func UnmarshalListOfStarSubscriptionType(dataList []json.RawMessage) ([]StarSubscriptionType, error) {
|
||||
list := []StarSubscriptionType{}
|
||||
|
||||
for _, data := range dataList {
|
||||
entity, err := UnmarshalStarSubscriptionType(data)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
list = append(list, entity)
|
||||
}
|
||||
|
||||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalStarTransactionDirection(data json.RawMessage) (StarTransactionDirection, error) {
|
||||
var meta meta
|
||||
|
||||
|
|
@ -708,6 +742,9 @@ func UnmarshalBotTransactionPurpose(data json.RawMessage) (BotTransactionPurpose
|
|||
case TypeBotTransactionPurposeInvoicePayment:
|
||||
return UnmarshalBotTransactionPurposeInvoicePayment(data)
|
||||
|
||||
case TypeBotTransactionPurposeSubscription:
|
||||
return UnmarshalBotTransactionPurposeSubscription(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
|
|
@ -2071,6 +2108,43 @@ func UnmarshalListOfLoginUrlInfo(dataList []json.RawMessage) ([]LoginUrlInfo, er
|
|||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalWebAppOpenMode(data json.RawMessage) (WebAppOpenMode, error) {
|
||||
var meta meta
|
||||
|
||||
err := json.Unmarshal(data, &meta)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch meta.Type {
|
||||
case TypeWebAppOpenModeCompact:
|
||||
return UnmarshalWebAppOpenModeCompact(data)
|
||||
|
||||
case TypeWebAppOpenModeFullSize:
|
||||
return UnmarshalWebAppOpenModeFullSize(data)
|
||||
|
||||
case TypeWebAppOpenModeFullScreen:
|
||||
return UnmarshalWebAppOpenModeFullScreen(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
}
|
||||
|
||||
func UnmarshalListOfWebAppOpenMode(dataList []json.RawMessage) ([]WebAppOpenMode, error) {
|
||||
list := []WebAppOpenMode{}
|
||||
|
||||
for _, data := range dataList {
|
||||
entity, err := UnmarshalWebAppOpenMode(data)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
list = append(list, entity)
|
||||
}
|
||||
|
||||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalSavedMessagesTopicType(data json.RawMessage) (SavedMessagesTopicType, error) {
|
||||
var meta meta
|
||||
|
||||
|
|
@ -2657,6 +2731,9 @@ func UnmarshalPaymentFormType(data json.RawMessage) (PaymentFormType, error) {
|
|||
case TypePaymentFormTypeStars:
|
||||
return UnmarshalPaymentFormTypeStars(data)
|
||||
|
||||
case TypePaymentFormTypeStarSubscription:
|
||||
return UnmarshalPaymentFormTypeStarSubscription(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
|
|
@ -4674,6 +4751,43 @@ func UnmarshalListOfBotWriteAccessAllowReason(dataList []json.RawMessage) ([]Bot
|
|||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalTargetChat(data json.RawMessage) (TargetChat, error) {
|
||||
var meta meta
|
||||
|
||||
err := json.Unmarshal(data, &meta)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch meta.Type {
|
||||
case TypeTargetChatCurrent:
|
||||
return UnmarshalTargetChatCurrent(data)
|
||||
|
||||
case TypeTargetChatChosen:
|
||||
return UnmarshalTargetChatChosen(data)
|
||||
|
||||
case TypeTargetChatInternalLink:
|
||||
return UnmarshalTargetChatInternalLink(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
}
|
||||
|
||||
func UnmarshalListOfTargetChat(dataList []json.RawMessage) ([]TargetChat, error) {
|
||||
list := []TargetChat{}
|
||||
|
||||
for _, data := range dataList {
|
||||
entity, err := UnmarshalTargetChat(data)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
list = append(list, entity)
|
||||
}
|
||||
|
||||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalInputInlineQueryResult(data json.RawMessage) (InputInlineQueryResult, error) {
|
||||
var meta meta
|
||||
|
||||
|
|
@ -6302,6 +6416,9 @@ func UnmarshalUserPrivacySettingRule(data json.RawMessage) (UserPrivacySettingRu
|
|||
case TypeUserPrivacySettingRuleAllowContacts:
|
||||
return UnmarshalUserPrivacySettingRuleAllowContacts(data)
|
||||
|
||||
case TypeUserPrivacySettingRuleAllowBots:
|
||||
return UnmarshalUserPrivacySettingRuleAllowBots(data)
|
||||
|
||||
case TypeUserPrivacySettingRuleAllowPremiumUsers:
|
||||
return UnmarshalUserPrivacySettingRuleAllowPremiumUsers(data)
|
||||
|
||||
|
|
@ -6317,6 +6434,9 @@ func UnmarshalUserPrivacySettingRule(data json.RawMessage) (UserPrivacySettingRu
|
|||
case TypeUserPrivacySettingRuleRestrictContacts:
|
||||
return UnmarshalUserPrivacySettingRuleRestrictContacts(data)
|
||||
|
||||
case TypeUserPrivacySettingRuleRestrictBots:
|
||||
return UnmarshalUserPrivacySettingRuleRestrictBots(data)
|
||||
|
||||
case TypeUserPrivacySettingRuleRestrictUsers:
|
||||
return UnmarshalUserPrivacySettingRuleRestrictUsers(data)
|
||||
|
||||
|
|
@ -6384,6 +6504,9 @@ func UnmarshalUserPrivacySetting(data json.RawMessage) (UserPrivacySetting, erro
|
|||
case TypeUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages:
|
||||
return UnmarshalUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages(data)
|
||||
|
||||
case TypeUserPrivacySettingAutosaveGifts:
|
||||
return UnmarshalUserPrivacySettingAutosaveGifts(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
|
|
@ -6654,43 +6777,6 @@ func UnmarshalListOfReportStoryResult(dataList []json.RawMessage) ([]ReportStory
|
|||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalTargetChat(data json.RawMessage) (TargetChat, error) {
|
||||
var meta meta
|
||||
|
||||
err := json.Unmarshal(data, &meta)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch meta.Type {
|
||||
case TypeTargetChatCurrent:
|
||||
return UnmarshalTargetChatCurrent(data)
|
||||
|
||||
case TypeTargetChatChosen:
|
||||
return UnmarshalTargetChatChosen(data)
|
||||
|
||||
case TypeTargetChatInternalLink:
|
||||
return UnmarshalTargetChatInternalLink(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
}
|
||||
|
||||
func UnmarshalListOfTargetChat(dataList []json.RawMessage) ([]TargetChat, error) {
|
||||
list := []TargetChat{}
|
||||
|
||||
for _, data := range dataList {
|
||||
entity, err := UnmarshalTargetChat(data)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
list = append(list, entity)
|
||||
}
|
||||
|
||||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalInternalLinkType(data json.RawMessage) (InternalLinkType, error) {
|
||||
var meta meta
|
||||
|
||||
|
|
@ -8756,6 +8842,14 @@ func UnmarshalClosedVectorPath(data json.RawMessage) (*ClosedVectorPath, error)
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalOutline(data json.RawMessage) (*Outline, error) {
|
||||
var resp Outline
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPollOption(data json.RawMessage) (*PollOption, error) {
|
||||
var resp PollOption
|
||||
|
||||
|
|
@ -9260,6 +9354,22 @@ func UnmarshalChatAdministratorRights(data json.RawMessage) (*ChatAdministratorR
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStarSubscriptionTypeChannel(data json.RawMessage) (*StarSubscriptionTypeChannel, error) {
|
||||
var resp StarSubscriptionTypeChannel
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStarSubscriptionTypeBot(data json.RawMessage) (*StarSubscriptionTypeBot, error) {
|
||||
var resp StarSubscriptionTypeBot
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStarSubscriptionPricing(data json.RawMessage) (*StarSubscriptionPricing, error) {
|
||||
var resp StarSubscriptionPricing
|
||||
|
||||
|
|
@ -9436,6 +9546,14 @@ func UnmarshalBotTransactionPurposeInvoicePayment(data json.RawMessage) (*BotTra
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalBotTransactionPurposeSubscription(data json.RawMessage) (*BotTransactionPurposeSubscription, error) {
|
||||
var resp BotTransactionPurposeSubscription
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalChatTransactionPurposePaidMedia(data json.RawMessage) (*ChatTransactionPurposePaidMedia, error) {
|
||||
var resp ChatTransactionPurposePaidMedia
|
||||
|
||||
|
|
@ -11308,6 +11426,38 @@ func UnmarshalLoginUrlInfoRequestConfirmation(data json.RawMessage) (*LoginUrlIn
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalThemeParameters(data json.RawMessage) (*ThemeParameters, error) {
|
||||
var resp ThemeParameters
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalWebAppOpenModeCompact(data json.RawMessage) (*WebAppOpenModeCompact, error) {
|
||||
var resp WebAppOpenModeCompact
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalWebAppOpenModeFullSize(data json.RawMessage) (*WebAppOpenModeFullSize, error) {
|
||||
var resp WebAppOpenModeFullSize
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalWebAppOpenModeFullScreen(data json.RawMessage) (*WebAppOpenModeFullScreen, error) {
|
||||
var resp WebAppOpenModeFullScreen
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalFoundWebApp(data json.RawMessage) (*FoundWebApp, error) {
|
||||
var resp FoundWebApp
|
||||
|
||||
|
|
@ -11332,6 +11482,14 @@ func UnmarshalMainWebApp(data json.RawMessage) (*MainWebApp, error) {
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalWebAppOpenParameters(data json.RawMessage) (*WebAppOpenParameters, error) {
|
||||
var resp WebAppOpenParameters
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalMessageThreadInfo(data json.RawMessage) (*MessageThreadInfo, error) {
|
||||
var resp MessageThreadInfo
|
||||
|
||||
|
|
@ -12244,14 +12402,6 @@ func UnmarshalLocationAddress(data json.RawMessage) (*LocationAddress, error) {
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalThemeParameters(data json.RawMessage) (*ThemeParameters, error) {
|
||||
var resp ThemeParameters
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalLabeledPricePart(data json.RawMessage) (*LabeledPricePart, error) {
|
||||
var resp LabeledPricePart
|
||||
|
||||
|
|
@ -12372,6 +12522,14 @@ func UnmarshalPaymentFormTypeStars(data json.RawMessage) (*PaymentFormTypeStars,
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPaymentFormTypeStarSubscription(data json.RawMessage) (*PaymentFormTypeStarSubscription, error) {
|
||||
var resp PaymentFormTypeStarSubscription
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPaymentForm(data json.RawMessage) (*PaymentForm, error) {
|
||||
var resp PaymentForm
|
||||
|
||||
|
|
@ -15540,6 +15698,38 @@ func UnmarshalUserLink(data json.RawMessage) (*UserLink, error) {
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalTargetChatTypes(data json.RawMessage) (*TargetChatTypes, error) {
|
||||
var resp TargetChatTypes
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalTargetChatCurrent(data json.RawMessage) (*TargetChatCurrent, error) {
|
||||
var resp TargetChatCurrent
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalTargetChatChosen(data json.RawMessage) (*TargetChatChosen, error) {
|
||||
var resp TargetChatChosen
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalTargetChatInternalLink(data json.RawMessage) (*TargetChatInternalLink, error) {
|
||||
var resp TargetChatInternalLink
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalInputInlineQueryResultAnimation(data json.RawMessage) (*InputInlineQueryResultAnimation, error) {
|
||||
var resp InputInlineQueryResultAnimation
|
||||
|
||||
|
|
@ -15764,6 +15954,22 @@ func UnmarshalInlineQueryResults(data json.RawMessage) (*InlineQueryResults, err
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPreparedInlineMessageId(data json.RawMessage) (*PreparedInlineMessageId, error) {
|
||||
var resp PreparedInlineMessageId
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPreparedInlineMessage(data json.RawMessage) (*PreparedInlineMessage, error) {
|
||||
var resp PreparedInlineMessage
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalCallbackQueryPayloadData(data json.RawMessage) (*CallbackQueryPayloadData, error) {
|
||||
var resp CallbackQueryPayloadData
|
||||
|
||||
|
|
@ -17924,6 +18130,14 @@ func UnmarshalUserPrivacySettingRuleAllowContacts(data json.RawMessage) (*UserPr
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUserPrivacySettingRuleAllowBots(data json.RawMessage) (*UserPrivacySettingRuleAllowBots, error) {
|
||||
var resp UserPrivacySettingRuleAllowBots
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUserPrivacySettingRuleAllowPremiumUsers(data json.RawMessage) (*UserPrivacySettingRuleAllowPremiumUsers, error) {
|
||||
var resp UserPrivacySettingRuleAllowPremiumUsers
|
||||
|
||||
|
|
@ -17964,6 +18178,14 @@ func UnmarshalUserPrivacySettingRuleRestrictContacts(data json.RawMessage) (*Use
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUserPrivacySettingRuleRestrictBots(data json.RawMessage) (*UserPrivacySettingRuleRestrictBots, error) {
|
||||
var resp UserPrivacySettingRuleRestrictBots
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUserPrivacySettingRuleRestrictUsers(data json.RawMessage) (*UserPrivacySettingRuleRestrictUsers, error) {
|
||||
var resp UserPrivacySettingRuleRestrictUsers
|
||||
|
||||
|
|
@ -18076,6 +18298,14 @@ func UnmarshalUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages(data json.
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUserPrivacySettingAutosaveGifts(data json.RawMessage) (*UserPrivacySettingAutosaveGifts, error) {
|
||||
var resp UserPrivacySettingAutosaveGifts
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalReadDatePrivacySettings(data json.RawMessage) (*ReadDatePrivacySettings, error) {
|
||||
var resp ReadDatePrivacySettings
|
||||
|
||||
|
|
@ -18444,30 +18674,6 @@ func UnmarshalReportStoryResultTextRequired(data json.RawMessage) (*ReportStoryR
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalTargetChatCurrent(data json.RawMessage) (*TargetChatCurrent, error) {
|
||||
var resp TargetChatCurrent
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalTargetChatChosen(data json.RawMessage) (*TargetChatChosen, error) {
|
||||
var resp TargetChatChosen
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalTargetChatInternalLink(data json.RawMessage) (*TargetChatInternalLink, error) {
|
||||
var resp TargetChatInternalLink
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalInternalLinkTypeActiveSessions(data json.RawMessage) (*InternalLinkTypeActiveSessions, error) {
|
||||
var resp InternalLinkTypeActiveSessions
|
||||
|
||||
|
|
@ -21453,6 +21659,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeClosedVectorPath:
|
||||
return UnmarshalClosedVectorPath(data)
|
||||
|
||||
case TypeOutline:
|
||||
return UnmarshalOutline(data)
|
||||
|
||||
case TypePollOption:
|
||||
return UnmarshalPollOption(data)
|
||||
|
||||
|
|
@ -21642,6 +21851,12 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeChatAdministratorRights:
|
||||
return UnmarshalChatAdministratorRights(data)
|
||||
|
||||
case TypeStarSubscriptionTypeChannel:
|
||||
return UnmarshalStarSubscriptionTypeChannel(data)
|
||||
|
||||
case TypeStarSubscriptionTypeBot:
|
||||
return UnmarshalStarSubscriptionTypeBot(data)
|
||||
|
||||
case TypeStarSubscriptionPricing:
|
||||
return UnmarshalStarSubscriptionPricing(data)
|
||||
|
||||
|
|
@ -21708,6 +21923,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeBotTransactionPurposeInvoicePayment:
|
||||
return UnmarshalBotTransactionPurposeInvoicePayment(data)
|
||||
|
||||
case TypeBotTransactionPurposeSubscription:
|
||||
return UnmarshalBotTransactionPurposeSubscription(data)
|
||||
|
||||
case TypeChatTransactionPurposePaidMedia:
|
||||
return UnmarshalChatTransactionPurposePaidMedia(data)
|
||||
|
||||
|
|
@ -22410,6 +22628,18 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeLoginUrlInfoRequestConfirmation:
|
||||
return UnmarshalLoginUrlInfoRequestConfirmation(data)
|
||||
|
||||
case TypeThemeParameters:
|
||||
return UnmarshalThemeParameters(data)
|
||||
|
||||
case TypeWebAppOpenModeCompact:
|
||||
return UnmarshalWebAppOpenModeCompact(data)
|
||||
|
||||
case TypeWebAppOpenModeFullSize:
|
||||
return UnmarshalWebAppOpenModeFullSize(data)
|
||||
|
||||
case TypeWebAppOpenModeFullScreen:
|
||||
return UnmarshalWebAppOpenModeFullScreen(data)
|
||||
|
||||
case TypeFoundWebApp:
|
||||
return UnmarshalFoundWebApp(data)
|
||||
|
||||
|
|
@ -22419,6 +22649,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeMainWebApp:
|
||||
return UnmarshalMainWebApp(data)
|
||||
|
||||
case TypeWebAppOpenParameters:
|
||||
return UnmarshalWebAppOpenParameters(data)
|
||||
|
||||
case TypeMessageThreadInfo:
|
||||
return UnmarshalMessageThreadInfo(data)
|
||||
|
||||
|
|
@ -22761,9 +22994,6 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeLocationAddress:
|
||||
return UnmarshalLocationAddress(data)
|
||||
|
||||
case TypeThemeParameters:
|
||||
return UnmarshalThemeParameters(data)
|
||||
|
||||
case TypeLabeledPricePart:
|
||||
return UnmarshalLabeledPricePart(data)
|
||||
|
||||
|
|
@ -22809,6 +23039,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypePaymentFormTypeStars:
|
||||
return UnmarshalPaymentFormTypeStars(data)
|
||||
|
||||
case TypePaymentFormTypeStarSubscription:
|
||||
return UnmarshalPaymentFormTypeStarSubscription(data)
|
||||
|
||||
case TypePaymentForm:
|
||||
return UnmarshalPaymentForm(data)
|
||||
|
||||
|
|
@ -23997,6 +24230,18 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeUserLink:
|
||||
return UnmarshalUserLink(data)
|
||||
|
||||
case TypeTargetChatTypes:
|
||||
return UnmarshalTargetChatTypes(data)
|
||||
|
||||
case TypeTargetChatCurrent:
|
||||
return UnmarshalTargetChatCurrent(data)
|
||||
|
||||
case TypeTargetChatChosen:
|
||||
return UnmarshalTargetChatChosen(data)
|
||||
|
||||
case TypeTargetChatInternalLink:
|
||||
return UnmarshalTargetChatInternalLink(data)
|
||||
|
||||
case TypeInputInlineQueryResultAnimation:
|
||||
return UnmarshalInputInlineQueryResultAnimation(data)
|
||||
|
||||
|
|
@ -24081,6 +24326,12 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeInlineQueryResults:
|
||||
return UnmarshalInlineQueryResults(data)
|
||||
|
||||
case TypePreparedInlineMessageId:
|
||||
return UnmarshalPreparedInlineMessageId(data)
|
||||
|
||||
case TypePreparedInlineMessage:
|
||||
return UnmarshalPreparedInlineMessage(data)
|
||||
|
||||
case TypeCallbackQueryPayloadData:
|
||||
return UnmarshalCallbackQueryPayloadData(data)
|
||||
|
||||
|
|
@ -24891,6 +25142,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeUserPrivacySettingRuleAllowContacts:
|
||||
return UnmarshalUserPrivacySettingRuleAllowContacts(data)
|
||||
|
||||
case TypeUserPrivacySettingRuleAllowBots:
|
||||
return UnmarshalUserPrivacySettingRuleAllowBots(data)
|
||||
|
||||
case TypeUserPrivacySettingRuleAllowPremiumUsers:
|
||||
return UnmarshalUserPrivacySettingRuleAllowPremiumUsers(data)
|
||||
|
||||
|
|
@ -24906,6 +25160,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeUserPrivacySettingRuleRestrictContacts:
|
||||
return UnmarshalUserPrivacySettingRuleRestrictContacts(data)
|
||||
|
||||
case TypeUserPrivacySettingRuleRestrictBots:
|
||||
return UnmarshalUserPrivacySettingRuleRestrictBots(data)
|
||||
|
||||
case TypeUserPrivacySettingRuleRestrictUsers:
|
||||
return UnmarshalUserPrivacySettingRuleRestrictUsers(data)
|
||||
|
||||
|
|
@ -24948,6 +25205,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages:
|
||||
return UnmarshalUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages(data)
|
||||
|
||||
case TypeUserPrivacySettingAutosaveGifts:
|
||||
return UnmarshalUserPrivacySettingAutosaveGifts(data)
|
||||
|
||||
case TypeReadDatePrivacySettings:
|
||||
return UnmarshalReadDatePrivacySettings(data)
|
||||
|
||||
|
|
@ -25086,15 +25346,6 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeReportStoryResultTextRequired:
|
||||
return UnmarshalReportStoryResultTextRequired(data)
|
||||
|
||||
case TypeTargetChatCurrent:
|
||||
return UnmarshalTargetChatCurrent(data)
|
||||
|
||||
case TypeTargetChatChosen:
|
||||
return UnmarshalTargetChatChosen(data)
|
||||
|
||||
case TypeTargetChatInternalLink:
|
||||
return UnmarshalTargetChatInternalLink(data)
|
||||
|
||||
case TypeInternalLinkTypeActiveSessions:
|
||||
return UnmarshalInternalLinkTypeActiveSessions(data)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue