mirror of
https://github.com/c0re100/gotdlib.git
synced 2026-03-19 14:58:21 +01:00
Update to TDLib 1.8.62
This commit is contained in:
parent
c9c7701a0d
commit
b64a6e63b5
4 changed files with 1302 additions and 75 deletions
|
|
@ -1505,7 +1505,7 @@ type GetRepliedMessageRequest struct {
|
||||||
MessageId int64 `json:"message_id"`
|
MessageId int64 `json:"message_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns information about a non-bundled message that is replied by a given message. Also, returns the pinned message 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, the message with gift purchase offer for messageUpgradedGiftPurchaseOfferRejected, and the topic creation message for topic messages without non-bundled replied message. 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, the message with gift purchase offer for messageUpgradedGiftPurchaseOfferRejected, the message with the request to disable content protection for messageChatHasProtectedContentToggled, 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) {
|
func (client *Client) GetRepliedMessage(req *GetRepliedMessageRequest) (*Message, error) {
|
||||||
result, err := client.Send(Request{
|
result, err := client.Send(Request{
|
||||||
meta: meta{
|
meta: meta{
|
||||||
|
|
@ -8286,7 +8286,7 @@ type GetPollVotersRequest struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns message senders voted for the specified option in a non-anonymous polls. For optimal performance, the number of returned users is chosen by TDLib
|
// Returns message senders voted for the specified option in a non-anonymous polls. For optimal performance, the number of returned users is chosen by TDLib
|
||||||
func (client *Client) GetPollVoters(req *GetPollVotersRequest) (*MessageSenders, error) {
|
func (client *Client) GetPollVoters(req *GetPollVotersRequest) (*PollVoters, error) {
|
||||||
result, err := client.Send(Request{
|
result, err := client.Send(Request{
|
||||||
meta: meta{
|
meta: meta{
|
||||||
Type: "getPollVoters",
|
Type: "getPollVoters",
|
||||||
|
|
@ -8307,7 +8307,7 @@ func (client *Client) GetPollVoters(req *GetPollVotersRequest) (*MessageSenders,
|
||||||
return nil, buildResponseError(result.Data)
|
return nil, buildResponseError(result.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
return UnmarshalMessageSenders(result.Data)
|
return UnmarshalPollVoters(result.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
type StopPollRequest struct {
|
type StopPollRequest struct {
|
||||||
|
|
@ -9785,6 +9785,9 @@ func (client *Client) GetInternalLinkType(req *GetInternalLinkTypeRequest) (Inte
|
||||||
case TypeInternalLinkTypeNewStory:
|
case TypeInternalLinkTypeNewStory:
|
||||||
return UnmarshalInternalLinkTypeNewStory(result.Data)
|
return UnmarshalInternalLinkTypeNewStory(result.Data)
|
||||||
|
|
||||||
|
case TypeInternalLinkTypeOauth:
|
||||||
|
return UnmarshalInternalLinkTypeOauth(result.Data)
|
||||||
|
|
||||||
case TypeInternalLinkTypePassportDataRequest:
|
case TypeInternalLinkTypePassportDataRequest:
|
||||||
return UnmarshalInternalLinkTypePassportDataRequest(result.Data)
|
return UnmarshalInternalLinkTypePassportDataRequest(result.Data)
|
||||||
|
|
||||||
|
|
@ -9899,8 +9902,6 @@ type GetExternalLinkRequest struct {
|
||||||
Link string `json:"link"`
|
Link string `json:"link"`
|
||||||
// Pass true if the current user allowed the bot that was returned in getExternalLinkInfo, to send them messages
|
// Pass true if the current user allowed the bot that was returned in getExternalLinkInfo, to send them messages
|
||||||
AllowWriteAccess bool `json:"allow_write_access"`
|
AllowWriteAccess bool `json:"allow_write_access"`
|
||||||
// Pass true if the current user allowed the bot that was returned in getExternalLinkInfo, to access their phone number
|
|
||||||
AllowPhoneNumberAccess bool `json:"allow_phone_number_access"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns an HTTP URL which can be used to automatically authorize the current user on a website after clicking an HTTP link. Use the method getExternalLinkInfo to find whether a prior user confirmation is needed. May return an empty link if just a toast about successful login has to be shown
|
// Returns an HTTP URL which can be used to automatically authorize the current user on a website after clicking an HTTP link. Use the method getExternalLinkInfo to find whether a prior user confirmation is needed. May return an empty link if just a toast about successful login has to be shown
|
||||||
|
|
@ -9912,6 +9913,98 @@ func (client *Client) GetExternalLink(req *GetExternalLinkRequest) (*HttpUrl, er
|
||||||
Data: map[string]interface{}{
|
Data: map[string]interface{}{
|
||||||
"link": req.Link,
|
"link": req.Link,
|
||||||
"allow_write_access": req.AllowWriteAccess,
|
"allow_write_access": req.AllowWriteAccess,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalHttpUrl(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetOauthLinkInfoRequest struct {
|
||||||
|
// URL of the link
|
||||||
|
Url string `json:"url"`
|
||||||
|
// Origin of the OAuth request if the request was received from the in-app browser; pass an empty string otherwise
|
||||||
|
InAppOrigin string `json:"in_app_origin"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Returns information about an OAuth deep link. Use checkOauthRequestMatchCode, acceptOauthRequest or declineOauthRequest to process the link
|
||||||
|
func (client *Client) GetOauthLinkInfo(req *GetOauthLinkInfoRequest) (*OauthLinkInfo, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "getOauthLinkInfo",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"url": req.Url,
|
||||||
|
"in_app_origin": req.InAppOrigin,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOauthLinkInfo(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
type CheckOauthRequestMatchCodeRequest struct {
|
||||||
|
// URL of the OAuth deep link
|
||||||
|
Url string `json:"url"`
|
||||||
|
// The matching code chosen by the user
|
||||||
|
MatchCode string `json:"match_code"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Checks a match-code for an OAuth authorization request. If fails, then the authorization request has failed. Otherwise, authorization confirmation dialog must be shown and the link must be processed using acceptOauthRequest or declineOauthRequest
|
||||||
|
func (client *Client) CheckOauthRequestMatchCode(req *CheckOauthRequestMatchCodeRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "checkOauthRequestMatchCode",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"url": req.Url,
|
||||||
|
"match_code": req.MatchCode,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
type AcceptOauthRequestRequest struct {
|
||||||
|
// URL of the OAuth deep link
|
||||||
|
Url string `json:"url"`
|
||||||
|
// The matching code chosen by the user
|
||||||
|
MatchCode string `json:"match_code"`
|
||||||
|
// Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to send them messages
|
||||||
|
AllowWriteAccess bool `json:"allow_write_access"`
|
||||||
|
// Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to access their phone number
|
||||||
|
AllowPhoneNumberAccess bool `json:"allow_phone_number_access"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization. May return an empty link if just a toast about successful login has to be shown
|
||||||
|
func (client *Client) AcceptOauthRequest(req *AcceptOauthRequestRequest) (*HttpUrl, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "acceptOauthRequest",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"url": req.Url,
|
||||||
|
"match_code": req.MatchCode,
|
||||||
|
"allow_write_access": req.AllowWriteAccess,
|
||||||
"allow_phone_number_access": req.AllowPhoneNumberAccess,
|
"allow_phone_number_access": req.AllowPhoneNumberAccess,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
@ -9926,6 +10019,32 @@ func (client *Client) GetExternalLink(req *GetExternalLinkRequest) (*HttpUrl, er
|
||||||
return UnmarshalHttpUrl(result.Data)
|
return UnmarshalHttpUrl(result.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DeclineOauthRequestRequest struct {
|
||||||
|
// URL of the OAuth deep link
|
||||||
|
Url string `json:"url"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Declines an OAuth authorization request
|
||||||
|
func (client *Client) DeclineOauthRequest(req *DeclineOauthRequestRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "declineOauthRequest",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"url": req.Url,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
type ReadAllChatMentionsRequest struct {
|
type ReadAllChatMentionsRequest struct {
|
||||||
// Chat identifier
|
// Chat identifier
|
||||||
ChatId int64 `json:"chat_id"`
|
ChatId int64 `json:"chat_id"`
|
||||||
|
|
@ -11246,7 +11365,7 @@ type ToggleChatHasProtectedContentRequest struct {
|
||||||
HasProtectedContent bool `json:"has_protected_content"`
|
HasProtectedContent bool `json:"has_protected_content"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Changes the ability of users to save, forward, or copy chat content. Supported only for basic groups, supergroups and channels. Requires owner privileges
|
// Changes the ability of users to save, forward, or copy chat content. Requires owner privileges in basic groups, supergroups and channels. Requires Telegram Premium to enable protected content in private chats. Not available in Saved Messages and private chats with bots or support accounts
|
||||||
func (client *Client) ToggleChatHasProtectedContent(req *ToggleChatHasProtectedContentRequest) (*Ok, error) {
|
func (client *Client) ToggleChatHasProtectedContent(req *ToggleChatHasProtectedContentRequest) (*Ok, error) {
|
||||||
result, err := client.Send(Request{
|
result, err := client.Send(Request{
|
||||||
meta: meta{
|
meta: meta{
|
||||||
|
|
@ -11268,6 +11387,38 @@ func (client *Client) ToggleChatHasProtectedContent(req *ToggleChatHasProtectedC
|
||||||
return UnmarshalOk(result.Data)
|
return UnmarshalOk(result.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ProcessChatHasProtectedContentDisableRequestRequest struct {
|
||||||
|
// Chat identifier
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
// Identifier of the message with the request. The message must be incoming and has content of the type messageChatHasProtectedContentDisableRequested
|
||||||
|
RequestMessageId int64 `json:"request_message_id"`
|
||||||
|
// Pass true to approve the request; pass false to reject the request
|
||||||
|
Approve bool `json:"approve"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Processes request to disable has_protected_content in a chat
|
||||||
|
func (client *Client) ProcessChatHasProtectedContentDisableRequest(req *ProcessChatHasProtectedContentDisableRequestRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "processChatHasProtectedContentDisableRequest",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"chat_id": req.ChatId,
|
||||||
|
"request_message_id": req.RequestMessageId,
|
||||||
|
"approve": req.Approve,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
type ToggleChatViewAsTopicsRequest struct {
|
type ToggleChatViewAsTopicsRequest struct {
|
||||||
// Chat identifier
|
// Chat identifier
|
||||||
ChatId int64 `json:"chat_id"`
|
ChatId int64 `json:"chat_id"`
|
||||||
|
|
@ -11825,6 +11976,38 @@ func (client *Client) SetChatMemberStatus(req *SetChatMemberStatusRequest) (*Ok,
|
||||||
return UnmarshalOk(result.Data)
|
return UnmarshalOk(result.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type SetChatMemberTagRequest struct {
|
||||||
|
// Chat identifier
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
// Identifier of the user, which tag is changed. Chats can't have member tags
|
||||||
|
UserId int64 `json:"user_id"`
|
||||||
|
// The new tag of the member in the chat; 0-16 characters without emoji
|
||||||
|
Tag string `json:"tag"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Changes the tag or custom title of a chat member; requires can_manage_tags administrator right to change tag of other users; for basic groups and supergroups only
|
||||||
|
func (client *Client) SetChatMemberTag(req *SetChatMemberTagRequest) (*Ok, error) {
|
||||||
|
result, err := client.Send(Request{
|
||||||
|
meta: meta{
|
||||||
|
Type: "setChatMemberTag",
|
||||||
|
},
|
||||||
|
Data: map[string]interface{}{
|
||||||
|
"chat_id": req.ChatId,
|
||||||
|
"user_id": req.UserId,
|
||||||
|
"tag": req.Tag,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if result.Type == "error" {
|
||||||
|
return nil, buildResponseError(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnmarshalOk(result.Data)
|
||||||
|
}
|
||||||
|
|
||||||
type BanChatMemberRequest struct {
|
type BanChatMemberRequest struct {
|
||||||
// Chat identifier
|
// Chat identifier
|
||||||
ChatId int64 `json:"chat_id"`
|
ChatId int64 `json:"chat_id"`
|
||||||
|
|
@ -11903,7 +12086,7 @@ type TransferChatOwnershipRequest struct {
|
||||||
Password string `json:"password"`
|
Password string `json:"password"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Changes the owner of a chat; requires owner privileges in the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session. Available only for supergroups and channel chats
|
// Changes the owner of a chat; for basic groups, supergroups and channel chats only; requires owner privileges in the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session
|
||||||
func (client *Client) TransferChatOwnership(req *TransferChatOwnershipRequest) (*Ok, error) {
|
func (client *Client) TransferChatOwnership(req *TransferChatOwnershipRequest) (*Ok, error) {
|
||||||
result, err := client.Send(Request{
|
result, err := client.Send(Request{
|
||||||
meta: meta{
|
meta: meta{
|
||||||
|
|
@ -11931,7 +12114,7 @@ type GetChatOwnerAfterLeavingRequest struct {
|
||||||
ChatId int64 `json:"chat_id"`
|
ChatId int64 `json:"chat_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the user who will become the owner of the chat after 7 days if the current user does not return to the chat during that period; requires owner privileges in the chat. Available only for supergroups and channel chats
|
// Returns the user who will become the owner of the chat after 7 days if the current user does not return to the supergroup or channel during that period or immediately for basic groups; requires owner privileges in the chat. Available only for supergroups and channel chats
|
||||||
func (client *Client) GetChatOwnerAfterLeaving(req *GetChatOwnerAfterLeavingRequest) (*User, error) {
|
func (client *Client) GetChatOwnerAfterLeaving(req *GetChatOwnerAfterLeavingRequest) (*User, error) {
|
||||||
result, err := client.Send(Request{
|
result, err := client.Send(Request{
|
||||||
meta: meta{
|
meta: meta{
|
||||||
|
|
@ -15443,7 +15626,7 @@ func (client *Client) DiscardCall(req *DiscardCallRequest) (*Ok, error) {
|
||||||
|
|
||||||
type SendCallRatingRequest struct {
|
type SendCallRatingRequest struct {
|
||||||
// Call identifier
|
// Call identifier
|
||||||
CallId int32 `json:"call_id"`
|
CallId InputCall `json:"call_id"`
|
||||||
// Call rating; 1-5
|
// Call rating; 1-5
|
||||||
Rating int32 `json:"rating"`
|
Rating int32 `json:"rating"`
|
||||||
// An optional user comment if the rating is less than 5
|
// An optional user comment if the rating is less than 5
|
||||||
|
|
@ -15478,7 +15661,7 @@ func (client *Client) SendCallRating(req *SendCallRatingRequest) (*Ok, error) {
|
||||||
|
|
||||||
type SendCallDebugInformationRequest struct {
|
type SendCallDebugInformationRequest struct {
|
||||||
// Call identifier
|
// Call identifier
|
||||||
CallId int32 `json:"call_id"`
|
CallId InputCall `json:"call_id"`
|
||||||
// Debug information in application-specific format
|
// Debug information in application-specific format
|
||||||
DebugInformation string `json:"debug_information"`
|
DebugInformation string `json:"debug_information"`
|
||||||
}
|
}
|
||||||
|
|
@ -15507,7 +15690,7 @@ func (client *Client) SendCallDebugInformation(req *SendCallDebugInformationRequ
|
||||||
|
|
||||||
type SendCallLogRequest struct {
|
type SendCallLogRequest struct {
|
||||||
// Call identifier
|
// Call identifier
|
||||||
CallId int32 `json:"call_id"`
|
CallId InputCall `json:"call_id"`
|
||||||
// Call log file. Only inputFileLocal and inputFileGenerated are supported
|
// Call log file. Only inputFileLocal and inputFileGenerated are supported
|
||||||
LogFile InputFile `json:"log_file"`
|
LogFile InputFile `json:"log_file"`
|
||||||
}
|
}
|
||||||
|
|
@ -15600,7 +15783,7 @@ type CreateVideoChatRequest struct {
|
||||||
IsRtmpStream bool `json:"is_rtmp_stream"`
|
IsRtmpStream bool `json:"is_rtmp_stream"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Creates a video chat (a group call bound to a chat). Available only for basic groups, supergroups and channels; requires can_manage_video_chats administrator right
|
// Creates a video chat (a group call bound to a chat); for basic groups, supergroups and channels only; requires can_manage_video_chats administrator right
|
||||||
func (client *Client) CreateVideoChat(req *CreateVideoChatRequest) (*GroupCallId, error) {
|
func (client *Client) CreateVideoChat(req *CreateVideoChatRequest) (*GroupCallId, error) {
|
||||||
result, err := client.Send(Request{
|
result, err := client.Send(Request{
|
||||||
meta: meta{
|
meta: meta{
|
||||||
|
|
@ -22484,7 +22667,7 @@ func (client *Client) BuyGiftUpgrade(req *BuyGiftUpgradeRequest) (*Ok, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
type CraftGiftRequest struct {
|
type CraftGiftRequest struct {
|
||||||
// Identifier of the gifts to use for crafting
|
// Identifier of the gifts to use for crafting. In the case of a successful craft, the resulting gift will have the number of the first gift. Consequently, the first gift must not have been withdrawn to the TON blockchain as an NFT and must have an empty gift_address
|
||||||
ReceivedGiftIds []string `json:"received_gift_ids"`
|
ReceivedGiftIds []string `json:"received_gift_ids"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -28522,6 +28705,9 @@ func (client *Client) TestUseUpdate() (Update, error) {
|
||||||
case TypeUpdateServiceNotification:
|
case TypeUpdateServiceNotification:
|
||||||
return UnmarshalUpdateServiceNotification(result.Data)
|
return UnmarshalUpdateServiceNotification(result.Data)
|
||||||
|
|
||||||
|
case TypeUpdateNewOauthRequest:
|
||||||
|
return UnmarshalUpdateNewOauthRequest(result.Data)
|
||||||
|
|
||||||
case TypeUpdateFile:
|
case TypeUpdateFile:
|
||||||
return UnmarshalUpdateFile(result.Data)
|
return UnmarshalUpdateFile(result.Data)
|
||||||
|
|
||||||
|
|
|
||||||
640
client/type.go
640
client/type.go
|
|
@ -101,6 +101,8 @@ const (
|
||||||
ClassPassportElementErrorSource = "PassportElementErrorSource"
|
ClassPassportElementErrorSource = "PassportElementErrorSource"
|
||||||
ClassInputPassportElementErrorSource = "InputPassportElementErrorSource"
|
ClassInputPassportElementErrorSource = "InputPassportElementErrorSource"
|
||||||
ClassMessageContent = "MessageContent"
|
ClassMessageContent = "MessageContent"
|
||||||
|
ClassDateTimePartPrecision = "DateTimePartPrecision"
|
||||||
|
ClassDateTimeFormattingType = "DateTimeFormattingType"
|
||||||
ClassTextEntityType = "TextEntityType"
|
ClassTextEntityType = "TextEntityType"
|
||||||
ClassInputPaidMediaType = "InputPaidMediaType"
|
ClassInputPaidMediaType = "InputPaidMediaType"
|
||||||
ClassMessageSchedulingState = "MessageSchedulingState"
|
ClassMessageSchedulingState = "MessageSchedulingState"
|
||||||
|
|
@ -125,6 +127,7 @@ const (
|
||||||
ClassResendCodeReason = "ResendCodeReason"
|
ClassResendCodeReason = "ResendCodeReason"
|
||||||
ClassCallDiscardReason = "CallDiscardReason"
|
ClassCallDiscardReason = "CallDiscardReason"
|
||||||
ClassCallServerType = "CallServerType"
|
ClassCallServerType = "CallServerType"
|
||||||
|
ClassInputCall = "InputCall"
|
||||||
ClassCallState = "CallState"
|
ClassCallState = "CallState"
|
||||||
ClassGroupCallVideoQuality = "GroupCallVideoQuality"
|
ClassGroupCallVideoQuality = "GroupCallVideoQuality"
|
||||||
ClassInviteGroupCallParticipantResult = "InviteGroupCallParticipantResult"
|
ClassInviteGroupCallParticipantResult = "InviteGroupCallParticipantResult"
|
||||||
|
|
@ -387,6 +390,8 @@ const (
|
||||||
ClassMessageSenders = "MessageSenders"
|
ClassMessageSenders = "MessageSenders"
|
||||||
ClassChatMessageSender = "ChatMessageSender"
|
ClassChatMessageSender = "ChatMessageSender"
|
||||||
ClassChatMessageSenders = "ChatMessageSenders"
|
ClassChatMessageSenders = "ChatMessageSenders"
|
||||||
|
ClassPollVoter = "PollVoter"
|
||||||
|
ClassPollVoters = "PollVoters"
|
||||||
ClassMessageViewer = "MessageViewer"
|
ClassMessageViewer = "MessageViewer"
|
||||||
ClassMessageViewers = "MessageViewers"
|
ClassMessageViewers = "MessageViewers"
|
||||||
ClassForwardSource = "ForwardSource"
|
ClassForwardSource = "ForwardSource"
|
||||||
|
|
@ -453,6 +458,7 @@ const (
|
||||||
ClassAccountInfo = "AccountInfo"
|
ClassAccountInfo = "AccountInfo"
|
||||||
ClassKeyboardButton = "KeyboardButton"
|
ClassKeyboardButton = "KeyboardButton"
|
||||||
ClassInlineKeyboardButton = "InlineKeyboardButton"
|
ClassInlineKeyboardButton = "InlineKeyboardButton"
|
||||||
|
ClassOauthLinkInfo = "OauthLinkInfo"
|
||||||
ClassThemeParameters = "ThemeParameters"
|
ClassThemeParameters = "ThemeParameters"
|
||||||
ClassFoundWebApp = "FoundWebApp"
|
ClassFoundWebApp = "FoundWebApp"
|
||||||
ClassWebAppInfo = "WebAppInfo"
|
ClassWebAppInfo = "WebAppInfo"
|
||||||
|
|
@ -1110,6 +1116,8 @@ const (
|
||||||
TypeMessageSenders = "messageSenders"
|
TypeMessageSenders = "messageSenders"
|
||||||
TypeChatMessageSender = "chatMessageSender"
|
TypeChatMessageSender = "chatMessageSender"
|
||||||
TypeChatMessageSenders = "chatMessageSenders"
|
TypeChatMessageSenders = "chatMessageSenders"
|
||||||
|
TypePollVoter = "pollVoter"
|
||||||
|
TypePollVoters = "pollVoters"
|
||||||
TypeMessageReadDateRead = "messageReadDateRead"
|
TypeMessageReadDateRead = "messageReadDateRead"
|
||||||
TypeMessageReadDateUnread = "messageReadDateUnread"
|
TypeMessageReadDateUnread = "messageReadDateUnread"
|
||||||
TypeMessageReadDateTooOld = "messageReadDateTooOld"
|
TypeMessageReadDateTooOld = "messageReadDateTooOld"
|
||||||
|
|
@ -1272,6 +1280,7 @@ const (
|
||||||
TypeReplyMarkupInlineKeyboard = "replyMarkupInlineKeyboard"
|
TypeReplyMarkupInlineKeyboard = "replyMarkupInlineKeyboard"
|
||||||
TypeLoginUrlInfoOpen = "loginUrlInfoOpen"
|
TypeLoginUrlInfoOpen = "loginUrlInfoOpen"
|
||||||
TypeLoginUrlInfoRequestConfirmation = "loginUrlInfoRequestConfirmation"
|
TypeLoginUrlInfoRequestConfirmation = "loginUrlInfoRequestConfirmation"
|
||||||
|
TypeOauthLinkInfo = "oauthLinkInfo"
|
||||||
TypeThemeParameters = "themeParameters"
|
TypeThemeParameters = "themeParameters"
|
||||||
TypeWebAppOpenModeCompact = "webAppOpenModeCompact"
|
TypeWebAppOpenModeCompact = "webAppOpenModeCompact"
|
||||||
TypeWebAppOpenModeFullSize = "webAppOpenModeFullSize"
|
TypeWebAppOpenModeFullSize = "webAppOpenModeFullSize"
|
||||||
|
|
@ -1548,6 +1557,8 @@ const (
|
||||||
TypeMessageChatDeletePhoto = "messageChatDeletePhoto"
|
TypeMessageChatDeletePhoto = "messageChatDeletePhoto"
|
||||||
TypeMessageChatOwnerLeft = "messageChatOwnerLeft"
|
TypeMessageChatOwnerLeft = "messageChatOwnerLeft"
|
||||||
TypeMessageChatOwnerChanged = "messageChatOwnerChanged"
|
TypeMessageChatOwnerChanged = "messageChatOwnerChanged"
|
||||||
|
TypeMessageChatHasProtectedContentToggled = "messageChatHasProtectedContentToggled"
|
||||||
|
TypeMessageChatHasProtectedContentDisableRequested = "messageChatHasProtectedContentDisableRequested"
|
||||||
TypeMessageChatAddMembers = "messageChatAddMembers"
|
TypeMessageChatAddMembers = "messageChatAddMembers"
|
||||||
TypeMessageChatJoinByLink = "messageChatJoinByLink"
|
TypeMessageChatJoinByLink = "messageChatJoinByLink"
|
||||||
TypeMessageChatJoinByRequest = "messageChatJoinByRequest"
|
TypeMessageChatJoinByRequest = "messageChatJoinByRequest"
|
||||||
|
|
@ -1605,6 +1616,11 @@ const (
|
||||||
TypeMessagePassportDataReceived = "messagePassportDataReceived"
|
TypeMessagePassportDataReceived = "messagePassportDataReceived"
|
||||||
TypeMessageProximityAlertTriggered = "messageProximityAlertTriggered"
|
TypeMessageProximityAlertTriggered = "messageProximityAlertTriggered"
|
||||||
TypeMessageUnsupported = "messageUnsupported"
|
TypeMessageUnsupported = "messageUnsupported"
|
||||||
|
TypeDateTimePartPrecisionNone = "dateTimePartPrecisionNone"
|
||||||
|
TypeDateTimePartPrecisionShort = "dateTimePartPrecisionShort"
|
||||||
|
TypeDateTimePartPrecisionLong = "dateTimePartPrecisionLong"
|
||||||
|
TypeDateTimeFormattingTypeRelative = "dateTimeFormattingTypeRelative"
|
||||||
|
TypeDateTimeFormattingTypeAbsolute = "dateTimeFormattingTypeAbsolute"
|
||||||
TypeTextEntityTypeMention = "textEntityTypeMention"
|
TypeTextEntityTypeMention = "textEntityTypeMention"
|
||||||
TypeTextEntityTypeHashtag = "textEntityTypeHashtag"
|
TypeTextEntityTypeHashtag = "textEntityTypeHashtag"
|
||||||
TypeTextEntityTypeCashtag = "textEntityTypeCashtag"
|
TypeTextEntityTypeCashtag = "textEntityTypeCashtag"
|
||||||
|
|
@ -1627,6 +1643,7 @@ const (
|
||||||
TypeTextEntityTypeMentionName = "textEntityTypeMentionName"
|
TypeTextEntityTypeMentionName = "textEntityTypeMentionName"
|
||||||
TypeTextEntityTypeCustomEmoji = "textEntityTypeCustomEmoji"
|
TypeTextEntityTypeCustomEmoji = "textEntityTypeCustomEmoji"
|
||||||
TypeTextEntityTypeMediaTimestamp = "textEntityTypeMediaTimestamp"
|
TypeTextEntityTypeMediaTimestamp = "textEntityTypeMediaTimestamp"
|
||||||
|
TypeTextEntityTypeDateTime = "textEntityTypeDateTime"
|
||||||
TypeInputThumbnail = "inputThumbnail"
|
TypeInputThumbnail = "inputThumbnail"
|
||||||
TypeInputPaidMediaTypePhoto = "inputPaidMediaTypePhoto"
|
TypeInputPaidMediaTypePhoto = "inputPaidMediaTypePhoto"
|
||||||
TypeInputPaidMediaTypeVideo = "inputPaidMediaTypeVideo"
|
TypeInputPaidMediaTypeVideo = "inputPaidMediaTypeVideo"
|
||||||
|
|
@ -1801,6 +1818,8 @@ const (
|
||||||
TypeCallServer = "callServer"
|
TypeCallServer = "callServer"
|
||||||
TypeCallId = "callId"
|
TypeCallId = "callId"
|
||||||
TypeGroupCallId = "groupCallId"
|
TypeGroupCallId = "groupCallId"
|
||||||
|
TypeInputCallDiscarded = "inputCallDiscarded"
|
||||||
|
TypeInputCallFromMessage = "inputCallFromMessage"
|
||||||
TypeCallStatePending = "callStatePending"
|
TypeCallStatePending = "callStatePending"
|
||||||
TypeCallStateExchangingKeys = "callStateExchangingKeys"
|
TypeCallStateExchangingKeys = "callStateExchangingKeys"
|
||||||
TypeCallStateReady = "callStateReady"
|
TypeCallStateReady = "callStateReady"
|
||||||
|
|
@ -1922,6 +1941,7 @@ const (
|
||||||
TypeChatEventMemberLeft = "chatEventMemberLeft"
|
TypeChatEventMemberLeft = "chatEventMemberLeft"
|
||||||
TypeChatEventMemberPromoted = "chatEventMemberPromoted"
|
TypeChatEventMemberPromoted = "chatEventMemberPromoted"
|
||||||
TypeChatEventMemberRestricted = "chatEventMemberRestricted"
|
TypeChatEventMemberRestricted = "chatEventMemberRestricted"
|
||||||
|
TypeChatEventMemberTagChanged = "chatEventMemberTagChanged"
|
||||||
TypeChatEventMemberSubscriptionExtended = "chatEventMemberSubscriptionExtended"
|
TypeChatEventMemberSubscriptionExtended = "chatEventMemberSubscriptionExtended"
|
||||||
TypeChatEventAvailableReactionsChanged = "chatEventAvailableReactionsChanged"
|
TypeChatEventAvailableReactionsChanged = "chatEventAvailableReactionsChanged"
|
||||||
TypeChatEventBackgroundChanged = "chatEventBackgroundChanged"
|
TypeChatEventBackgroundChanged = "chatEventBackgroundChanged"
|
||||||
|
|
@ -2017,6 +2037,7 @@ const (
|
||||||
TypePremiumFeatureMessageEffects = "premiumFeatureMessageEffects"
|
TypePremiumFeatureMessageEffects = "premiumFeatureMessageEffects"
|
||||||
TypePremiumFeatureChecklists = "premiumFeatureChecklists"
|
TypePremiumFeatureChecklists = "premiumFeatureChecklists"
|
||||||
TypePremiumFeaturePaidMessages = "premiumFeaturePaidMessages"
|
TypePremiumFeaturePaidMessages = "premiumFeaturePaidMessages"
|
||||||
|
TypePremiumFeatureProtectPrivateChatContent = "premiumFeatureProtectPrivateChatContent"
|
||||||
TypeBusinessFeatureLocation = "businessFeatureLocation"
|
TypeBusinessFeatureLocation = "businessFeatureLocation"
|
||||||
TypeBusinessFeatureOpeningHours = "businessFeatureOpeningHours"
|
TypeBusinessFeatureOpeningHours = "businessFeatureOpeningHours"
|
||||||
TypeBusinessFeatureQuickReplies = "businessFeatureQuickReplies"
|
TypeBusinessFeatureQuickReplies = "businessFeatureQuickReplies"
|
||||||
|
|
@ -2322,6 +2343,7 @@ const (
|
||||||
TypeInternalLinkTypeNewGroupChat = "internalLinkTypeNewGroupChat"
|
TypeInternalLinkTypeNewGroupChat = "internalLinkTypeNewGroupChat"
|
||||||
TypeInternalLinkTypeNewPrivateChat = "internalLinkTypeNewPrivateChat"
|
TypeInternalLinkTypeNewPrivateChat = "internalLinkTypeNewPrivateChat"
|
||||||
TypeInternalLinkTypeNewStory = "internalLinkTypeNewStory"
|
TypeInternalLinkTypeNewStory = "internalLinkTypeNewStory"
|
||||||
|
TypeInternalLinkTypeOauth = "internalLinkTypeOauth"
|
||||||
TypeInternalLinkTypePassportDataRequest = "internalLinkTypePassportDataRequest"
|
TypeInternalLinkTypePassportDataRequest = "internalLinkTypePassportDataRequest"
|
||||||
TypeInternalLinkTypePhoneNumberConfirmation = "internalLinkTypePhoneNumberConfirmation"
|
TypeInternalLinkTypePhoneNumberConfirmation = "internalLinkTypePhoneNumberConfirmation"
|
||||||
TypeInternalLinkTypePremiumFeaturesPage = "internalLinkTypePremiumFeaturesPage"
|
TypeInternalLinkTypePremiumFeaturesPage = "internalLinkTypePremiumFeaturesPage"
|
||||||
|
|
@ -2573,6 +2595,7 @@ const (
|
||||||
TypeUpdateBasicGroupFullInfo = "updateBasicGroupFullInfo"
|
TypeUpdateBasicGroupFullInfo = "updateBasicGroupFullInfo"
|
||||||
TypeUpdateSupergroupFullInfo = "updateSupergroupFullInfo"
|
TypeUpdateSupergroupFullInfo = "updateSupergroupFullInfo"
|
||||||
TypeUpdateServiceNotification = "updateServiceNotification"
|
TypeUpdateServiceNotification = "updateServiceNotification"
|
||||||
|
TypeUpdateNewOauthRequest = "updateNewOauthRequest"
|
||||||
TypeUpdateFile = "updateFile"
|
TypeUpdateFile = "updateFile"
|
||||||
TypeUpdateFileGenerationStart = "updateFileGenerationStart"
|
TypeUpdateFileGenerationStart = "updateFileGenerationStart"
|
||||||
TypeUpdateFileGenerationStop = "updateFileGenerationStop"
|
TypeUpdateFileGenerationStop = "updateFileGenerationStop"
|
||||||
|
|
@ -3039,7 +3062,7 @@ type ReplyMarkup interface {
|
||||||
ReplyMarkupType() string
|
ReplyMarkupType() string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl
|
// Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl or an external link
|
||||||
type LoginUrlInfo interface {
|
type LoginUrlInfo interface {
|
||||||
LoginUrlInfoType() string
|
LoginUrlInfoType() string
|
||||||
}
|
}
|
||||||
|
|
@ -3154,6 +3177,16 @@ type MessageContent interface {
|
||||||
MessageContentType() string
|
MessageContentType() string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Describes precision with which to show a date or a time
|
||||||
|
type DateTimePartPrecision interface {
|
||||||
|
DateTimePartPrecisionType() string
|
||||||
|
}
|
||||||
|
|
||||||
|
// Describes date and time formatting
|
||||||
|
type DateTimeFormattingType interface {
|
||||||
|
DateTimeFormattingTypeType() string
|
||||||
|
}
|
||||||
|
|
||||||
// Represents a part of the text which must be formatted differently
|
// Represents a part of the text which must be formatted differently
|
||||||
type TextEntityType interface {
|
type TextEntityType interface {
|
||||||
TextEntityTypeType() string
|
TextEntityTypeType() string
|
||||||
|
|
@ -3274,6 +3307,11 @@ type CallServerType interface {
|
||||||
CallServerTypeType() string
|
CallServerTypeType() string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Describes a call
|
||||||
|
type InputCall interface {
|
||||||
|
InputCallType() string
|
||||||
|
}
|
||||||
|
|
||||||
// Describes the current call state
|
// Describes the current call state
|
||||||
type CallState interface {
|
type CallState interface {
|
||||||
CallStateType() string
|
CallStateType() string
|
||||||
|
|
@ -8485,6 +8523,8 @@ type ChatPermissions struct {
|
||||||
CanUseInlineBots bool `json:"can_use_inline_bots"`
|
CanUseInlineBots bool `json:"can_use_inline_bots"`
|
||||||
// True, if the user may add a link preview to their messages
|
// True, if the user may add a link preview to their messages
|
||||||
CanAddLinkPreviews bool `json:"can_add_link_previews"`
|
CanAddLinkPreviews bool `json:"can_add_link_previews"`
|
||||||
|
// True, if the user may change the tag of self
|
||||||
|
CanEditTag bool `json:"can_edit_tag"`
|
||||||
// True, if the user can change the chat title, photo, and other settings
|
// True, if the user can change the chat title, photo, and other settings
|
||||||
CanChangeInfo bool `json:"can_change_info"`
|
CanChangeInfo bool `json:"can_change_info"`
|
||||||
// True, if the user can invite new users to the chat
|
// True, if the user can invite new users to the chat
|
||||||
|
|
@ -8544,6 +8584,8 @@ type ChatAdministratorRights struct {
|
||||||
CanDeleteStories bool `json:"can_delete_stories"`
|
CanDeleteStories bool `json:"can_delete_stories"`
|
||||||
// True, if the administrator can answer to channel direct messages; applicable to channels only
|
// True, if the administrator can answer to channel direct messages; applicable to channels only
|
||||||
CanManageDirectMessages bool `json:"can_manage_direct_messages"`
|
CanManageDirectMessages bool `json:"can_manage_direct_messages"`
|
||||||
|
// True, if the administrator can change tags of other users; applicable to basic groups and supergroups only
|
||||||
|
CanManageTags bool `json:"can_manage_tags"`
|
||||||
// True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only
|
// True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only
|
||||||
IsAnonymous bool `json:"is_anonymous"`
|
IsAnonymous bool `json:"is_anonymous"`
|
||||||
}
|
}
|
||||||
|
|
@ -15602,8 +15644,6 @@ func (*ChatAdministrators) GetType() string {
|
||||||
// The user is the owner of the chat and has all the administrator privileges
|
// The user is the owner of the chat and has all the administrator privileges
|
||||||
type ChatMemberStatusCreator struct {
|
type ChatMemberStatusCreator struct {
|
||||||
meta
|
meta
|
||||||
// A custom title of the owner; 0-16 characters without emoji; applicable to supergroups only
|
|
||||||
CustomTitle string `json:"custom_title"`
|
|
||||||
// True, if the creator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only
|
// True, if the creator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only
|
||||||
IsAnonymous bool `json:"is_anonymous"`
|
IsAnonymous bool `json:"is_anonymous"`
|
||||||
// True, if the user is a member of the chat
|
// True, if the user is a member of the chat
|
||||||
|
|
@ -15633,8 +15673,6 @@ func (*ChatMemberStatusCreator) ChatMemberStatusType() string {
|
||||||
// The user is a member of the chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged members, and manage video chats. In supergroups and channels, there are more detailed options for administrator privileges
|
// The user is a member of the chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged members, and manage video chats. In supergroups and channels, there are more detailed options for administrator privileges
|
||||||
type ChatMemberStatusAdministrator struct {
|
type ChatMemberStatusAdministrator struct {
|
||||||
meta
|
meta
|
||||||
// A custom title of the administrator; 0-16 characters without emoji; applicable to supergroups only
|
|
||||||
CustomTitle string `json:"custom_title"`
|
|
||||||
// True, if the current user can edit the administrator privileges for the called user
|
// True, if the current user can edit the administrator privileges for the called user
|
||||||
CanBeEdited bool `json:"can_be_edited"`
|
CanBeEdited bool `json:"can_be_edited"`
|
||||||
// Rights of the administrator
|
// Rights of the administrator
|
||||||
|
|
@ -15776,6 +15814,8 @@ type ChatMember struct {
|
||||||
meta
|
meta
|
||||||
// Identifier of the chat member. Currently, other chats can be only Left or Banned. Only supergroups and channels can have other chats as Left or Banned members and these chats must be supergroups or channels
|
// Identifier of the chat member. Currently, other chats can be only Left or Banned. Only supergroups and channels can have other chats as Left or Banned members and these chats must be supergroups or channels
|
||||||
MemberId MessageSender `json:"member_id"`
|
MemberId MessageSender `json:"member_id"`
|
||||||
|
// Tag of the chat member or its custom title if the member is an administrator of the chat; 0-16 characters without emoji; applicable to basic groups and supergroups only
|
||||||
|
Tag string `json:"tag"`
|
||||||
// Identifier of a user who invited/promoted/banned this member in the chat; 0 if unknown
|
// Identifier of a user who invited/promoted/banned this member in the chat; 0 if unknown
|
||||||
InviterUserId int64 `json:"inviter_user_id"`
|
InviterUserId int64 `json:"inviter_user_id"`
|
||||||
// Point in time (Unix timestamp) when the user joined/was promoted/was banned in the chat
|
// Point in time (Unix timestamp) when the user joined/was promoted/was banned in the chat
|
||||||
|
|
@ -15803,6 +15843,7 @@ func (*ChatMember) GetType() string {
|
||||||
func (chatMember *ChatMember) UnmarshalJSON(data []byte) error {
|
func (chatMember *ChatMember) UnmarshalJSON(data []byte) error {
|
||||||
var tmp struct {
|
var tmp struct {
|
||||||
MemberId json.RawMessage `json:"member_id"`
|
MemberId json.RawMessage `json:"member_id"`
|
||||||
|
Tag string `json:"tag"`
|
||||||
InviterUserId int64 `json:"inviter_user_id"`
|
InviterUserId int64 `json:"inviter_user_id"`
|
||||||
JoinedChatDate int32 `json:"joined_chat_date"`
|
JoinedChatDate int32 `json:"joined_chat_date"`
|
||||||
Status json.RawMessage `json:"status"`
|
Status json.RawMessage `json:"status"`
|
||||||
|
|
@ -15813,6 +15854,7 @@ func (chatMember *ChatMember) UnmarshalJSON(data []byte) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
chatMember.Tag = tmp.Tag
|
||||||
chatMember.InviterUserId = tmp.InviterUserId
|
chatMember.InviterUserId = tmp.InviterUserId
|
||||||
chatMember.JoinedChatDate = tmp.JoinedChatDate
|
chatMember.JoinedChatDate = tmp.JoinedChatDate
|
||||||
|
|
||||||
|
|
@ -16823,7 +16865,7 @@ type Supergroup struct {
|
||||||
Usernames *Usernames `json:"usernames"`
|
Usernames *Usernames `json:"usernames"`
|
||||||
// Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member
|
// Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member
|
||||||
Date int32 `json:"date"`
|
Date int32 `json:"date"`
|
||||||
// Status of the current user in the supergroup or channel; custom title will always be empty
|
// Status of the current user in the supergroup or channel
|
||||||
Status ChatMemberStatus `json:"status"`
|
Status ChatMemberStatus `json:"status"`
|
||||||
// Number of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the supergroup or channel was received through getChatSimilarChats, getChatsToPostStories, getCreatedPublicChats, getGroupsInCommon, getInactiveSupergroupChats, getRecommendedChats, getSuitableDiscussionChats, getUserPrivacySettingRules, getVideoChatAvailableParticipants, searchPublicChats, or in chatFolderInviteLinkInfo.missing_chat_ids, or in userFullInfo.personal_chat_id, or for chats with messages or stories from publicForwards and foundStories
|
// Number of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the supergroup or channel was received through getChatSimilarChats, getChatsToPostStories, getCreatedPublicChats, getGroupsInCommon, getInactiveSupergroupChats, getRecommendedChats, getSuitableDiscussionChats, getUserPrivacySettingRules, getVideoChatAvailableParticipants, searchPublicChats, or in chatFolderInviteLinkInfo.missing_chat_ids, or in userFullInfo.personal_chat_id, or for chats with messages or stories from publicForwards and foundStories
|
||||||
MemberCount int32 `json:"member_count"`
|
MemberCount int32 `json:"member_count"`
|
||||||
|
|
@ -17373,7 +17415,7 @@ func (*MessageSenderChat) MessageSenderType() string {
|
||||||
// Represents a list of message senders
|
// Represents a list of message senders
|
||||||
type MessageSenders struct {
|
type MessageSenders struct {
|
||||||
meta
|
meta
|
||||||
// Approximate total number of messages senders found
|
// Approximate total number of message senders found
|
||||||
TotalCount int32 `json:"total_count"`
|
TotalCount int32 `json:"total_count"`
|
||||||
// List of message senders
|
// List of message senders
|
||||||
Senders []MessageSender `json:"senders"`
|
Senders []MessageSender `json:"senders"`
|
||||||
|
|
@ -17481,6 +17523,75 @@ func (*ChatMessageSenders) GetType() string {
|
||||||
return TypeChatMessageSenders
|
return TypeChatMessageSenders
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Represents a poll voter
|
||||||
|
type PollVoter struct {
|
||||||
|
meta
|
||||||
|
// The voter identifier
|
||||||
|
VoterId MessageSender `json:"voter_id"`
|
||||||
|
// Point in time (Unix timestamp) when the vote was added
|
||||||
|
Date int32 `json:"date"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *PollVoter) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub PollVoter
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PollVoter) GetClass() string {
|
||||||
|
return ClassPollVoter
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PollVoter) GetType() string {
|
||||||
|
return TypePollVoter
|
||||||
|
}
|
||||||
|
|
||||||
|
func (pollVoter *PollVoter) UnmarshalJSON(data []byte) error {
|
||||||
|
var tmp struct {
|
||||||
|
VoterId json.RawMessage `json:"voter_id"`
|
||||||
|
Date int32 `json:"date"`
|
||||||
|
}
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &tmp)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
pollVoter.Date = tmp.Date
|
||||||
|
|
||||||
|
fieldVoterId, _ := UnmarshalMessageSender(tmp.VoterId)
|
||||||
|
pollVoter.VoterId = fieldVoterId
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Represents a list of poll voters
|
||||||
|
type PollVoters struct {
|
||||||
|
meta
|
||||||
|
// Approximate total number of poll voters found
|
||||||
|
TotalCount int32 `json:"total_count"`
|
||||||
|
// List of poll voters
|
||||||
|
Voters []*PollVoter `json:"voters"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *PollVoters) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub PollVoters
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PollVoters) GetClass() string {
|
||||||
|
return ClassPollVoters
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PollVoters) GetType() string {
|
||||||
|
return TypePollVoters
|
||||||
|
}
|
||||||
|
|
||||||
// Contains read date of the message
|
// Contains read date of the message
|
||||||
type MessageReadDateRead struct {
|
type MessageReadDateRead struct {
|
||||||
meta
|
meta
|
||||||
|
|
@ -18986,6 +19097,8 @@ type Message struct {
|
||||||
SenderBusinessBotUserId int64 `json:"sender_business_bot_user_id"`
|
SenderBusinessBotUserId int64 `json:"sender_business_bot_user_id"`
|
||||||
// Number of times the sender of the message boosted the supergroup at the time the message was sent; 0 if none or unknown. For messages sent by the current user, supergroupFullInfo.my_boost_count must be used instead
|
// Number of times the sender of the message boosted the supergroup at the time the message was sent; 0 if none or unknown. For messages sent by the current user, supergroupFullInfo.my_boost_count must be used instead
|
||||||
SenderBoostCount int32 `json:"sender_boost_count"`
|
SenderBoostCount int32 `json:"sender_boost_count"`
|
||||||
|
// Tag of the sender of the message in the supergroup at the time the message was sent; may be empty if none or unknown. For messages sent in basic groups or supergroup administrators, the current custom title or tag must be used instead
|
||||||
|
SenderTag string `json:"sender_tag"`
|
||||||
// The number of Telegram Stars the sender paid to send the message
|
// The number of Telegram Stars the sender paid to send the message
|
||||||
PaidMessageStarCount int64 `json:"paid_message_star_count"`
|
PaidMessageStarCount int64 `json:"paid_message_star_count"`
|
||||||
// For channel posts and anonymous group messages, optional author signature
|
// For channel posts and anonymous group messages, optional author signature
|
||||||
|
|
@ -19052,6 +19165,7 @@ func (message *Message) UnmarshalJSON(data []byte) error {
|
||||||
ViaBotUserId int64 `json:"via_bot_user_id"`
|
ViaBotUserId int64 `json:"via_bot_user_id"`
|
||||||
SenderBusinessBotUserId int64 `json:"sender_business_bot_user_id"`
|
SenderBusinessBotUserId int64 `json:"sender_business_bot_user_id"`
|
||||||
SenderBoostCount int32 `json:"sender_boost_count"`
|
SenderBoostCount int32 `json:"sender_boost_count"`
|
||||||
|
SenderTag string `json:"sender_tag"`
|
||||||
PaidMessageStarCount int64 `json:"paid_message_star_count"`
|
PaidMessageStarCount int64 `json:"paid_message_star_count"`
|
||||||
AuthorSignature string `json:"author_signature"`
|
AuthorSignature string `json:"author_signature"`
|
||||||
MediaAlbumId JsonInt64 `json:"media_album_id"`
|
MediaAlbumId JsonInt64 `json:"media_album_id"`
|
||||||
|
|
@ -19091,6 +19205,7 @@ func (message *Message) UnmarshalJSON(data []byte) error {
|
||||||
message.ViaBotUserId = tmp.ViaBotUserId
|
message.ViaBotUserId = tmp.ViaBotUserId
|
||||||
message.SenderBusinessBotUserId = tmp.SenderBusinessBotUserId
|
message.SenderBusinessBotUserId = tmp.SenderBusinessBotUserId
|
||||||
message.SenderBoostCount = tmp.SenderBoostCount
|
message.SenderBoostCount = tmp.SenderBoostCount
|
||||||
|
message.SenderTag = tmp.SenderTag
|
||||||
message.PaidMessageStarCount = tmp.PaidMessageStarCount
|
message.PaidMessageStarCount = tmp.PaidMessageStarCount
|
||||||
message.AuthorSignature = tmp.AuthorSignature
|
message.AuthorSignature = tmp.AuthorSignature
|
||||||
message.MediaAlbumId = tmp.MediaAlbumId
|
message.MediaAlbumId = tmp.MediaAlbumId
|
||||||
|
|
@ -21419,7 +21534,7 @@ type Chat struct {
|
||||||
VideoChat *VideoChat `json:"video_chat"`
|
VideoChat *VideoChat `json:"video_chat"`
|
||||||
// Information about pending join requests; may be null if none
|
// Information about pending join requests; may be null if none
|
||||||
PendingJoinRequests *ChatJoinRequestsInfo `json:"pending_join_requests"`
|
PendingJoinRequests *ChatJoinRequestsInfo `json:"pending_join_requests"`
|
||||||
// Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat
|
// Identifier of the message from which reply markup needs to be used; 0 if there is no reply markup in the chat
|
||||||
ReplyMarkupMessageId int64 `json:"reply_markup_message_id"`
|
ReplyMarkupMessageId int64 `json:"reply_markup_message_id"`
|
||||||
// A draft of a message in the chat; may be null if none
|
// A draft of a message in the chat; may be null if none
|
||||||
DraftMessage *DraftMessage `json:"draft_message"`
|
DraftMessage *DraftMessage `json:"draft_message"`
|
||||||
|
|
@ -22621,7 +22736,7 @@ func (inlineKeyboardButton *InlineKeyboardButton) UnmarshalJSON(data []byte) err
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Instructs application to remove the keyboard once this message has been received. This kind of keyboard can't be received in an incoming message; instead, updateChatReplyMarkup with message_id == 0 will be sent
|
// Instructs application to remove the keyboard once this message has been received. This kind of keyboard can't be received in an incoming message; instead, updateChatReplyMarkup with reply_markup_message == null will be sent
|
||||||
type ReplyMarkupRemoveKeyboard struct {
|
type ReplyMarkupRemoveKeyboard struct {
|
||||||
meta
|
meta
|
||||||
// True, if the keyboard is removed only for the mentioned users or the target user of a reply
|
// True, if the keyboard is removed only for the mentioned users or the target user of a reply
|
||||||
|
|
@ -22781,16 +22896,6 @@ type LoginUrlInfoRequestConfirmation struct {
|
||||||
BotUserId int64 `json:"bot_user_id"`
|
BotUserId int64 `json:"bot_user_id"`
|
||||||
// True, if the user must be asked for the permission to the bot to send them messages
|
// True, if the user must be asked for the permission to the bot to send them messages
|
||||||
RequestWriteAccess bool `json:"request_write_access"`
|
RequestWriteAccess bool `json:"request_write_access"`
|
||||||
// True, if the user must be asked for the permission to share their phone number
|
|
||||||
RequestPhoneNumberAccess bool `json:"request_phone_number_access"`
|
|
||||||
// The version of a browser used for the authorization; may be empty if irrelevant
|
|
||||||
Browser string `json:"browser"`
|
|
||||||
// Operating system the browser is running on; may be empty if irrelevant
|
|
||||||
Platform string `json:"platform"`
|
|
||||||
// IP address from which the authorization is performed, in human-readable format; may be empty if irrelevant
|
|
||||||
IpAddress string `json:"ip_address"`
|
|
||||||
// Human-readable description of a country and a region from which the authorization is performed, based on the IP address; may be empty if irrelevant
|
|
||||||
Location string `json:"location"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entity *LoginUrlInfoRequestConfirmation) MarshalJSON() ([]byte, error) {
|
func (entity *LoginUrlInfoRequestConfirmation) MarshalJSON() ([]byte, error) {
|
||||||
|
|
@ -22813,6 +22918,51 @@ func (*LoginUrlInfoRequestConfirmation) LoginUrlInfoType() string {
|
||||||
return TypeLoginUrlInfoRequestConfirmation
|
return TypeLoginUrlInfoRequestConfirmation
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Information about the OAuth authorization
|
||||||
|
type OauthLinkInfo struct {
|
||||||
|
meta
|
||||||
|
// Identifier of the user for which the link was generated; may be 0 if unknown. The corresponding user may be unknown. If the user is logged in the app, then they must be chosen for authorization by default
|
||||||
|
UserId int64 `json:"user_id"`
|
||||||
|
// An HTTP URL where the user authorizes
|
||||||
|
Url string `json:"url"`
|
||||||
|
// A domain of the URL
|
||||||
|
Domain string `json:"domain"`
|
||||||
|
// User identifier of a bot linked with the website
|
||||||
|
BotUserId int64 `json:"bot_user_id"`
|
||||||
|
// True, if the user must be asked for the permission to the bot to send them messages
|
||||||
|
RequestWriteAccess bool `json:"request_write_access"`
|
||||||
|
// True, if the user must be asked for the permission to share their phone number
|
||||||
|
RequestPhoneNumberAccess bool `json:"request_phone_number_access"`
|
||||||
|
// The version of a browser used for the authorization
|
||||||
|
Browser string `json:"browser"`
|
||||||
|
// Operating system the browser is running on
|
||||||
|
Platform string `json:"platform"`
|
||||||
|
// IP address from which the authorization is performed, in human-readable format
|
||||||
|
IpAddress string `json:"ip_address"`
|
||||||
|
// Human-readable description of a country and a region from which the authorization is performed, based on the IP address
|
||||||
|
Location string `json:"location"`
|
||||||
|
// True, if code matching dialog must be shown first and checkOauthRequestMatchCode must be called before acceptOauthRequest. Otherwise, checkOauthRequestMatchCode must not be called
|
||||||
|
MatchCodeFirst bool `json:"match_code_first"`
|
||||||
|
// The list of codes to match; may be empty if irrelevant
|
||||||
|
MatchCodes []string `json:"match_codes"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *OauthLinkInfo) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub OauthLinkInfo
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*OauthLinkInfo) GetClass() string {
|
||||||
|
return ClassOauthLinkInfo
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*OauthLinkInfo) GetType() string {
|
||||||
|
return TypeOauthLinkInfo
|
||||||
|
}
|
||||||
|
|
||||||
// Contains parameters of the application theme
|
// Contains parameters of the application theme
|
||||||
type ThemeParameters struct {
|
type ThemeParameters struct {
|
||||||
meta
|
meta
|
||||||
|
|
@ -26509,6 +26659,8 @@ type LinkPreviewTypeEmbeddedAnimationPlayer struct {
|
||||||
meta
|
meta
|
||||||
// URL of the external animation player
|
// URL of the external animation player
|
||||||
Url string `json:"url"`
|
Url string `json:"url"`
|
||||||
|
// The cached animation; may be null if unknown
|
||||||
|
Animation *Animation `json:"animation"`
|
||||||
// Thumbnail of the animation; may be null if unknown
|
// Thumbnail of the animation; may be null if unknown
|
||||||
Thumbnail *Photo `json:"thumbnail"`
|
Thumbnail *Photo `json:"thumbnail"`
|
||||||
// Duration of the animation, in seconds
|
// Duration of the animation, in seconds
|
||||||
|
|
@ -26544,6 +26696,8 @@ type LinkPreviewTypeEmbeddedAudioPlayer struct {
|
||||||
meta
|
meta
|
||||||
// URL of the external audio player
|
// URL of the external audio player
|
||||||
Url string `json:"url"`
|
Url string `json:"url"`
|
||||||
|
// The cached audio; may be null if unknown
|
||||||
|
Audio *Audio `json:"audio"`
|
||||||
// Thumbnail of the audio; may be null if unknown
|
// Thumbnail of the audio; may be null if unknown
|
||||||
Thumbnail *Photo `json:"thumbnail"`
|
Thumbnail *Photo `json:"thumbnail"`
|
||||||
// Duration of the audio, in seconds
|
// Duration of the audio, in seconds
|
||||||
|
|
@ -26579,6 +26733,8 @@ type LinkPreviewTypeEmbeddedVideoPlayer struct {
|
||||||
meta
|
meta
|
||||||
// URL of the external video player
|
// URL of the external video player
|
||||||
Url string `json:"url"`
|
Url string `json:"url"`
|
||||||
|
// The cached video; may be null if unknown
|
||||||
|
Video *Video `json:"video"`
|
||||||
// Thumbnail of the video; may be null if unknown
|
// Thumbnail of the video; may be null if unknown
|
||||||
Thumbnail *Photo `json:"thumbnail"`
|
Thumbnail *Photo `json:"thumbnail"`
|
||||||
// Duration of the video, in seconds
|
// Duration of the video, in seconds
|
||||||
|
|
@ -31682,6 +31838,8 @@ func (messageInvoice *MessageInvoice) UnmarshalJSON(data []byte) error {
|
||||||
// A message with information about an ended call
|
// A message with information about an ended call
|
||||||
type MessageCall struct {
|
type MessageCall struct {
|
||||||
meta
|
meta
|
||||||
|
// Persistent unique call identifier; 0 for calls from other devices, which can't be passed as inputCallFromMessage
|
||||||
|
UniqueId JsonInt64 `json:"unique_id"`
|
||||||
// True, if the call was a video call
|
// True, if the call was a video call
|
||||||
IsVideo bool `json:"is_video"`
|
IsVideo bool `json:"is_video"`
|
||||||
// Reason why the call was discarded
|
// Reason why the call was discarded
|
||||||
|
|
@ -31712,6 +31870,7 @@ func (*MessageCall) MessageContentType() string {
|
||||||
|
|
||||||
func (messageCall *MessageCall) UnmarshalJSON(data []byte) error {
|
func (messageCall *MessageCall) UnmarshalJSON(data []byte) error {
|
||||||
var tmp struct {
|
var tmp struct {
|
||||||
|
UniqueId JsonInt64 `json:"unique_id"`
|
||||||
IsVideo bool `json:"is_video"`
|
IsVideo bool `json:"is_video"`
|
||||||
DiscardReason json.RawMessage `json:"discard_reason"`
|
DiscardReason json.RawMessage `json:"discard_reason"`
|
||||||
Duration int32 `json:"duration"`
|
Duration int32 `json:"duration"`
|
||||||
|
|
@ -31722,6 +31881,7 @@ func (messageCall *MessageCall) UnmarshalJSON(data []byte) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
messageCall.UniqueId = tmp.UniqueId
|
||||||
messageCall.IsVideo = tmp.IsVideo
|
messageCall.IsVideo = tmp.IsVideo
|
||||||
messageCall.Duration = tmp.Duration
|
messageCall.Duration = tmp.Duration
|
||||||
|
|
||||||
|
|
@ -32096,6 +32256,64 @@ func (*MessageChatOwnerChanged) MessageContentType() string {
|
||||||
return TypeMessageChatOwnerChanged
|
return TypeMessageChatOwnerChanged
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Chat has_protected_content setting was changed or request to change it was rejected
|
||||||
|
type MessageChatHasProtectedContentToggled struct {
|
||||||
|
meta
|
||||||
|
// Identifier of the message with the request to change the setting; can be an identifier of a deleted message or 0
|
||||||
|
RequestMessageId int64 `json:"request_message_id"`
|
||||||
|
// Previous value of the setting
|
||||||
|
OldHasProtectedContent bool `json:"old_has_protected_content"`
|
||||||
|
// New value of the setting
|
||||||
|
NewHasProtectedContent bool `json:"new_has_protected_content"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *MessageChatHasProtectedContentToggled) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub MessageChatHasProtectedContentToggled
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MessageChatHasProtectedContentToggled) GetClass() string {
|
||||||
|
return ClassMessageContent
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MessageChatHasProtectedContentToggled) GetType() string {
|
||||||
|
return TypeMessageChatHasProtectedContentToggled
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MessageChatHasProtectedContentToggled) MessageContentType() string {
|
||||||
|
return TypeMessageChatHasProtectedContentToggled
|
||||||
|
}
|
||||||
|
|
||||||
|
// Chat has_protected_content setting was requested to be disabled
|
||||||
|
type MessageChatHasProtectedContentDisableRequested struct {
|
||||||
|
meta
|
||||||
|
// True, if the request has expired
|
||||||
|
IsExpired bool `json:"is_expired"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *MessageChatHasProtectedContentDisableRequested) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub MessageChatHasProtectedContentDisableRequested
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MessageChatHasProtectedContentDisableRequested) GetClass() string {
|
||||||
|
return ClassMessageContent
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MessageChatHasProtectedContentDisableRequested) GetType() string {
|
||||||
|
return TypeMessageChatHasProtectedContentDisableRequested
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MessageChatHasProtectedContentDisableRequested) MessageContentType() string {
|
||||||
|
return TypeMessageChatHasProtectedContentDisableRequested
|
||||||
|
}
|
||||||
|
|
||||||
// New chat members were added
|
// New chat members were added
|
||||||
type MessageChatAddMembers struct {
|
type MessageChatAddMembers struct {
|
||||||
meta
|
meta
|
||||||
|
|
@ -34342,6 +34560,160 @@ func (*MessageUnsupported) MessageContentType() string {
|
||||||
return TypeMessageUnsupported
|
return TypeMessageUnsupported
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Don't show the date or time
|
||||||
|
type DateTimePartPrecisionNone struct{
|
||||||
|
meta
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *DateTimePartPrecisionNone) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub DateTimePartPrecisionNone
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DateTimePartPrecisionNone) GetClass() string {
|
||||||
|
return ClassDateTimePartPrecision
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DateTimePartPrecisionNone) GetType() string {
|
||||||
|
return TypeDateTimePartPrecisionNone
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DateTimePartPrecisionNone) DateTimePartPrecisionType() string {
|
||||||
|
return TypeDateTimePartPrecisionNone
|
||||||
|
}
|
||||||
|
|
||||||
|
// Show the date or time in a short way (17.03.22 or 22:45)
|
||||||
|
type DateTimePartPrecisionShort struct{
|
||||||
|
meta
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *DateTimePartPrecisionShort) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub DateTimePartPrecisionShort
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DateTimePartPrecisionShort) GetClass() string {
|
||||||
|
return ClassDateTimePartPrecision
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DateTimePartPrecisionShort) GetType() string {
|
||||||
|
return TypeDateTimePartPrecisionShort
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DateTimePartPrecisionShort) DateTimePartPrecisionType() string {
|
||||||
|
return TypeDateTimePartPrecisionShort
|
||||||
|
}
|
||||||
|
|
||||||
|
// Show the date or time in a long way (March 17, 2022 or 22:45:00)
|
||||||
|
type DateTimePartPrecisionLong struct{
|
||||||
|
meta
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *DateTimePartPrecisionLong) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub DateTimePartPrecisionLong
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DateTimePartPrecisionLong) GetClass() string {
|
||||||
|
return ClassDateTimePartPrecision
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DateTimePartPrecisionLong) GetType() string {
|
||||||
|
return TypeDateTimePartPrecisionLong
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DateTimePartPrecisionLong) DateTimePartPrecisionType() string {
|
||||||
|
return TypeDateTimePartPrecisionLong
|
||||||
|
}
|
||||||
|
|
||||||
|
// The time must be shown relative to the current time ([in ] X seconds, minutes, hours, days, months, years [ago])
|
||||||
|
type DateTimeFormattingTypeRelative struct{
|
||||||
|
meta
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *DateTimeFormattingTypeRelative) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub DateTimeFormattingTypeRelative
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DateTimeFormattingTypeRelative) GetClass() string {
|
||||||
|
return ClassDateTimeFormattingType
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DateTimeFormattingTypeRelative) GetType() string {
|
||||||
|
return TypeDateTimeFormattingTypeRelative
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DateTimeFormattingTypeRelative) DateTimeFormattingTypeType() string {
|
||||||
|
return TypeDateTimeFormattingTypeRelative
|
||||||
|
}
|
||||||
|
|
||||||
|
// The date and time must be shown as absolute timestamps
|
||||||
|
type DateTimeFormattingTypeAbsolute struct {
|
||||||
|
meta
|
||||||
|
// The precision with which hours, minutes and seconds are shown
|
||||||
|
TimePrecision DateTimePartPrecision `json:"time_precision"`
|
||||||
|
// The precision with which the date is shown
|
||||||
|
DatePrecision DateTimePartPrecision `json:"date_precision"`
|
||||||
|
// True, if the day of week must be shown
|
||||||
|
ShowDayOfWeek bool `json:"show_day_of_week"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *DateTimeFormattingTypeAbsolute) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub DateTimeFormattingTypeAbsolute
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DateTimeFormattingTypeAbsolute) GetClass() string {
|
||||||
|
return ClassDateTimeFormattingType
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DateTimeFormattingTypeAbsolute) GetType() string {
|
||||||
|
return TypeDateTimeFormattingTypeAbsolute
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DateTimeFormattingTypeAbsolute) DateTimeFormattingTypeType() string {
|
||||||
|
return TypeDateTimeFormattingTypeAbsolute
|
||||||
|
}
|
||||||
|
|
||||||
|
func (dateTimeFormattingTypeAbsolute *DateTimeFormattingTypeAbsolute) UnmarshalJSON(data []byte) error {
|
||||||
|
var tmp struct {
|
||||||
|
TimePrecision json.RawMessage `json:"time_precision"`
|
||||||
|
DatePrecision json.RawMessage `json:"date_precision"`
|
||||||
|
ShowDayOfWeek bool `json:"show_day_of_week"`
|
||||||
|
}
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &tmp)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
dateTimeFormattingTypeAbsolute.ShowDayOfWeek = tmp.ShowDayOfWeek
|
||||||
|
|
||||||
|
fieldTimePrecision, _ := UnmarshalDateTimePartPrecision(tmp.TimePrecision)
|
||||||
|
dateTimeFormattingTypeAbsolute.TimePrecision = fieldTimePrecision
|
||||||
|
|
||||||
|
fieldDatePrecision, _ := UnmarshalDateTimePartPrecision(tmp.DatePrecision)
|
||||||
|
dateTimeFormattingTypeAbsolute.DatePrecision = fieldDatePrecision
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// A mention of a user, a supergroup, or a channel by their username
|
// A mention of a user, a supergroup, or a channel by their username
|
||||||
type TextEntityTypeMention struct{
|
type TextEntityTypeMention struct{
|
||||||
meta
|
meta
|
||||||
|
|
@ -34902,6 +35274,54 @@ func (*TextEntityTypeMediaTimestamp) TextEntityTypeType() string {
|
||||||
return TypeTextEntityTypeMediaTimestamp
|
return TypeTextEntityTypeMediaTimestamp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A data and time
|
||||||
|
type TextEntityTypeDateTime struct {
|
||||||
|
meta
|
||||||
|
// Point in time (Unix timestamp) representing the data and time
|
||||||
|
UnixTime int32 `json:"unix_time"`
|
||||||
|
// Date and time formatting type; may be null if none and the original text must not be changed
|
||||||
|
FormattingType DateTimeFormattingType `json:"formatting_type"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *TextEntityTypeDateTime) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub TextEntityTypeDateTime
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*TextEntityTypeDateTime) GetClass() string {
|
||||||
|
return ClassTextEntityType
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*TextEntityTypeDateTime) GetType() string {
|
||||||
|
return TypeTextEntityTypeDateTime
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*TextEntityTypeDateTime) TextEntityTypeType() string {
|
||||||
|
return TypeTextEntityTypeDateTime
|
||||||
|
}
|
||||||
|
|
||||||
|
func (textEntityTypeDateTime *TextEntityTypeDateTime) UnmarshalJSON(data []byte) error {
|
||||||
|
var tmp struct {
|
||||||
|
UnixTime int32 `json:"unix_time"`
|
||||||
|
FormattingType json.RawMessage `json:"formatting_type"`
|
||||||
|
}
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &tmp)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
textEntityTypeDateTime.UnixTime = tmp.UnixTime
|
||||||
|
|
||||||
|
fieldFormattingType, _ := UnmarshalDateTimeFormattingType(tmp.FormattingType)
|
||||||
|
textEntityTypeDateTime.FormattingType = fieldFormattingType
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// A thumbnail to be sent along with a file; must be in JPEG or WEBP format for stickers, and less than 200 KB in size
|
// A thumbnail to be sent along with a file; must be in JPEG or WEBP format for stickers, and less than 200 KB in size
|
||||||
type InputThumbnail struct {
|
type InputThumbnail struct {
|
||||||
meta
|
meta
|
||||||
|
|
@ -36414,6 +36834,10 @@ type MessageProperties struct {
|
||||||
CanReportSupergroupSpam bool `json:"can_report_supergroup_spam"`
|
CanReportSupergroupSpam bool `json:"can_report_supergroup_spam"`
|
||||||
// True, if fact check for the message can be changed through setMessageFactCheck
|
// True, if fact check for the message can be changed through setMessageFactCheck
|
||||||
CanSetFactCheck bool `json:"can_set_fact_check"`
|
CanSetFactCheck bool `json:"can_set_fact_check"`
|
||||||
|
// True, if content of the message can't be saved locally, because it is protected by the current user; if true, then can_be_saved is false
|
||||||
|
HasProtectedContentByCurrentUser bool `json:"has_protected_content_by_current_user"`
|
||||||
|
// True, if content of the message can't be saved locally, because it is protected by the other user; if true, then can_be_saved is false
|
||||||
|
HasProtectedContentByOtherUser bool `json:"has_protected_content_by_other_user"`
|
||||||
// True, if message statistics must be available from context menu of the message
|
// True, if message statistics must be available from context menu of the message
|
||||||
NeedShowStatistics bool `json:"need_show_statistics"`
|
NeedShowStatistics bool `json:"need_show_statistics"`
|
||||||
}
|
}
|
||||||
|
|
@ -40920,6 +41344,62 @@ func (*GroupCallId) GetType() string {
|
||||||
return TypeGroupCallId
|
return TypeGroupCallId
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A just ended call
|
||||||
|
type InputCallDiscarded struct {
|
||||||
|
meta
|
||||||
|
// Identifier of the call
|
||||||
|
CallId int32 `json:"call_id"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *InputCallDiscarded) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub InputCallDiscarded
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InputCallDiscarded) GetClass() string {
|
||||||
|
return ClassInputCall
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InputCallDiscarded) GetType() string {
|
||||||
|
return TypeInputCallDiscarded
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InputCallDiscarded) InputCallType() string {
|
||||||
|
return TypeInputCallDiscarded
|
||||||
|
}
|
||||||
|
|
||||||
|
// A call from a message of the type messageCall with non-zero messageCall.unique_id
|
||||||
|
type InputCallFromMessage struct {
|
||||||
|
meta
|
||||||
|
// Chat identifier of the message
|
||||||
|
ChatId int64 `json:"chat_id"`
|
||||||
|
// Message identifier
|
||||||
|
MessageId int64 `json:"message_id"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *InputCallFromMessage) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub InputCallFromMessage
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InputCallFromMessage) GetClass() string {
|
||||||
|
return ClassInputCall
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InputCallFromMessage) GetType() string {
|
||||||
|
return TypeInputCallFromMessage
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InputCallFromMessage) InputCallType() string {
|
||||||
|
return TypeInputCallFromMessage
|
||||||
|
}
|
||||||
|
|
||||||
// The call is pending, waiting to be accepted by a user
|
// The call is pending, waiting to be accepted by a user
|
||||||
type CallStatePending struct {
|
type CallStatePending struct {
|
||||||
meta
|
meta
|
||||||
|
|
@ -45445,6 +45925,37 @@ func (chatEventMemberRestricted *ChatEventMemberRestricted) UnmarshalJSON(data [
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A chat member tag has been changed
|
||||||
|
type ChatEventMemberTagChanged struct {
|
||||||
|
meta
|
||||||
|
// Affected chat member user identifier
|
||||||
|
UserId int64 `json:"user_id"`
|
||||||
|
// Previous tag of the chat member
|
||||||
|
OldTag string `json:"old_tag"`
|
||||||
|
// New tag of the chat member
|
||||||
|
NewTag string `json:"new_tag"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *ChatEventMemberTagChanged) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub ChatEventMemberTagChanged
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ChatEventMemberTagChanged) GetClass() string {
|
||||||
|
return ClassChatEventAction
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ChatEventMemberTagChanged) GetType() string {
|
||||||
|
return TypeChatEventMemberTagChanged
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ChatEventMemberTagChanged) ChatEventActionType() string {
|
||||||
|
return TypeChatEventMemberTagChanged
|
||||||
|
}
|
||||||
|
|
||||||
// A chat member extended their subscription to the chat
|
// A chat member extended their subscription to the chat
|
||||||
type ChatEventMemberSubscriptionExtended struct {
|
type ChatEventMemberSubscriptionExtended struct {
|
||||||
meta
|
meta
|
||||||
|
|
@ -46758,6 +47269,8 @@ type ChatEventLogFilters struct {
|
||||||
MemberPromotions bool `json:"member_promotions"`
|
MemberPromotions bool `json:"member_promotions"`
|
||||||
// True, if member restricted/unrestricted/banned/unbanned events need to be returned
|
// True, if member restricted/unrestricted/banned/unbanned events need to be returned
|
||||||
MemberRestrictions bool `json:"member_restrictions"`
|
MemberRestrictions bool `json:"member_restrictions"`
|
||||||
|
// True, if member tag and custom title change events need to be returned
|
||||||
|
MemberTagChanges bool `json:"member_tag_changes"`
|
||||||
// True, if changes in chat information need to be returned
|
// True, if changes in chat information need to be returned
|
||||||
InfoChanges bool `json:"info_changes"`
|
InfoChanges bool `json:"info_changes"`
|
||||||
// True, if changes in chat settings need to be returned
|
// True, if changes in chat settings need to be returned
|
||||||
|
|
@ -48139,6 +48652,31 @@ func (*PremiumFeaturePaidMessages) PremiumFeatureType() string {
|
||||||
return TypePremiumFeaturePaidMessages
|
return TypePremiumFeaturePaidMessages
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The ability to enable content protection in private chats
|
||||||
|
type PremiumFeatureProtectPrivateChatContent struct{
|
||||||
|
meta
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *PremiumFeatureProtectPrivateChatContent) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub PremiumFeatureProtectPrivateChatContent
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PremiumFeatureProtectPrivateChatContent) GetClass() string {
|
||||||
|
return ClassPremiumFeature
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PremiumFeatureProtectPrivateChatContent) GetType() string {
|
||||||
|
return TypePremiumFeatureProtectPrivateChatContent
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PremiumFeatureProtectPrivateChatContent) PremiumFeatureType() string {
|
||||||
|
return TypePremiumFeatureProtectPrivateChatContent
|
||||||
|
}
|
||||||
|
|
||||||
// The ability to set location
|
// The ability to set location
|
||||||
type BusinessFeatureLocation struct{
|
type BusinessFeatureLocation struct{
|
||||||
meta
|
meta
|
||||||
|
|
@ -56894,6 +57432,33 @@ func (internalLinkTypeNewStory *InternalLinkTypeNewStory) UnmarshalJSON(data []b
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The link is an OAuth link. Call getOauthLinkInfo with the given URL to process the link if the link was received from outside of the application; otherwise, ignore it. After getOauthLinkInfo, show the user confirmation dialog and process it with checkOauthRequestMatchCode, acceptOauthRequest or declineOauthRequest
|
||||||
|
type InternalLinkTypeOauth struct {
|
||||||
|
meta
|
||||||
|
// URL to be passed to getOauthLinkInfo
|
||||||
|
Url string `json:"url"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *InternalLinkTypeOauth) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub InternalLinkTypeOauth
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InternalLinkTypeOauth) GetClass() string {
|
||||||
|
return ClassInternalLinkType
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InternalLinkTypeOauth) GetType() string {
|
||||||
|
return TypeInternalLinkTypeOauth
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InternalLinkTypeOauth) InternalLinkTypeType() string {
|
||||||
|
return TypeInternalLinkTypeOauth
|
||||||
|
}
|
||||||
|
|
||||||
// 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
|
// 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
|
||||||
type InternalLinkTypePassportDataRequest struct {
|
type InternalLinkTypePassportDataRequest struct {
|
||||||
meta
|
meta
|
||||||
|
|
@ -63263,13 +63828,13 @@ func (*UpdateChatPendingJoinRequests) UpdateType() string {
|
||||||
return TypeUpdateChatPendingJoinRequests
|
return TypeUpdateChatPendingJoinRequests
|
||||||
}
|
}
|
||||||
|
|
||||||
// The default chat reply markup was changed. Can occur because new messages with reply markup were received or because an old reply markup was hidden by the user
|
// The chat reply markup was changed
|
||||||
type UpdateChatReplyMarkup struct {
|
type UpdateChatReplyMarkup struct {
|
||||||
meta
|
meta
|
||||||
// Chat identifier
|
// Chat identifier
|
||||||
ChatId int64 `json:"chat_id"`
|
ChatId int64 `json:"chat_id"`
|
||||||
// Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat
|
// The message from which the reply markup must be used; may be null if there is no default reply markup in the chat
|
||||||
ReplyMarkupMessageId int64 `json:"reply_markup_message_id"`
|
ReplyMarkupMessage *Message `json:"reply_markup_message"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entity *UpdateChatReplyMarkup) MarshalJSON() ([]byte, error) {
|
func (entity *UpdateChatReplyMarkup) MarshalJSON() ([]byte, error) {
|
||||||
|
|
@ -64700,6 +65265,37 @@ func (updateServiceNotification *UpdateServiceNotification) UnmarshalJSON(data [
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// An OAuth authorization request was received
|
||||||
|
type UpdateNewOauthRequest struct {
|
||||||
|
meta
|
||||||
|
// A domain of the URL where the user authorizes
|
||||||
|
Domain string `json:"domain"`
|
||||||
|
// Human-readable description of a country and a region from which the authorization is performed, based on the IP address
|
||||||
|
Location string `json:"location"`
|
||||||
|
// The URL to pass to getOauthLinkInfo; the link is valid for 60 seconds
|
||||||
|
Url string `json:"url"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *UpdateNewOauthRequest) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub UpdateNewOauthRequest
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*UpdateNewOauthRequest) GetClass() string {
|
||||||
|
return ClassUpdate
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*UpdateNewOauthRequest) GetType() string {
|
||||||
|
return TypeUpdateNewOauthRequest
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*UpdateNewOauthRequest) UpdateType() string {
|
||||||
|
return TypeUpdateNewOauthRequest
|
||||||
|
}
|
||||||
|
|
||||||
// Information about a file was updated
|
// Information about a file was updated
|
||||||
type UpdateFile struct {
|
type UpdateFile struct {
|
||||||
meta
|
meta
|
||||||
|
|
|
||||||
|
|
@ -4243,6 +4243,12 @@ func UnmarshalMessageContent(data json.RawMessage) (MessageContent, error) {
|
||||||
case TypeMessageChatOwnerChanged:
|
case TypeMessageChatOwnerChanged:
|
||||||
return UnmarshalMessageChatOwnerChanged(data)
|
return UnmarshalMessageChatOwnerChanged(data)
|
||||||
|
|
||||||
|
case TypeMessageChatHasProtectedContentToggled:
|
||||||
|
return UnmarshalMessageChatHasProtectedContentToggled(data)
|
||||||
|
|
||||||
|
case TypeMessageChatHasProtectedContentDisableRequested:
|
||||||
|
return UnmarshalMessageChatHasProtectedContentDisableRequested(data)
|
||||||
|
|
||||||
case TypeMessageChatAddMembers:
|
case TypeMessageChatAddMembers:
|
||||||
return UnmarshalMessageChatAddMembers(data)
|
return UnmarshalMessageChatAddMembers(data)
|
||||||
|
|
||||||
|
|
@ -4433,6 +4439,77 @@ func UnmarshalListOfMessageContent(dataList []json.RawMessage) ([]MessageContent
|
||||||
return list, nil
|
return list, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalDateTimePartPrecision(data json.RawMessage) (DateTimePartPrecision, error) {
|
||||||
|
var meta meta
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &meta)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
switch meta.Type {
|
||||||
|
case TypeDateTimePartPrecisionNone:
|
||||||
|
return UnmarshalDateTimePartPrecisionNone(data)
|
||||||
|
|
||||||
|
case TypeDateTimePartPrecisionShort:
|
||||||
|
return UnmarshalDateTimePartPrecisionShort(data)
|
||||||
|
|
||||||
|
case TypeDateTimePartPrecisionLong:
|
||||||
|
return UnmarshalDateTimePartPrecisionLong(data)
|
||||||
|
|
||||||
|
default:
|
||||||
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalListOfDateTimePartPrecision(dataList []json.RawMessage) ([]DateTimePartPrecision, error) {
|
||||||
|
list := []DateTimePartPrecision{}
|
||||||
|
|
||||||
|
for _, data := range dataList {
|
||||||
|
entity, err := UnmarshalDateTimePartPrecision(data)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
list = append(list, entity)
|
||||||
|
}
|
||||||
|
|
||||||
|
return list, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalDateTimeFormattingType(data json.RawMessage) (DateTimeFormattingType, error) {
|
||||||
|
var meta meta
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &meta)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
switch meta.Type {
|
||||||
|
case TypeDateTimeFormattingTypeRelative:
|
||||||
|
return UnmarshalDateTimeFormattingTypeRelative(data)
|
||||||
|
|
||||||
|
case TypeDateTimeFormattingTypeAbsolute:
|
||||||
|
return UnmarshalDateTimeFormattingTypeAbsolute(data)
|
||||||
|
|
||||||
|
default:
|
||||||
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalListOfDateTimeFormattingType(dataList []json.RawMessage) ([]DateTimeFormattingType, error) {
|
||||||
|
list := []DateTimeFormattingType{}
|
||||||
|
|
||||||
|
for _, data := range dataList {
|
||||||
|
entity, err := UnmarshalDateTimeFormattingType(data)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
list = append(list, entity)
|
||||||
|
}
|
||||||
|
|
||||||
|
return list, nil
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalTextEntityType(data json.RawMessage) (TextEntityType, error) {
|
func UnmarshalTextEntityType(data json.RawMessage) (TextEntityType, error) {
|
||||||
var meta meta
|
var meta meta
|
||||||
|
|
||||||
|
|
@ -4508,6 +4585,9 @@ func UnmarshalTextEntityType(data json.RawMessage) (TextEntityType, error) {
|
||||||
case TypeTextEntityTypeMediaTimestamp:
|
case TypeTextEntityTypeMediaTimestamp:
|
||||||
return UnmarshalTextEntityTypeMediaTimestamp(data)
|
return UnmarshalTextEntityTypeMediaTimestamp(data)
|
||||||
|
|
||||||
|
case TypeTextEntityTypeDateTime:
|
||||||
|
return UnmarshalTextEntityTypeDateTime(data)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||||
}
|
}
|
||||||
|
|
@ -5537,6 +5617,40 @@ func UnmarshalListOfCallServerType(dataList []json.RawMessage) ([]CallServerType
|
||||||
return list, nil
|
return list, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalInputCall(data json.RawMessage) (InputCall, error) {
|
||||||
|
var meta meta
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &meta)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
switch meta.Type {
|
||||||
|
case TypeInputCallDiscarded:
|
||||||
|
return UnmarshalInputCallDiscarded(data)
|
||||||
|
|
||||||
|
case TypeInputCallFromMessage:
|
||||||
|
return UnmarshalInputCallFromMessage(data)
|
||||||
|
|
||||||
|
default:
|
||||||
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalListOfInputCall(dataList []json.RawMessage) ([]InputCall, error) {
|
||||||
|
list := []InputCall{}
|
||||||
|
|
||||||
|
for _, data := range dataList {
|
||||||
|
entity, err := UnmarshalInputCall(data)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
list = append(list, entity)
|
||||||
|
}
|
||||||
|
|
||||||
|
return list, nil
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalCallState(data json.RawMessage) (CallState, error) {
|
func UnmarshalCallState(data json.RawMessage) (CallState, error) {
|
||||||
var meta meta
|
var meta meta
|
||||||
|
|
||||||
|
|
@ -6243,6 +6357,9 @@ func UnmarshalChatEventAction(data json.RawMessage) (ChatEventAction, error) {
|
||||||
case TypeChatEventMemberRestricted:
|
case TypeChatEventMemberRestricted:
|
||||||
return UnmarshalChatEventMemberRestricted(data)
|
return UnmarshalChatEventMemberRestricted(data)
|
||||||
|
|
||||||
|
case TypeChatEventMemberTagChanged:
|
||||||
|
return UnmarshalChatEventMemberTagChanged(data)
|
||||||
|
|
||||||
case TypeChatEventMemberSubscriptionExtended:
|
case TypeChatEventMemberSubscriptionExtended:
|
||||||
return UnmarshalChatEventMemberSubscriptionExtended(data)
|
return UnmarshalChatEventMemberSubscriptionExtended(data)
|
||||||
|
|
||||||
|
|
@ -6591,6 +6708,9 @@ func UnmarshalPremiumFeature(data json.RawMessage) (PremiumFeature, error) {
|
||||||
case TypePremiumFeaturePaidMessages:
|
case TypePremiumFeaturePaidMessages:
|
||||||
return UnmarshalPremiumFeaturePaidMessages(data)
|
return UnmarshalPremiumFeaturePaidMessages(data)
|
||||||
|
|
||||||
|
case TypePremiumFeatureProtectPrivateChatContent:
|
||||||
|
return UnmarshalPremiumFeatureProtectPrivateChatContent(data)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||||
}
|
}
|
||||||
|
|
@ -8371,6 +8491,9 @@ func UnmarshalInternalLinkType(data json.RawMessage) (InternalLinkType, error) {
|
||||||
case TypeInternalLinkTypeNewStory:
|
case TypeInternalLinkTypeNewStory:
|
||||||
return UnmarshalInternalLinkTypeNewStory(data)
|
return UnmarshalInternalLinkTypeNewStory(data)
|
||||||
|
|
||||||
|
case TypeInternalLinkTypeOauth:
|
||||||
|
return UnmarshalInternalLinkTypeOauth(data)
|
||||||
|
|
||||||
case TypeInternalLinkTypePassportDataRequest:
|
case TypeInternalLinkTypePassportDataRequest:
|
||||||
return UnmarshalInternalLinkTypePassportDataRequest(data)
|
return UnmarshalInternalLinkTypePassportDataRequest(data)
|
||||||
|
|
||||||
|
|
@ -9543,6 +9666,9 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
|
||||||
case TypeUpdateServiceNotification:
|
case TypeUpdateServiceNotification:
|
||||||
return UnmarshalUpdateServiceNotification(data)
|
return UnmarshalUpdateServiceNotification(data)
|
||||||
|
|
||||||
|
case TypeUpdateNewOauthRequest:
|
||||||
|
return UnmarshalUpdateNewOauthRequest(data)
|
||||||
|
|
||||||
case TypeUpdateFile:
|
case TypeUpdateFile:
|
||||||
return UnmarshalUpdateFile(data)
|
return UnmarshalUpdateFile(data)
|
||||||
|
|
||||||
|
|
@ -13188,6 +13314,22 @@ func UnmarshalChatMessageSenders(data json.RawMessage) (*ChatMessageSenders, err
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalPollVoter(data json.RawMessage) (*PollVoter, error) {
|
||||||
|
var resp PollVoter
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalPollVoters(data json.RawMessage) (*PollVoters, error) {
|
||||||
|
var resp PollVoters
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalMessageReadDateRead(data json.RawMessage) (*MessageReadDateRead, error) {
|
func UnmarshalMessageReadDateRead(data json.RawMessage) (*MessageReadDateRead, error) {
|
||||||
var resp MessageReadDateRead
|
var resp MessageReadDateRead
|
||||||
|
|
||||||
|
|
@ -14484,6 +14626,14 @@ func UnmarshalLoginUrlInfoRequestConfirmation(data json.RawMessage) (*LoginUrlIn
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalOauthLinkInfo(data json.RawMessage) (*OauthLinkInfo, error) {
|
||||||
|
var resp OauthLinkInfo
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalThemeParameters(data json.RawMessage) (*ThemeParameters, error) {
|
func UnmarshalThemeParameters(data json.RawMessage) (*ThemeParameters, error) {
|
||||||
var resp ThemeParameters
|
var resp ThemeParameters
|
||||||
|
|
||||||
|
|
@ -16692,6 +16842,22 @@ func UnmarshalMessageChatOwnerChanged(data json.RawMessage) (*MessageChatOwnerCh
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalMessageChatHasProtectedContentToggled(data json.RawMessage) (*MessageChatHasProtectedContentToggled, error) {
|
||||||
|
var resp MessageChatHasProtectedContentToggled
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalMessageChatHasProtectedContentDisableRequested(data json.RawMessage) (*MessageChatHasProtectedContentDisableRequested, error) {
|
||||||
|
var resp MessageChatHasProtectedContentDisableRequested
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalMessageChatAddMembers(data json.RawMessage) (*MessageChatAddMembers, error) {
|
func UnmarshalMessageChatAddMembers(data json.RawMessage) (*MessageChatAddMembers, error) {
|
||||||
var resp MessageChatAddMembers
|
var resp MessageChatAddMembers
|
||||||
|
|
||||||
|
|
@ -17148,6 +17314,46 @@ func UnmarshalMessageUnsupported(data json.RawMessage) (*MessageUnsupported, err
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalDateTimePartPrecisionNone(data json.RawMessage) (*DateTimePartPrecisionNone, error) {
|
||||||
|
var resp DateTimePartPrecisionNone
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalDateTimePartPrecisionShort(data json.RawMessage) (*DateTimePartPrecisionShort, error) {
|
||||||
|
var resp DateTimePartPrecisionShort
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalDateTimePartPrecisionLong(data json.RawMessage) (*DateTimePartPrecisionLong, error) {
|
||||||
|
var resp DateTimePartPrecisionLong
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalDateTimeFormattingTypeRelative(data json.RawMessage) (*DateTimeFormattingTypeRelative, error) {
|
||||||
|
var resp DateTimeFormattingTypeRelative
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalDateTimeFormattingTypeAbsolute(data json.RawMessage) (*DateTimeFormattingTypeAbsolute, error) {
|
||||||
|
var resp DateTimeFormattingTypeAbsolute
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalTextEntityTypeMention(data json.RawMessage) (*TextEntityTypeMention, error) {
|
func UnmarshalTextEntityTypeMention(data json.RawMessage) (*TextEntityTypeMention, error) {
|
||||||
var resp TextEntityTypeMention
|
var resp TextEntityTypeMention
|
||||||
|
|
||||||
|
|
@ -17324,6 +17530,14 @@ func UnmarshalTextEntityTypeMediaTimestamp(data json.RawMessage) (*TextEntityTyp
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalTextEntityTypeDateTime(data json.RawMessage) (*TextEntityTypeDateTime, error) {
|
||||||
|
var resp TextEntityTypeDateTime
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalInputThumbnail(data json.RawMessage) (*InputThumbnail, error) {
|
func UnmarshalInputThumbnail(data json.RawMessage) (*InputThumbnail, error) {
|
||||||
var resp InputThumbnail
|
var resp InputThumbnail
|
||||||
|
|
||||||
|
|
@ -18716,6 +18930,22 @@ func UnmarshalGroupCallId(data json.RawMessage) (*GroupCallId, error) {
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalInputCallDiscarded(data json.RawMessage) (*InputCallDiscarded, error) {
|
||||||
|
var resp InputCallDiscarded
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnmarshalInputCallFromMessage(data json.RawMessage) (*InputCallFromMessage, error) {
|
||||||
|
var resp InputCallFromMessage
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalCallStatePending(data json.RawMessage) (*CallStatePending, error) {
|
func UnmarshalCallStatePending(data json.RawMessage) (*CallStatePending, error) {
|
||||||
var resp CallStatePending
|
var resp CallStatePending
|
||||||
|
|
||||||
|
|
@ -19684,6 +19914,14 @@ func UnmarshalChatEventMemberRestricted(data json.RawMessage) (*ChatEventMemberR
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalChatEventMemberTagChanged(data json.RawMessage) (*ChatEventMemberTagChanged, error) {
|
||||||
|
var resp ChatEventMemberTagChanged
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalChatEventMemberSubscriptionExtended(data json.RawMessage) (*ChatEventMemberSubscriptionExtended, error) {
|
func UnmarshalChatEventMemberSubscriptionExtended(data json.RawMessage) (*ChatEventMemberSubscriptionExtended, error) {
|
||||||
var resp ChatEventMemberSubscriptionExtended
|
var resp ChatEventMemberSubscriptionExtended
|
||||||
|
|
||||||
|
|
@ -20444,6 +20682,14 @@ func UnmarshalPremiumFeaturePaidMessages(data json.RawMessage) (*PremiumFeatureP
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalPremiumFeatureProtectPrivateChatContent(data json.RawMessage) (*PremiumFeatureProtectPrivateChatContent, error) {
|
||||||
|
var resp PremiumFeatureProtectPrivateChatContent
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalBusinessFeatureLocation(data json.RawMessage) (*BusinessFeatureLocation, error) {
|
func UnmarshalBusinessFeatureLocation(data json.RawMessage) (*BusinessFeatureLocation, error) {
|
||||||
var resp BusinessFeatureLocation
|
var resp BusinessFeatureLocation
|
||||||
|
|
||||||
|
|
@ -22884,6 +23130,14 @@ func UnmarshalInternalLinkTypeNewStory(data json.RawMessage) (*InternalLinkTypeN
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalInternalLinkTypeOauth(data json.RawMessage) (*InternalLinkTypeOauth, error) {
|
||||||
|
var resp InternalLinkTypeOauth
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalInternalLinkTypePassportDataRequest(data json.RawMessage) (*InternalLinkTypePassportDataRequest, error) {
|
func UnmarshalInternalLinkTypePassportDataRequest(data json.RawMessage) (*InternalLinkTypePassportDataRequest, error) {
|
||||||
var resp InternalLinkTypePassportDataRequest
|
var resp InternalLinkTypePassportDataRequest
|
||||||
|
|
||||||
|
|
@ -24892,6 +25146,14 @@ func UnmarshalUpdateServiceNotification(data json.RawMessage) (*UpdateServiceNot
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalUpdateNewOauthRequest(data json.RawMessage) (*UpdateNewOauthRequest, error) {
|
||||||
|
var resp UpdateNewOauthRequest
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalUpdateFile(data json.RawMessage) (*UpdateFile, error) {
|
func UnmarshalUpdateFile(data json.RawMessage) (*UpdateFile, error) {
|
||||||
var resp UpdateFile
|
var resp UpdateFile
|
||||||
|
|
||||||
|
|
@ -27012,6 +27274,12 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeChatMessageSenders:
|
case TypeChatMessageSenders:
|
||||||
return UnmarshalChatMessageSenders(data)
|
return UnmarshalChatMessageSenders(data)
|
||||||
|
|
||||||
|
case TypePollVoter:
|
||||||
|
return UnmarshalPollVoter(data)
|
||||||
|
|
||||||
|
case TypePollVoters:
|
||||||
|
return UnmarshalPollVoters(data)
|
||||||
|
|
||||||
case TypeMessageReadDateRead:
|
case TypeMessageReadDateRead:
|
||||||
return UnmarshalMessageReadDateRead(data)
|
return UnmarshalMessageReadDateRead(data)
|
||||||
|
|
||||||
|
|
@ -27498,6 +27766,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeLoginUrlInfoRequestConfirmation:
|
case TypeLoginUrlInfoRequestConfirmation:
|
||||||
return UnmarshalLoginUrlInfoRequestConfirmation(data)
|
return UnmarshalLoginUrlInfoRequestConfirmation(data)
|
||||||
|
|
||||||
|
case TypeOauthLinkInfo:
|
||||||
|
return UnmarshalOauthLinkInfo(data)
|
||||||
|
|
||||||
case TypeThemeParameters:
|
case TypeThemeParameters:
|
||||||
return UnmarshalThemeParameters(data)
|
return UnmarshalThemeParameters(data)
|
||||||
|
|
||||||
|
|
@ -28326,6 +28597,12 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeMessageChatOwnerChanged:
|
case TypeMessageChatOwnerChanged:
|
||||||
return UnmarshalMessageChatOwnerChanged(data)
|
return UnmarshalMessageChatOwnerChanged(data)
|
||||||
|
|
||||||
|
case TypeMessageChatHasProtectedContentToggled:
|
||||||
|
return UnmarshalMessageChatHasProtectedContentToggled(data)
|
||||||
|
|
||||||
|
case TypeMessageChatHasProtectedContentDisableRequested:
|
||||||
|
return UnmarshalMessageChatHasProtectedContentDisableRequested(data)
|
||||||
|
|
||||||
case TypeMessageChatAddMembers:
|
case TypeMessageChatAddMembers:
|
||||||
return UnmarshalMessageChatAddMembers(data)
|
return UnmarshalMessageChatAddMembers(data)
|
||||||
|
|
||||||
|
|
@ -28497,6 +28774,21 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeMessageUnsupported:
|
case TypeMessageUnsupported:
|
||||||
return UnmarshalMessageUnsupported(data)
|
return UnmarshalMessageUnsupported(data)
|
||||||
|
|
||||||
|
case TypeDateTimePartPrecisionNone:
|
||||||
|
return UnmarshalDateTimePartPrecisionNone(data)
|
||||||
|
|
||||||
|
case TypeDateTimePartPrecisionShort:
|
||||||
|
return UnmarshalDateTimePartPrecisionShort(data)
|
||||||
|
|
||||||
|
case TypeDateTimePartPrecisionLong:
|
||||||
|
return UnmarshalDateTimePartPrecisionLong(data)
|
||||||
|
|
||||||
|
case TypeDateTimeFormattingTypeRelative:
|
||||||
|
return UnmarshalDateTimeFormattingTypeRelative(data)
|
||||||
|
|
||||||
|
case TypeDateTimeFormattingTypeAbsolute:
|
||||||
|
return UnmarshalDateTimeFormattingTypeAbsolute(data)
|
||||||
|
|
||||||
case TypeTextEntityTypeMention:
|
case TypeTextEntityTypeMention:
|
||||||
return UnmarshalTextEntityTypeMention(data)
|
return UnmarshalTextEntityTypeMention(data)
|
||||||
|
|
||||||
|
|
@ -28563,6 +28855,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeTextEntityTypeMediaTimestamp:
|
case TypeTextEntityTypeMediaTimestamp:
|
||||||
return UnmarshalTextEntityTypeMediaTimestamp(data)
|
return UnmarshalTextEntityTypeMediaTimestamp(data)
|
||||||
|
|
||||||
|
case TypeTextEntityTypeDateTime:
|
||||||
|
return UnmarshalTextEntityTypeDateTime(data)
|
||||||
|
|
||||||
case TypeInputThumbnail:
|
case TypeInputThumbnail:
|
||||||
return UnmarshalInputThumbnail(data)
|
return UnmarshalInputThumbnail(data)
|
||||||
|
|
||||||
|
|
@ -29085,6 +29380,12 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeGroupCallId:
|
case TypeGroupCallId:
|
||||||
return UnmarshalGroupCallId(data)
|
return UnmarshalGroupCallId(data)
|
||||||
|
|
||||||
|
case TypeInputCallDiscarded:
|
||||||
|
return UnmarshalInputCallDiscarded(data)
|
||||||
|
|
||||||
|
case TypeInputCallFromMessage:
|
||||||
|
return UnmarshalInputCallFromMessage(data)
|
||||||
|
|
||||||
case TypeCallStatePending:
|
case TypeCallStatePending:
|
||||||
return UnmarshalCallStatePending(data)
|
return UnmarshalCallStatePending(data)
|
||||||
|
|
||||||
|
|
@ -29448,6 +29749,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeChatEventMemberRestricted:
|
case TypeChatEventMemberRestricted:
|
||||||
return UnmarshalChatEventMemberRestricted(data)
|
return UnmarshalChatEventMemberRestricted(data)
|
||||||
|
|
||||||
|
case TypeChatEventMemberTagChanged:
|
||||||
|
return UnmarshalChatEventMemberTagChanged(data)
|
||||||
|
|
||||||
case TypeChatEventMemberSubscriptionExtended:
|
case TypeChatEventMemberSubscriptionExtended:
|
||||||
return UnmarshalChatEventMemberSubscriptionExtended(data)
|
return UnmarshalChatEventMemberSubscriptionExtended(data)
|
||||||
|
|
||||||
|
|
@ -29733,6 +30037,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypePremiumFeaturePaidMessages:
|
case TypePremiumFeaturePaidMessages:
|
||||||
return UnmarshalPremiumFeaturePaidMessages(data)
|
return UnmarshalPremiumFeaturePaidMessages(data)
|
||||||
|
|
||||||
|
case TypePremiumFeatureProtectPrivateChatContent:
|
||||||
|
return UnmarshalPremiumFeatureProtectPrivateChatContent(data)
|
||||||
|
|
||||||
case TypeBusinessFeatureLocation:
|
case TypeBusinessFeatureLocation:
|
||||||
return UnmarshalBusinessFeatureLocation(data)
|
return UnmarshalBusinessFeatureLocation(data)
|
||||||
|
|
||||||
|
|
@ -30648,6 +30955,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeInternalLinkTypeNewStory:
|
case TypeInternalLinkTypeNewStory:
|
||||||
return UnmarshalInternalLinkTypeNewStory(data)
|
return UnmarshalInternalLinkTypeNewStory(data)
|
||||||
|
|
||||||
|
case TypeInternalLinkTypeOauth:
|
||||||
|
return UnmarshalInternalLinkTypeOauth(data)
|
||||||
|
|
||||||
case TypeInternalLinkTypePassportDataRequest:
|
case TypeInternalLinkTypePassportDataRequest:
|
||||||
return UnmarshalInternalLinkTypePassportDataRequest(data)
|
return UnmarshalInternalLinkTypePassportDataRequest(data)
|
||||||
|
|
||||||
|
|
@ -31401,6 +31711,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeUpdateServiceNotification:
|
case TypeUpdateServiceNotification:
|
||||||
return UnmarshalUpdateServiceNotification(data)
|
return UnmarshalUpdateServiceNotification(data)
|
||||||
|
|
||||||
|
case TypeUpdateNewOauthRequest:
|
||||||
|
return UnmarshalUpdateNewOauthRequest(data)
|
||||||
|
|
||||||
case TypeUpdateFile:
|
case TypeUpdateFile:
|
||||||
return UnmarshalUpdateFile(data)
|
return UnmarshalUpdateFile(data)
|
||||||
|
|
||||||
|
|
|
||||||
212
data/td_api.tl
212
data/td_api.tl
|
|
@ -922,11 +922,12 @@ inputChatPhotoSticker sticker:chatPhotoSticker = InputChatPhoto;
|
||||||
//@can_send_games True, if the user can send games. Implies can_send_messages permissions
|
//@can_send_games True, if the user can send games. Implies can_send_messages permissions
|
||||||
//@can_use_inline_bots True, if the user can use inline bots. Implies can_send_messages permissions
|
//@can_use_inline_bots True, if the user can use inline bots. Implies can_send_messages permissions
|
||||||
//@can_add_link_previews True, if the user may add a link preview to their messages
|
//@can_add_link_previews True, if the user may add a link preview to their messages
|
||||||
|
//@can_edit_tag True, if the user may change the tag of self
|
||||||
//@can_change_info True, if the user can change the chat title, photo, and other settings
|
//@can_change_info True, if the user can change the chat title, photo, and other settings
|
||||||
//@can_invite_users True, if the user can invite new users to the chat
|
//@can_invite_users True, if the user can invite new users to the chat
|
||||||
//@can_pin_messages True, if the user can pin messages
|
//@can_pin_messages True, if the user can pin messages
|
||||||
//@can_create_topics True, if the user can create topics
|
//@can_create_topics True, if the user can create topics
|
||||||
chatPermissions can_send_basic_messages:Bool can_send_audios:Bool can_send_documents:Bool can_send_photos:Bool can_send_videos:Bool can_send_video_notes:Bool can_send_voice_notes:Bool can_send_polls:Bool can_send_stickers:Bool can_send_animations:Bool can_send_games:Bool can_use_inline_bots:Bool can_add_link_previews:Bool can_change_info:Bool can_invite_users:Bool can_pin_messages:Bool can_create_topics:Bool = ChatPermissions;
|
chatPermissions can_send_basic_messages:Bool can_send_audios:Bool can_send_documents:Bool can_send_photos:Bool can_send_videos:Bool can_send_video_notes:Bool can_send_voice_notes:Bool can_send_polls:Bool can_send_stickers:Bool can_send_animations:Bool can_send_games:Bool can_use_inline_bots:Bool can_add_link_previews:Bool can_edit_tag:Bool can_change_info:Bool can_invite_users:Bool can_pin_messages:Bool can_create_topics:Bool = ChatPermissions;
|
||||||
|
|
||||||
//@description Describes rights of the administrator
|
//@description Describes rights of the administrator
|
||||||
//@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,
|
//@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,
|
||||||
|
|
@ -945,8 +946,9 @@ chatPermissions can_send_basic_messages:Bool can_send_audios:Bool can_send_docum
|
||||||
//@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_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_delete_stories True, if the administrator can delete stories posted by other users; applicable to supergroups and channels only
|
||||||
//@can_manage_direct_messages True, if the administrator can answer to channel direct messages; applicable to channels only
|
//@can_manage_direct_messages True, if the administrator can answer to channel direct messages; applicable to channels only
|
||||||
|
//@can_manage_tags True, if the administrator can change tags of other users; applicable to basic groups and supergroups only
|
||||||
//@is_anonymous True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only
|
//@is_anonymous True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only
|
||||||
chatAdministratorRights can_manage_chat:Bool can_change_info:Bool can_post_messages:Bool can_edit_messages:Bool can_delete_messages:Bool can_invite_users:Bool can_restrict_members:Bool can_pin_messages:Bool can_manage_topics:Bool can_promote_members:Bool can_manage_video_chats:Bool can_post_stories:Bool can_edit_stories:Bool can_delete_stories:Bool can_manage_direct_messages:Bool is_anonymous:Bool = ChatAdministratorRights;
|
chatAdministratorRights can_manage_chat:Bool can_change_info:Bool can_post_messages:Bool can_edit_messages:Bool can_delete_messages:Bool can_invite_users:Bool can_restrict_members:Bool can_pin_messages:Bool can_manage_topics:Bool can_promote_members:Bool can_manage_video_chats:Bool can_post_stories:Bool can_edit_stories:Bool can_delete_stories:Bool can_manage_direct_messages:Bool can_manage_tags:Bool is_anonymous:Bool = ChatAdministratorRights;
|
||||||
|
|
||||||
|
|
||||||
//@class GiftResalePrice @description Describes price of a resold gift
|
//@class GiftResalePrice @description Describes price of a resold gift
|
||||||
|
|
@ -2212,17 +2214,15 @@ chatAdministrators administrators:vector<chatAdministrator> = ChatAdministrators
|
||||||
//@class ChatMemberStatus @description Provides information about the status of a member in a chat
|
//@class ChatMemberStatus @description Provides information about the status of a member in a chat
|
||||||
|
|
||||||
//@description The user is the owner of the chat and has all the administrator privileges
|
//@description The user is the owner of the chat and has all the administrator privileges
|
||||||
//@custom_title A custom title of the owner; 0-16 characters without emoji; applicable to supergroups only
|
|
||||||
//@is_anonymous True, if the creator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only
|
//@is_anonymous True, if the creator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only
|
||||||
//@is_member True, if the user is a member of the chat
|
//@is_member True, if the user is a member of the chat
|
||||||
chatMemberStatusCreator custom_title:string is_anonymous:Bool is_member:Bool = ChatMemberStatus;
|
chatMemberStatusCreator is_anonymous:Bool is_member:Bool = ChatMemberStatus;
|
||||||
|
|
||||||
//@description The user is a member of the chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged members, and manage video chats.
|
//@description The user is a member of the chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged members, and manage video chats.
|
||||||
//-In supergroups and channels, there are more detailed options for administrator privileges
|
//-In supergroups and channels, there are more detailed options for administrator privileges
|
||||||
//@custom_title A custom title of the administrator; 0-16 characters without emoji; applicable to supergroups only
|
|
||||||
//@can_be_edited True, if the current user can edit the administrator privileges for the called user
|
//@can_be_edited True, if the current user can edit the administrator privileges for the called user
|
||||||
//@rights Rights of the administrator
|
//@rights Rights of the administrator
|
||||||
chatMemberStatusAdministrator custom_title:string can_be_edited:Bool rights:chatAdministratorRights = ChatMemberStatus;
|
chatMemberStatusAdministrator can_be_edited:Bool rights:chatAdministratorRights = ChatMemberStatus;
|
||||||
|
|
||||||
//@description The user is a member of the chat, without any additional privileges or restrictions
|
//@description The user is a member of the chat, without any additional privileges or restrictions
|
||||||
//@member_until_date Point in time (Unix timestamp) when the user will be removed from the chat because of the expired subscription; 0 if never. Ignored in setChatMemberStatus
|
//@member_until_date Point in time (Unix timestamp) when the user will be removed from the chat because of the expired subscription; 0 if never. Ignored in setChatMemberStatus
|
||||||
|
|
@ -2244,10 +2244,11 @@ chatMemberStatusBanned banned_until_date:int32 = ChatMemberStatus;
|
||||||
|
|
||||||
//@description Describes a user or a chat as a member of another chat
|
//@description Describes a user or a chat as a member of another chat
|
||||||
//@member_id Identifier of the chat member. Currently, other chats can be only Left or Banned. Only supergroups and channels can have other chats as Left or Banned members and these chats must be supergroups or channels
|
//@member_id Identifier of the chat member. Currently, other chats can be only Left or Banned. Only supergroups and channels can have other chats as Left or Banned members and these chats must be supergroups or channels
|
||||||
|
//@tag Tag of the chat member or its custom title if the member is an administrator of the chat; 0-16 characters without emoji; applicable to basic groups and supergroups only
|
||||||
//@inviter_user_id Identifier of a user who invited/promoted/banned this member in the chat; 0 if unknown
|
//@inviter_user_id Identifier of a user who invited/promoted/banned this member in the chat; 0 if unknown
|
||||||
//@joined_chat_date Point in time (Unix timestamp) when the user joined/was promoted/was banned in the chat
|
//@joined_chat_date Point in time (Unix timestamp) when the user joined/was promoted/was banned in the chat
|
||||||
//@status Status of the member in the chat
|
//@status Status of the member in the chat
|
||||||
chatMember member_id:MessageSender inviter_user_id:int53 joined_chat_date:int32 status:ChatMemberStatus = ChatMember;
|
chatMember member_id:MessageSender tag:string inviter_user_id:int53 joined_chat_date:int32 status:ChatMemberStatus = ChatMember;
|
||||||
|
|
||||||
//@description Contains a list of chat members @total_count Approximate total number of chat members found @members A list of chat members
|
//@description Contains a list of chat members @total_count Approximate total number of chat members found @members A list of chat members
|
||||||
chatMembers total_count:int32 members:vector<chatMember> = ChatMembers;
|
chatMembers total_count:int32 members:vector<chatMember> = ChatMembers;
|
||||||
|
|
@ -2416,7 +2417,7 @@ basicGroupFullInfo photo:chatPhoto description:string creator_user_id:int53 memb
|
||||||
//@access_hash Supergroup or channel access hash
|
//@access_hash Supergroup or channel access hash
|
||||||
//@usernames Usernames of the supergroup or channel; may be null
|
//@usernames Usernames of the supergroup or channel; may be null
|
||||||
//@date Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member
|
//@date Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member
|
||||||
//@status Status of the current user in the supergroup or channel; custom title will always be empty
|
//@status Status of the current user in the supergroup or channel
|
||||||
//@member_count Number of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the supergroup or channel was received through
|
//@member_count Number of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the supergroup or channel was received through
|
||||||
//-getChatSimilarChats, getChatsToPostStories, getCreatedPublicChats, getGroupsInCommon, getInactiveSupergroupChats, getRecommendedChats, getSuitableDiscussionChats,
|
//-getChatSimilarChats, getChatsToPostStories, getCreatedPublicChats, getGroupsInCommon, getInactiveSupergroupChats, getRecommendedChats, getSuitableDiscussionChats,
|
||||||
//-getUserPrivacySettingRules, getVideoChatAvailableParticipants, searchPublicChats, or in chatFolderInviteLinkInfo.missing_chat_ids, or in userFullInfo.personal_chat_id,
|
//-getUserPrivacySettingRules, getVideoChatAvailableParticipants, searchPublicChats, or in chatFolderInviteLinkInfo.missing_chat_ids, or in userFullInfo.personal_chat_id,
|
||||||
|
|
@ -2530,7 +2531,7 @@ messageSenderUser user_id:int53 = MessageSender;
|
||||||
messageSenderChat chat_id:int53 = MessageSender;
|
messageSenderChat chat_id:int53 = MessageSender;
|
||||||
|
|
||||||
|
|
||||||
//@description Represents a list of message senders @total_count Approximate total number of messages senders found @senders List of message senders
|
//@description Represents a list of message senders @total_count Approximate total number of message senders found @senders List of message senders
|
||||||
messageSenders total_count:int32 senders:vector<MessageSender> = MessageSenders;
|
messageSenders total_count:int32 senders:vector<MessageSender> = MessageSenders;
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -2541,6 +2542,15 @@ chatMessageSender sender:MessageSender needs_premium:Bool = ChatMessageSender;
|
||||||
chatMessageSenders senders:vector<chatMessageSender> = ChatMessageSenders;
|
chatMessageSenders senders:vector<chatMessageSender> = ChatMessageSenders;
|
||||||
|
|
||||||
|
|
||||||
|
//@description Represents a poll voter
|
||||||
|
//@voter_id The voter identifier
|
||||||
|
//@date Point in time (Unix timestamp) when the vote was added
|
||||||
|
pollVoter voter_id:MessageSender date:int32 = PollVoter;
|
||||||
|
|
||||||
|
//@description Represents a list of poll voters @total_count Approximate total number of poll voters found @voters List of poll voters
|
||||||
|
pollVoters total_count:int32 voters:vector<pollVoter> = PollVoters;
|
||||||
|
|
||||||
|
|
||||||
//@class MessageReadDate @description Describes read date of a recent outgoing message in a private chat
|
//@class MessageReadDate @description Describes read date of a recent outgoing message in a private chat
|
||||||
|
|
||||||
//@description Contains read date of the message @read_date Point in time (Unix timestamp) when the message was read by the other user
|
//@description Contains read date of the message @read_date Point in time (Unix timestamp) when the message was read by the other user
|
||||||
|
|
@ -2820,6 +2830,7 @@ factCheck text:formattedText country_code:string = FactCheck;
|
||||||
//@via_bot_user_id If non-zero, the user identifier of the inline bot through which this message was sent
|
//@via_bot_user_id If non-zero, the user identifier of the inline bot through which this message was sent
|
||||||
//@sender_business_bot_user_id If non-zero, the user identifier of the business bot that sent this message
|
//@sender_business_bot_user_id If non-zero, the user identifier of the business bot that sent this message
|
||||||
//@sender_boost_count Number of times the sender of the message boosted the supergroup at the time the message was sent; 0 if none or unknown. For messages sent by the current user, supergroupFullInfo.my_boost_count must be used instead
|
//@sender_boost_count Number of times the sender of the message boosted the supergroup at the time the message was sent; 0 if none or unknown. For messages sent by the current user, supergroupFullInfo.my_boost_count must be used instead
|
||||||
|
//@sender_tag Tag of the sender of the message in the supergroup at the time the message was sent; may be empty if none or unknown. For messages sent in basic groups or supergroup administrators, the current custom title or tag must be used instead
|
||||||
//@paid_message_star_count The number of Telegram Stars the sender paid to send the message
|
//@paid_message_star_count The number of Telegram Stars the sender paid to send the message
|
||||||
//@author_signature For channel posts and anonymous group messages, optional author signature
|
//@author_signature For channel posts and anonymous group messages, optional author signature
|
||||||
//@media_album_id Unique identifier of an album this message belongs to; 0 if none. Only audios, documents, photos and videos can be grouped together in albums
|
//@media_album_id Unique identifier of an album this message belongs to; 0 if none. Only audios, documents, photos and videos can be grouped together in albums
|
||||||
|
|
@ -2828,7 +2839,7 @@ factCheck text:formattedText country_code:string = FactCheck;
|
||||||
//@summary_language_code IETF language tag of the message language on which it can be summarized; empty if summary isn't available for the message
|
//@summary_language_code IETF language tag of the message language on which it can be summarized; empty if summary isn't available for the message
|
||||||
//@content Content of the message
|
//@content Content of the message
|
||||||
//@reply_markup Reply markup for the message; may be null if none
|
//@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 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 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 restriction_info:restrictionInfo summary_language_code: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 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 sender_tag:string paid_message_star_count:int53 author_signature:string media_album_id:int64 effect_id:int64 restriction_info:restrictionInfo summary_language_code:string content:MessageContent reply_markup:ReplyMarkup = Message;
|
||||||
|
|
||||||
|
|
||||||
//@description Contains a list of messages @total_count Approximate total number of messages found @messages List of messages; messages may be null
|
//@description Contains a list of messages @total_count Approximate total number of messages found @messages List of messages; messages may be null
|
||||||
|
|
@ -3255,7 +3266,7 @@ videoChat group_call_id:int32 has_participants:Bool default_participant_id:Messa
|
||||||
//@business_bot_manage_bar Information about bar for managing a business bot in the chat; may be null if none
|
//@business_bot_manage_bar Information about bar for managing a business bot in the chat; may be null if none
|
||||||
//@video_chat Information about video chat of the chat
|
//@video_chat Information about video chat of the chat
|
||||||
//@pending_join_requests Information about pending join requests; may be null if none
|
//@pending_join_requests Information about pending join requests; may be null if none
|
||||||
//@reply_markup_message_id Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat
|
//@reply_markup_message_id Identifier of the message from which reply markup needs to be used; 0 if there is no reply markup in the chat
|
||||||
//@draft_message A draft of a message in the chat; may be null if none
|
//@draft_message A draft of a message in the chat; may be null if none
|
||||||
//@client_data Application-specific data associated with the chat. (For example, the chat scroll position or local chat notification settings can be stored here.) Persistent if the message database is used
|
//@client_data Application-specific data associated with the chat. (For example, the chat scroll position or local chat notification settings can be stored here.) Persistent if the message database is used
|
||||||
chat id:int53 type:ChatType title:string photo:chatPhotoInfo accent_color_id:int32 background_custom_emoji_id:int64 upgraded_gift_colors:upgradedGiftColors profile_accent_color_id:int32 profile_background_custom_emoji_id:int64 permissions:chatPermissions last_message:message positions:vector<chatPosition> chat_lists:vector<ChatList> message_sender_id:MessageSender block_list:BlockList has_protected_content:Bool is_translatable:Bool is_marked_as_unread:Bool view_as_topics:Bool has_scheduled_messages:Bool can_be_deleted_only_for_self:Bool can_be_deleted_for_all_users:Bool can_be_reported:Bool default_disable_notification:Bool unread_count:int32 last_read_inbox_message_id:int53 last_read_outbox_message_id:int53 unread_mention_count:int32 unread_reaction_count:int32 notification_settings:chatNotificationSettings available_reactions:ChatAvailableReactions message_auto_delete_time:int32 emoji_status:emojiStatus background:chatBackground theme:ChatTheme action_bar:ChatActionBar business_bot_manage_bar:businessBotManageBar video_chat:videoChat pending_join_requests:chatJoinRequestsInfo reply_markup_message_id:int53 draft_message:draftMessage client_data:string = Chat;
|
chat id:int53 type:ChatType title:string photo:chatPhotoInfo accent_color_id:int32 background_custom_emoji_id:int64 upgraded_gift_colors:upgradedGiftColors profile_accent_color_id:int32 profile_background_custom_emoji_id:int64 permissions:chatPermissions last_message:message positions:vector<chatPosition> chat_lists:vector<ChatList> message_sender_id:MessageSender block_list:BlockList has_protected_content:Bool is_translatable:Bool is_marked_as_unread:Bool view_as_topics:Bool has_scheduled_messages:Bool can_be_deleted_only_for_self:Bool can_be_deleted_for_all_users:Bool can_be_reported:Bool default_disable_notification:Bool unread_count:int32 last_read_inbox_message_id:int53 last_read_outbox_message_id:int53 unread_mention_count:int32 unread_reaction_count:int32 notification_settings:chatNotificationSettings available_reactions:ChatAvailableReactions message_auto_delete_time:int32 emoji_status:emojiStatus background:chatBackground theme:ChatTheme action_bar:ChatActionBar business_bot_manage_bar:businessBotManageBar video_chat:videoChat pending_join_requests:chatJoinRequestsInfo reply_markup_message_id:int53 draft_message:draftMessage client_data:string = Chat;
|
||||||
|
|
@ -3436,7 +3447,7 @@ inlineKeyboardButton text:string icon_custom_emoji_id:int64 style:ButtonStyle ty
|
||||||
|
|
||||||
//@class ReplyMarkup @description Contains a description of a custom keyboard and actions that can be done with it to quickly reply to bots
|
//@class ReplyMarkup @description Contains a description of a custom keyboard and actions that can be done with it to quickly reply to bots
|
||||||
|
|
||||||
//@description Instructs application to remove the keyboard once this message has been received. This kind of keyboard can't be received in an incoming message; instead, updateChatReplyMarkup with message_id == 0 will be sent
|
//@description Instructs application to remove the keyboard once this message has been received. This kind of keyboard can't be received in an incoming message; instead, updateChatReplyMarkup with reply_markup_message == null will be sent
|
||||||
//@is_personal True, if the keyboard is removed only for the mentioned users or the target user of a reply
|
//@is_personal True, if the keyboard is removed only for the mentioned users or the target user of a reply
|
||||||
replyMarkupRemoveKeyboard is_personal:Bool = ReplyMarkup;
|
replyMarkupRemoveKeyboard is_personal:Bool = ReplyMarkup;
|
||||||
|
|
||||||
|
|
@ -3459,7 +3470,7 @@ replyMarkupShowKeyboard rows:vector<vector<keyboardButton>> is_persistent:Bool r
|
||||||
replyMarkupInlineKeyboard rows:vector<vector<inlineKeyboardButton>> = ReplyMarkup;
|
replyMarkupInlineKeyboard rows:vector<vector<inlineKeyboardButton>> = ReplyMarkup;
|
||||||
|
|
||||||
|
|
||||||
//@class LoginUrlInfo @description Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl
|
//@class LoginUrlInfo @description Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl or an external link
|
||||||
|
|
||||||
//@description An HTTP URL needs to be open @url The URL to open @skip_confirmation True, if there is no need to show an ordinary open URL confirmation
|
//@description An HTTP URL needs to be open @url The URL to open @skip_confirmation True, if there is no need to show an ordinary open URL confirmation
|
||||||
loginUrlInfoOpen url:string skip_confirmation:Bool = LoginUrlInfo;
|
loginUrlInfoOpen url:string skip_confirmation:Bool = LoginUrlInfo;
|
||||||
|
|
@ -3469,12 +3480,24 @@ loginUrlInfoOpen url:string skip_confirmation:Bool = LoginUrlInfo;
|
||||||
//@domain A domain of the URL
|
//@domain A domain of the URL
|
||||||
//@bot_user_id User identifier of a bot linked with the website
|
//@bot_user_id User identifier of a bot linked with the website
|
||||||
//@request_write_access True, if the user must be asked for the permission to the bot to send them messages
|
//@request_write_access True, if the user must be asked for the permission to the bot to send them messages
|
||||||
|
loginUrlInfoRequestConfirmation url:string domain:string bot_user_id:int53 request_write_access:Bool = LoginUrlInfo;
|
||||||
|
|
||||||
|
|
||||||
|
//@description Information about the OAuth authorization
|
||||||
|
//@user_id Identifier of the user for which the link was generated; may be 0 if unknown. The corresponding user may be unknown.
|
||||||
|
//-If the user is logged in the app, then they must be chosen for authorization by default
|
||||||
|
//@url An HTTP URL where the user authorizes
|
||||||
|
//@domain A domain of the URL
|
||||||
|
//@bot_user_id User identifier of a bot linked with the website
|
||||||
|
//@request_write_access True, if the user must be asked for the permission to the bot to send them messages
|
||||||
//@request_phone_number_access True, if the user must be asked for the permission to share their phone number
|
//@request_phone_number_access True, if the user must be asked for the permission to share their phone number
|
||||||
//@browser The version of a browser used for the authorization; may be empty if irrelevant
|
//@browser The version of a browser used for the authorization
|
||||||
//@platform Operating system the browser is running on; may be empty if irrelevant
|
//@platform Operating system the browser is running on
|
||||||
//@ip_address IP address from which the authorization is performed, in human-readable format; may be empty if irrelevant
|
//@ip_address IP address from which the authorization is performed, in human-readable format
|
||||||
//@location Human-readable description of a country and a region from which the authorization is performed, based on the IP address; may be empty if irrelevant
|
//@location Human-readable description of a country and a region from which the authorization is performed, based on the IP address
|
||||||
loginUrlInfoRequestConfirmation url:string domain:string bot_user_id:int53 request_write_access:Bool request_phone_number_access:Bool browser:string platform:string ip_address:string location:string = LoginUrlInfo;
|
//@match_code_first True, if code matching dialog must be shown first and checkOauthRequestMatchCode must be called before acceptOauthRequest. Otherwise, checkOauthRequestMatchCode must not be called
|
||||||
|
//@match_codes The list of codes to match; may be empty if irrelevant
|
||||||
|
oauthLinkInfo user_id:int53 url:string domain:string bot_user_id:int53 request_write_access:Bool request_phone_number_access:Bool browser:string platform:string ip_address:string location:string match_code_first:Bool match_codes:vector<string> = OauthLinkInfo;
|
||||||
|
|
||||||
|
|
||||||
//@description Contains parameters of the application theme
|
//@description Contains parameters of the application theme
|
||||||
|
|
@ -3976,27 +3999,30 @@ linkPreviewTypeDocument document:document = LinkPreviewType;
|
||||||
|
|
||||||
//@description The link is a link to an animation player
|
//@description The link is a link to an animation player
|
||||||
//@url URL of the external animation player
|
//@url URL of the external animation player
|
||||||
|
//@animation The cached animation; may be null if unknown
|
||||||
//@thumbnail Thumbnail of the animation; may be null if unknown
|
//@thumbnail Thumbnail of the animation; may be null if unknown
|
||||||
//@duration Duration of the animation, in seconds
|
//@duration Duration of the animation, in seconds
|
||||||
//@width Expected width of the embedded player
|
//@width Expected width of the embedded player
|
||||||
//@height Expected height of the embedded player
|
//@height Expected height of the embedded player
|
||||||
linkPreviewTypeEmbeddedAnimationPlayer url:string thumbnail:photo duration:int32 width:int32 height:int32 = LinkPreviewType;
|
linkPreviewTypeEmbeddedAnimationPlayer url:string animation:animation thumbnail:photo duration:int32 width:int32 height:int32 = LinkPreviewType;
|
||||||
|
|
||||||
//@description The link is a link to an audio player
|
//@description The link is a link to an audio player
|
||||||
//@url URL of the external audio player
|
//@url URL of the external audio player
|
||||||
|
//@audio The cached audio; may be null if unknown
|
||||||
//@thumbnail Thumbnail of the audio; may be null if unknown
|
//@thumbnail Thumbnail of the audio; may be null if unknown
|
||||||
//@duration Duration of the audio, in seconds
|
//@duration Duration of the audio, in seconds
|
||||||
//@width Expected width of the embedded player
|
//@width Expected width of the embedded player
|
||||||
//@height Expected height of the embedded player
|
//@height Expected height of the embedded player
|
||||||
linkPreviewTypeEmbeddedAudioPlayer url:string thumbnail:photo duration:int32 width:int32 height:int32 = LinkPreviewType;
|
linkPreviewTypeEmbeddedAudioPlayer url:string audio:audio thumbnail:photo duration:int32 width:int32 height:int32 = LinkPreviewType;
|
||||||
|
|
||||||
//@description The link is a link to a video player
|
//@description The link is a link to a video player
|
||||||
//@url URL of the external video player
|
//@url URL of the external video player
|
||||||
|
//@video The cached video; may be null if unknown
|
||||||
//@thumbnail Thumbnail of the video; may be null if unknown
|
//@thumbnail Thumbnail of the video; may be null if unknown
|
||||||
//@duration Duration of the video, in seconds
|
//@duration Duration of the video, in seconds
|
||||||
//@width Expected width of the embedded player
|
//@width Expected width of the embedded player
|
||||||
//@height Expected height of the embedded player
|
//@height Expected height of the embedded player
|
||||||
linkPreviewTypeEmbeddedVideoPlayer url:string thumbnail:photo duration:int32 width:int32 height:int32 = LinkPreviewType;
|
linkPreviewTypeEmbeddedVideoPlayer url:string video:video thumbnail:photo duration:int32 width:int32 height:int32 = LinkPreviewType;
|
||||||
|
|
||||||
//@description The link is a link to an audio file
|
//@description The link is a link to an audio file
|
||||||
//@url URL of the audio file
|
//@url URL of the audio file
|
||||||
|
|
@ -4764,8 +4790,12 @@ messageChecklist list:checklist = MessageContent;
|
||||||
//@paid_media_caption Extended media caption; may be null if none
|
//@paid_media_caption Extended media caption; may be null if none
|
||||||
messageInvoice product_info:productInfo currency:string total_amount:int53 start_parameter:string is_test:Bool need_shipping_address:Bool receipt_message_id:int53 paid_media:PaidMedia paid_media_caption:formattedText = MessageContent;
|
messageInvoice product_info:productInfo currency:string total_amount:int53 start_parameter:string is_test:Bool need_shipping_address:Bool receipt_message_id:int53 paid_media:PaidMedia paid_media_caption:formattedText = MessageContent;
|
||||||
|
|
||||||
//@description A message with information about an ended call @is_video True, if the call was a video call @discard_reason Reason why the call was discarded @duration Call duration, in seconds
|
//@description A message with information about an ended call
|
||||||
messageCall is_video:Bool discard_reason:CallDiscardReason duration:int32 = MessageContent;
|
//@unique_id Persistent unique call identifier; 0 for calls from other devices, which can't be passed as inputCallFromMessage
|
||||||
|
//@is_video True, if the call was a video call
|
||||||
|
//@discard_reason Reason why the call was discarded
|
||||||
|
//@duration Call duration, in seconds
|
||||||
|
messageCall unique_id:int64 is_video:Bool discard_reason:CallDiscardReason duration:int32 = MessageContent;
|
||||||
|
|
||||||
//@description A message with information about a group call not bound to a chat. If the message is incoming, the call isn't active, isn't missed, and has no duration,
|
//@description A message with information about a group call not bound to a chat. If the message is incoming, the call isn't active, isn't missed, and has no duration,
|
||||||
//-and getOption("can_accept_calls") is true, then incoming call screen must be shown to the user. Use getGroupCallParticipants to show current group call participants on the screen.
|
//-and getOption("can_accept_calls") is true, then incoming call screen must be shown to the user. Use getGroupCallParticipants to show current group call participants on the screen.
|
||||||
|
|
@ -4811,6 +4841,15 @@ messageChatOwnerLeft new_owner_user_id:int53 = MessageContent;
|
||||||
//@description The owner of the chat has changed @new_owner_user_id Identifier of the user who is the new owner of the chat
|
//@description The owner of the chat has changed @new_owner_user_id Identifier of the user who is the new owner of the chat
|
||||||
messageChatOwnerChanged new_owner_user_id:int53 = MessageContent;
|
messageChatOwnerChanged new_owner_user_id:int53 = MessageContent;
|
||||||
|
|
||||||
|
//@description Chat has_protected_content setting was changed or request to change it was rejected
|
||||||
|
//@request_message_id Identifier of the message with the request to change the setting; can be an identifier of a deleted message or 0
|
||||||
|
//@old_has_protected_content Previous value of the setting
|
||||||
|
//@new_has_protected_content New value of the setting
|
||||||
|
messageChatHasProtectedContentToggled request_message_id:int53 old_has_protected_content:Bool new_has_protected_content:Bool = MessageContent;
|
||||||
|
|
||||||
|
//@description Chat has_protected_content setting was requested to be disabled @is_expired True, if the request has expired
|
||||||
|
messageChatHasProtectedContentDisableRequested is_expired:Bool = MessageContent;
|
||||||
|
|
||||||
//@description New chat members were added @member_user_ids User identifiers of the new members
|
//@description New chat members were added @member_user_ids User identifiers of the new members
|
||||||
messageChatAddMembers member_user_ids:vector<int53> = MessageContent;
|
messageChatAddMembers member_user_ids:vector<int53> = MessageContent;
|
||||||
|
|
||||||
|
|
@ -5143,6 +5182,30 @@ messageProximityAlertTriggered traveler_id:MessageSender watcher_id:MessageSende
|
||||||
messageUnsupported = MessageContent;
|
messageUnsupported = MessageContent;
|
||||||
|
|
||||||
|
|
||||||
|
//@class DateTimePartPrecision @description Describes precision with which to show a date or a time
|
||||||
|
|
||||||
|
//@description Don't show the date or time
|
||||||
|
dateTimePartPrecisionNone = DateTimePartPrecision;
|
||||||
|
|
||||||
|
//@description Show the date or time in a short way (17.03.22 or 22:45)
|
||||||
|
dateTimePartPrecisionShort = DateTimePartPrecision;
|
||||||
|
|
||||||
|
//@description Show the date or time in a long way (March 17, 2022 or 22:45:00)
|
||||||
|
dateTimePartPrecisionLong = DateTimePartPrecision;
|
||||||
|
|
||||||
|
|
||||||
|
//@class DateTimeFormattingType @description Describes date and time formatting
|
||||||
|
|
||||||
|
//@description The time must be shown relative to the current time ([in ] X seconds, minutes, hours, days, months, years [ago])
|
||||||
|
dateTimeFormattingTypeRelative = DateTimeFormattingType;
|
||||||
|
|
||||||
|
//@description The date and time must be shown as absolute timestamps
|
||||||
|
//@time_precision The precision with which hours, minutes and seconds are shown
|
||||||
|
//@date_precision The precision with which the date is shown
|
||||||
|
//@show_day_of_week True, if the day of week must be shown
|
||||||
|
dateTimeFormattingTypeAbsolute time_precision:DateTimePartPrecision date_precision:DateTimePartPrecision show_day_of_week:Bool = DateTimeFormattingType;
|
||||||
|
|
||||||
|
|
||||||
//@class TextEntityType @description Represents a part of the text which must be formatted differently
|
//@class TextEntityType @description Represents a part of the text which must be formatted differently
|
||||||
|
|
||||||
//@description A mention of a user, a supergroup, or a channel by their username
|
//@description A mention of a user, a supergroup, or a channel by their username
|
||||||
|
|
@ -5211,6 +5274,9 @@ textEntityTypeCustomEmoji custom_emoji_id:int64 = TextEntityType;
|
||||||
//@description A media timestamp @media_timestamp Timestamp from which a video/audio/video note/voice note/story playing must start, in seconds. The media can be in the content or the link preview of the current message, or in the same places in the replied message
|
//@description A media timestamp @media_timestamp Timestamp from which a video/audio/video note/voice note/story playing must start, in seconds. The media can be in the content or the link preview of the current message, or in the same places in the replied message
|
||||||
textEntityTypeMediaTimestamp media_timestamp:int32 = TextEntityType;
|
textEntityTypeMediaTimestamp media_timestamp:int32 = TextEntityType;
|
||||||
|
|
||||||
|
//@description A data and time @unix_time Point in time (Unix timestamp) representing the data and time @formatting_type Date and time formatting type; may be null if none and the original text must not be changed
|
||||||
|
textEntityTypeDateTime unix_time:int32 formatting_type:DateTimeFormattingType = TextEntityType;
|
||||||
|
|
||||||
|
|
||||||
//@description A thumbnail to be sent along with a file; must be in JPEG or WEBP format for stickers, and less than 200 KB in size
|
//@description A thumbnail to be sent along with a file; must be in JPEG or WEBP format for stickers, and less than 200 KB in size
|
||||||
//@thumbnail Thumbnail file to send. Sending thumbnails by file_id is currently not supported
|
//@thumbnail Thumbnail file to send. Sending thumbnails by file_id is currently not supported
|
||||||
|
|
@ -5495,8 +5561,10 @@ inputMessageForwarded from_chat_id:int53 message_id:int53 in_game_share:Bool rep
|
||||||
//@can_report_reactions True, if reactions on the message can be reported through reportMessageReactions
|
//@can_report_reactions True, if reactions on the message can be reported through reportMessageReactions
|
||||||
//@can_report_supergroup_spam True, if the message can be reported using reportSupergroupSpam
|
//@can_report_supergroup_spam True, if the message can be reported using reportSupergroupSpam
|
||||||
//@can_set_fact_check True, if fact check for the message can be changed through setMessageFactCheck
|
//@can_set_fact_check True, if fact check for the message can be changed through setMessageFactCheck
|
||||||
|
//@has_protected_content_by_current_user True, if content of the message can't be saved locally, because it is protected by the current user; if true, then can_be_saved is false
|
||||||
|
//@has_protected_content_by_other_user True, if content of the message can't be saved locally, because it is protected by the other user; if true, then can_be_saved is false
|
||||||
//@need_show_statistics True, if message statistics must be available from context menu of the message
|
//@need_show_statistics True, if message statistics must be available from context menu of the message
|
||||||
messageProperties can_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;
|
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 has_protected_content_by_current_user:Bool has_protected_content_by_other_user:Bool need_show_statistics:Bool = MessageProperties;
|
||||||
|
|
||||||
|
|
||||||
//@class SearchMessagesFilter @description Represents a filter for message search results
|
//@class SearchMessagesFilter @description Represents a filter for message search results
|
||||||
|
|
@ -6243,6 +6311,17 @@ callId id:int32 = CallId;
|
||||||
groupCallId id:int32 = GroupCallId;
|
groupCallId id:int32 = GroupCallId;
|
||||||
|
|
||||||
|
|
||||||
|
//@class InputCall @description Describes a call
|
||||||
|
|
||||||
|
//@description A just ended call @call_id Identifier of the call
|
||||||
|
inputCallDiscarded call_id:int32 = InputCall;
|
||||||
|
|
||||||
|
//@description A call from a message of the type messageCall with non-zero messageCall.unique_id
|
||||||
|
//@chat_id Chat identifier of the message
|
||||||
|
//@message_id Message identifier
|
||||||
|
inputCallFromMessage chat_id:int53 message_id:int53 = InputCall;
|
||||||
|
|
||||||
|
|
||||||
//@class CallState @description Describes the current call state
|
//@class CallState @description Describes the current call state
|
||||||
|
|
||||||
//@description The call is pending, waiting to be accepted by a user @is_created True, if the call has already been created by the server @is_received True, if the call has already been received by the other party
|
//@description The call is pending, waiting to be accepted by a user @is_created True, if the call has already been created by the server @is_received True, if the call has already been received by the other party
|
||||||
|
|
@ -6988,6 +7067,9 @@ chatEventMemberPromoted user_id:int53 old_status:ChatMemberStatus new_status:Cha
|
||||||
//@description A chat member was restricted/unrestricted or banned/unbanned, or the list of their restrictions has changed @member_id Affected chat member identifier @old_status Previous status of the chat member @new_status New status of the chat member
|
//@description A chat member was restricted/unrestricted or banned/unbanned, or the list of their restrictions has changed @member_id Affected chat member identifier @old_status Previous status of the chat member @new_status New status of the chat member
|
||||||
chatEventMemberRestricted member_id:MessageSender old_status:ChatMemberStatus new_status:ChatMemberStatus = ChatEventAction;
|
chatEventMemberRestricted member_id:MessageSender old_status:ChatMemberStatus new_status:ChatMemberStatus = ChatEventAction;
|
||||||
|
|
||||||
|
//@description A chat member tag has been changed @user_id Affected chat member user identifier @old_tag Previous tag of the chat member @new_tag New tag of the chat member
|
||||||
|
chatEventMemberTagChanged user_id:int53 old_tag:string new_tag:string = ChatEventAction;
|
||||||
|
|
||||||
//@description A chat member extended their subscription to the chat @user_id Affected chat member user identifier @old_status Previous status of the chat member @new_status New status of the chat member
|
//@description A chat member extended their subscription to the chat @user_id Affected chat member user identifier @old_status Previous status of the chat member @new_status New status of the chat member
|
||||||
chatEventMemberSubscriptionExtended user_id:int53 old_status:ChatMemberStatus new_status:ChatMemberStatus = ChatEventAction;
|
chatEventMemberSubscriptionExtended user_id:int53 old_status:ChatMemberStatus new_status:ChatMemberStatus = ChatEventAction;
|
||||||
|
|
||||||
|
|
@ -7135,13 +7217,14 @@ chatEvents events:vector<chatEvent> = ChatEvents;
|
||||||
//@member_invites True, if invited member events need to be returned
|
//@member_invites True, if invited member events need to be returned
|
||||||
//@member_promotions True, if member promotion/demotion events need to be returned
|
//@member_promotions True, if member promotion/demotion events need to be returned
|
||||||
//@member_restrictions True, if member restricted/unrestricted/banned/unbanned events need to be returned
|
//@member_restrictions True, if member restricted/unrestricted/banned/unbanned events need to be returned
|
||||||
|
//@member_tag_changes True, if member tag and custom title change events need to be returned
|
||||||
//@info_changes True, if changes in chat information need to be returned
|
//@info_changes True, if changes in chat information need to be returned
|
||||||
//@setting_changes True, if changes in chat settings need to be returned
|
//@setting_changes True, if changes in chat settings need to be returned
|
||||||
//@invite_link_changes True, if changes to invite links need to be returned
|
//@invite_link_changes True, if changes to invite links need to be returned
|
||||||
//@video_chat_changes True, if video chat actions need to be returned
|
//@video_chat_changes True, if video chat actions need to be returned
|
||||||
//@forum_changes True, if forum-related actions need to be returned
|
//@forum_changes True, if forum-related actions need to be returned
|
||||||
//@subscription_extensions True, if subscription extensions need to be returned
|
//@subscription_extensions True, if subscription extensions need to be returned
|
||||||
chatEventLogFilters message_edits:Bool message_deletions:Bool message_pins:Bool member_joins:Bool member_leaves:Bool member_invites:Bool member_promotions:Bool member_restrictions:Bool info_changes:Bool setting_changes:Bool invite_link_changes:Bool video_chat_changes:Bool forum_changes:Bool subscription_extensions:Bool = ChatEventLogFilters;
|
chatEventLogFilters message_edits:Bool message_deletions:Bool message_pins:Bool member_joins:Bool member_leaves:Bool member_invites:Bool member_promotions:Bool member_restrictions:Bool member_tag_changes:Bool info_changes:Bool setting_changes:Bool invite_link_changes:Bool video_chat_changes:Bool forum_changes:Bool subscription_extensions:Bool = ChatEventLogFilters;
|
||||||
|
|
||||||
|
|
||||||
//@class LanguagePackStringValue @description Represents the value of a string in a language pack
|
//@class LanguagePackStringValue @description Represents the value of a string in a language pack
|
||||||
|
|
@ -7329,6 +7412,9 @@ premiumFeatureChecklists = PremiumFeature;
|
||||||
//@description The ability to require a payment for incoming messages in new chats
|
//@description The ability to require a payment for incoming messages in new chats
|
||||||
premiumFeaturePaidMessages = PremiumFeature;
|
premiumFeaturePaidMessages = PremiumFeature;
|
||||||
|
|
||||||
|
//@description The ability to enable content protection in private chats
|
||||||
|
premiumFeatureProtectPrivateChatContent = PremiumFeature;
|
||||||
|
|
||||||
|
|
||||||
//@class BusinessFeature @description Describes a feature available to Business user accounts
|
//@class BusinessFeature @description Describes a feature available to Business user accounts
|
||||||
|
|
||||||
|
|
@ -8681,6 +8767,11 @@ internalLinkTypeNewPrivateChat = InternalLinkType;
|
||||||
//@description The link is a link to open the story posting interface @content_type The type of the content of the story to post; may be null if unspecified
|
//@description The link is a link to open the story posting interface @content_type The type of the content of the story to post; may be null if unspecified
|
||||||
internalLinkTypeNewStory content_type:StoryContentType = InternalLinkType;
|
internalLinkTypeNewStory content_type:StoryContentType = InternalLinkType;
|
||||||
|
|
||||||
|
//@description The link is an OAuth link. Call getOauthLinkInfo with the given URL to process the link if the link was received from outside of the application; otherwise, ignore it.
|
||||||
|
//-After getOauthLinkInfo, show the user confirmation dialog and process it with checkOauthRequestMatchCode, acceptOauthRequest or declineOauthRequest
|
||||||
|
//@url URL to be passed to getOauthLinkInfo
|
||||||
|
internalLinkTypeOauth url:string = 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
|
//@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
|
//@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
|
//@scope Telegram Passport element types requested by the service
|
||||||
|
|
@ -9640,10 +9731,8 @@ updateChatNotificationSettings chat_id:int53 notification_settings:chatNotificat
|
||||||
//@description The chat pending join requests were changed @chat_id Chat identifier @pending_join_requests The new data about pending join requests; may be null
|
//@description The chat pending join requests were changed @chat_id Chat identifier @pending_join_requests The new data about pending join requests; may be null
|
||||||
updateChatPendingJoinRequests chat_id:int53 pending_join_requests:chatJoinRequestsInfo = Update;
|
updateChatPendingJoinRequests chat_id:int53 pending_join_requests:chatJoinRequestsInfo = Update;
|
||||||
|
|
||||||
//@description The default chat reply markup was changed. Can occur because new messages with reply markup were received or because an old reply markup was hidden by the user
|
//@description The chat reply markup was changed @chat_id Chat identifier @reply_markup_message The message from which the reply markup must be used; may be null if there is no default reply markup in the chat
|
||||||
//@chat_id Chat identifier
|
updateChatReplyMarkup chat_id:int53 reply_markup_message:message = Update;
|
||||||
//@reply_markup_message_id Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat
|
|
||||||
updateChatReplyMarkup chat_id:int53 reply_markup_message_id:int53 = Update;
|
|
||||||
|
|
||||||
//@description The chat background was changed @chat_id Chat identifier @background The new chat background; may be null if background was reset to default
|
//@description The chat background was changed @chat_id Chat identifier @background The new chat background; may be null if background was reset to default
|
||||||
updateChatBackground chat_id:int53 background:chatBackground = Update;
|
updateChatBackground chat_id:int53 background:chatBackground = Update;
|
||||||
|
|
@ -9819,6 +9908,12 @@ updateSupergroupFullInfo supergroup_id:int53 supergroup_full_info:supergroupFull
|
||||||
//@content Notification content
|
//@content Notification content
|
||||||
updateServiceNotification type:string content:MessageContent = Update;
|
updateServiceNotification type:string content:MessageContent = Update;
|
||||||
|
|
||||||
|
//@description An OAuth authorization request was received
|
||||||
|
//@domain A domain of the URL where the user authorizes
|
||||||
|
//@location Human-readable description of a country and a region from which the authorization is performed, based on the IP address
|
||||||
|
//@url The URL to pass to getOauthLinkInfo; the link is valid for 60 seconds
|
||||||
|
updateNewOauthRequest domain:string location:string url:string = Update;
|
||||||
|
|
||||||
//@description Information about a file was updated @file New data about the file
|
//@description Information about a file was updated @file New data about the file
|
||||||
updateFile file:file = Update;
|
updateFile file:file = Update;
|
||||||
|
|
||||||
|
|
@ -10549,6 +10644,7 @@ getMessageLocally chat_id:int53 message_id:int53 = Message;
|
||||||
//-for messageSuggestedPostApprovalFailed, messageSuggestedPostApproved, messageSuggestedPostDeclined, messageSuggestedPostPaid, messageSuggestedPostRefunded,
|
//-for messageSuggestedPostApprovalFailed, messageSuggestedPostApproved, messageSuggestedPostDeclined, messageSuggestedPostPaid, messageSuggestedPostRefunded,
|
||||||
//-the message with the regular gift that was upgraded for messageUpgradedGift with origin of the type upgradedGiftOriginUpgrade,
|
//-the message with the regular gift that was upgraded for messageUpgradedGift with origin of the type upgradedGiftOriginUpgrade,
|
||||||
//-the message with gift purchase offer for messageUpgradedGiftPurchaseOfferRejected,
|
//-the message with gift purchase offer for messageUpgradedGiftPurchaseOfferRejected,
|
||||||
|
//-the message with the request to disable content protection for messageChatHasProtectedContentToggled,
|
||||||
//-and the topic creation message for topic messages without non-bundled replied message. Returns a 404 error if the message doesn't exist
|
//-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
|
//@chat_id Identifier of the chat the message belongs to
|
||||||
//@message_id Identifier of the reply message
|
//@message_id Identifier of the reply message
|
||||||
|
|
@ -11735,7 +11831,7 @@ setPollAnswer chat_id:int53 message_id:int53 option_ids:vector<int32> = Ok;
|
||||||
//@option_id 0-based identifier of the answer option
|
//@option_id 0-based identifier of the answer option
|
||||||
//@offset Number of voters to skip in the result; must be non-negative
|
//@offset Number of voters to skip in the result; must be non-negative
|
||||||
//@limit The maximum number of voters to be returned; must be positive and can't be greater than 50. For optimal performance, the number of returned voters is chosen by TDLib and can be smaller than the specified limit, even if the end of the voter list has not been reached
|
//@limit The maximum number of voters to be returned; must be positive and can't be greater than 50. For optimal performance, the number of returned voters is chosen by TDLib and can be smaller than the specified limit, even if the end of the voter list has not been reached
|
||||||
getPollVoters chat_id:int53 message_id:int53 option_id:int32 offset:int32 limit:int32 = MessageSenders;
|
getPollVoters chat_id:int53 message_id:int53 option_id:int32 offset:int32 limit:int32 = PollVoters;
|
||||||
|
|
||||||
//@description Stops a poll
|
//@description Stops a poll
|
||||||
//@chat_id Identifier of the chat to which the poll belongs
|
//@chat_id Identifier of the chat to which the poll belongs
|
||||||
|
|
@ -12001,8 +12097,30 @@ getExternalLinkInfo link:string = LoginUrlInfo;
|
||||||
//-Use the method getExternalLinkInfo to find whether a prior user confirmation is needed. May return an empty link if just a toast about successful login has to be shown
|
//-Use the method getExternalLinkInfo to find whether a prior user confirmation is needed. May return an empty link if just a toast about successful login has to be shown
|
||||||
//@link The HTTP link
|
//@link The HTTP link
|
||||||
//@allow_write_access Pass true if the current user allowed the bot that was returned in getExternalLinkInfo, to send them messages
|
//@allow_write_access Pass true if the current user allowed the bot that was returned in getExternalLinkInfo, to send them messages
|
||||||
//@allow_phone_number_access Pass true if the current user allowed the bot that was returned in getExternalLinkInfo, to access their phone number
|
getExternalLink link:string allow_write_access:Bool = HttpUrl;
|
||||||
getExternalLink link:string allow_write_access:Bool allow_phone_number_access:Bool = HttpUrl;
|
|
||||||
|
//@description Returns information about an OAuth deep link. Use checkOauthRequestMatchCode, acceptOauthRequest or declineOauthRequest to process the link
|
||||||
|
//@url URL of the link
|
||||||
|
//@in_app_origin Origin of the OAuth request if the request was received from the in-app browser; pass an empty string otherwise
|
||||||
|
getOauthLinkInfo url:string in_app_origin:string = OauthLinkInfo;
|
||||||
|
|
||||||
|
//@description Checks a match-code for an OAuth authorization request. If fails, then the authorization request has failed. Otherwise,
|
||||||
|
//-authorization confirmation dialog must be shown and the link must be processed using acceptOauthRequest or declineOauthRequest
|
||||||
|
//@url URL of the OAuth deep link
|
||||||
|
//@match_code The matching code chosen by the user
|
||||||
|
checkOauthRequestMatchCode url:string match_code:string = Ok;
|
||||||
|
|
||||||
|
//@description Accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization.
|
||||||
|
//-May return an empty link if just a toast about successful login has to be shown
|
||||||
|
//@url URL of the OAuth deep link
|
||||||
|
//@match_code The matching code chosen by the user
|
||||||
|
//@allow_write_access Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to send them messages
|
||||||
|
//@allow_phone_number_access Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to access their phone number
|
||||||
|
acceptOauthRequest url:string match_code:string allow_write_access:Bool allow_phone_number_access:Bool = HttpUrl;
|
||||||
|
|
||||||
|
//@description Declines an OAuth authorization request
|
||||||
|
//@url URL of the OAuth deep link
|
||||||
|
declineOauthRequest url:string = Ok;
|
||||||
|
|
||||||
|
|
||||||
//@description Marks all mentions in a chat as read @chat_id Chat identifier
|
//@description Marks all mentions in a chat as read @chat_id Chat identifier
|
||||||
|
|
@ -12201,11 +12319,18 @@ setChatDraftMessage chat_id:int53 topic_id:MessageTopic draft_message:draftMessa
|
||||||
//@notification_settings New notification settings for the chat. If the chat is muted for more than 366 days, it is considered to be muted forever
|
//@notification_settings New notification settings for the chat. If the chat is muted for more than 366 days, it is considered to be muted forever
|
||||||
setChatNotificationSettings chat_id:int53 notification_settings:chatNotificationSettings = Ok;
|
setChatNotificationSettings chat_id:int53 notification_settings:chatNotificationSettings = Ok;
|
||||||
|
|
||||||
//@description Changes the ability of users to save, forward, or copy chat content. Supported only for basic groups, supergroups and channels. Requires owner privileges
|
//@description Changes the ability of users to save, forward, or copy chat content. Requires owner privileges in basic groups, supergroups and channels.
|
||||||
|
//-Requires Telegram Premium to enable protected content in private chats. Not available in Saved Messages and private chats with bots or support accounts
|
||||||
//@chat_id Chat identifier
|
//@chat_id Chat identifier
|
||||||
//@has_protected_content New value of has_protected_content
|
//@has_protected_content New value of has_protected_content
|
||||||
toggleChatHasProtectedContent chat_id:int53 has_protected_content:Bool = Ok;
|
toggleChatHasProtectedContent chat_id:int53 has_protected_content:Bool = Ok;
|
||||||
|
|
||||||
|
//@description Processes request to disable has_protected_content in a chat
|
||||||
|
//@chat_id Chat identifier
|
||||||
|
//@request_message_id Identifier of the message with the request. The message must be incoming and has content of the type messageChatHasProtectedContentDisableRequested
|
||||||
|
//@approve Pass true to approve the request; pass false to reject the request
|
||||||
|
processChatHasProtectedContentDisableRequest chat_id:int53 request_message_id:int53 approve:Bool = Ok;
|
||||||
|
|
||||||
//@description Changes the view_as_topics setting of a forum chat or Saved Messages @chat_id Chat identifier @view_as_topics New value of view_as_topics
|
//@description Changes the view_as_topics setting of a forum chat or Saved Messages @chat_id Chat identifier @view_as_topics New value of view_as_topics
|
||||||
toggleChatViewAsTopics chat_id:int53 view_as_topics:Bool = Ok;
|
toggleChatViewAsTopics chat_id:int53 view_as_topics:Bool = Ok;
|
||||||
|
|
||||||
|
|
@ -12288,6 +12413,12 @@ addChatMembers chat_id:int53 user_ids:vector<int53> = FailedToAddMembers;
|
||||||
//@status The new status of the member in the chat
|
//@status The new status of the member in the chat
|
||||||
setChatMemberStatus chat_id:int53 member_id:MessageSender status:ChatMemberStatus = Ok;
|
setChatMemberStatus chat_id:int53 member_id:MessageSender status:ChatMemberStatus = Ok;
|
||||||
|
|
||||||
|
//@description Changes the tag or custom title of a chat member; requires can_manage_tags administrator right to change tag of other users; for basic groups and supergroups only
|
||||||
|
//@chat_id Chat identifier
|
||||||
|
//@user_id Identifier of the user, which tag is changed. Chats can't have member tags
|
||||||
|
//@tag The new tag of the member in the chat; 0-16 characters without emoji
|
||||||
|
setChatMemberTag chat_id:int53 user_id:int53 tag:string = Ok;
|
||||||
|
|
||||||
//@description Bans a member in a chat; requires can_restrict_members administrator right. Members can't be banned in private or secret chats. In supergroups and channels, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first
|
//@description Bans a member in a chat; requires can_restrict_members administrator right. Members can't be banned in private or secret chats. In supergroups and channels, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first
|
||||||
//@chat_id Chat identifier
|
//@chat_id Chat identifier
|
||||||
//@member_id Member identifier
|
//@member_id Member identifier
|
||||||
|
|
@ -12298,13 +12429,13 @@ banChatMember chat_id:int53 member_id:MessageSender banned_until_date:int32 revo
|
||||||
//@description Checks whether the current session can be used to transfer a chat ownership to another user
|
//@description Checks whether the current session can be used to transfer a chat ownership to another user
|
||||||
canTransferOwnership = CanTransferOwnershipResult;
|
canTransferOwnership = CanTransferOwnershipResult;
|
||||||
|
|
||||||
//@description Changes the owner of a chat; requires owner privileges in the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session. Available only for supergroups and channel chats
|
//@description Changes the owner of a chat; for basic groups, supergroups and channel chats only; requires owner privileges in the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session
|
||||||
//@chat_id Chat identifier
|
//@chat_id Chat identifier
|
||||||
//@user_id Identifier of the user to which transfer the ownership. The ownership can't be transferred to a bot or to a deleted user
|
//@user_id Identifier of the user to which transfer the ownership. The ownership can't be transferred to a bot or to a deleted user
|
||||||
//@password The 2-step verification password of the current user
|
//@password The 2-step verification password of the current user
|
||||||
transferChatOwnership chat_id:int53 user_id:int53 password:string = Ok;
|
transferChatOwnership chat_id:int53 user_id:int53 password:string = Ok;
|
||||||
|
|
||||||
//@description Returns the user who will become the owner of the chat after 7 days if the current user does not return to the chat during that period; requires owner privileges in the chat.
|
//@description Returns the user who will become the owner of the chat after 7 days if the current user does not return to the supergroup or channel during that period or immediately for basic groups; requires owner privileges in the chat.
|
||||||
//-Available only for supergroups and channel chats
|
//-Available only for supergroups and channel chats
|
||||||
//@chat_id Chat identifier
|
//@chat_id Chat identifier
|
||||||
getChatOwnerAfterLeaving chat_id:int53 = User;
|
getChatOwnerAfterLeaving chat_id:int53 = User;
|
||||||
|
|
@ -12922,13 +13053,13 @@ discardCall call_id:int32 is_disconnected:Bool invite_link:string duration:int32
|
||||||
//@rating Call rating; 1-5
|
//@rating Call rating; 1-5
|
||||||
//@comment An optional user comment if the rating is less than 5
|
//@comment An optional user comment if the rating is less than 5
|
||||||
//@problems List of the exact types of problems with the call, specified by the user
|
//@problems List of the exact types of problems with the call, specified by the user
|
||||||
sendCallRating call_id:int32 rating:int32 comment:string problems:vector<CallProblem> = Ok;
|
sendCallRating call_id:InputCall rating:int32 comment:string problems:vector<CallProblem> = Ok;
|
||||||
|
|
||||||
//@description Sends debug information for a call to Telegram servers @call_id Call identifier @debug_information Debug information in application-specific format
|
//@description Sends debug information for a call to Telegram servers @call_id Call identifier @debug_information Debug information in application-specific format
|
||||||
sendCallDebugInformation call_id:int32 debug_information:string = Ok;
|
sendCallDebugInformation call_id:InputCall debug_information:string = Ok;
|
||||||
|
|
||||||
//@description Sends log file for a call to Telegram servers @call_id Call identifier @log_file Call log file. Only inputFileLocal and inputFileGenerated are supported
|
//@description Sends log file for a call to Telegram servers @call_id Call identifier @log_file Call log file. Only inputFileLocal and inputFileGenerated are supported
|
||||||
sendCallLog call_id:int32 log_file:InputFile = Ok;
|
sendCallLog call_id:InputCall log_file:InputFile = Ok;
|
||||||
|
|
||||||
|
|
||||||
//@description Returns the list of participant identifiers, on whose behalf a video chat in the chat can be joined @chat_id Chat identifier
|
//@description Returns the list of participant identifiers, on whose behalf a video chat in the chat can be joined @chat_id Chat identifier
|
||||||
|
|
@ -12939,7 +13070,7 @@ getVideoChatAvailableParticipants chat_id:int53 = MessageSenders;
|
||||||
//@default_participant_id Default group call participant identifier to join the video chats in the chat
|
//@default_participant_id Default group call participant identifier to join the video chats in the chat
|
||||||
setVideoChatDefaultParticipant chat_id:int53 default_participant_id:MessageSender = Ok;
|
setVideoChatDefaultParticipant chat_id:int53 default_participant_id:MessageSender = Ok;
|
||||||
|
|
||||||
//@description Creates a video chat (a group call bound to a chat). Available only for basic groups, supergroups and channels; requires can_manage_video_chats administrator right
|
//@description Creates a video chat (a group call bound to a chat); for basic groups, supergroups and channels only; requires can_manage_video_chats administrator right
|
||||||
//@chat_id Identifier of a chat in which the video chat will be created
|
//@chat_id Identifier of a chat in which the video chat will be created
|
||||||
//@title Group call title; if empty, chat title will be used
|
//@title Group call title; if empty, chat title will be used
|
||||||
//@start_date Point in time (Unix timestamp) when the group call is expected to be started by an administrator; 0 to start the video chat immediately. The date must be at least 10 seconds and at most 8 days in the future
|
//@start_date Point in time (Unix timestamp) when the group call is expected to be started by an administrator; 0 to start the video chat immediately. The date must be at least 10 seconds and at most 8 days in the future
|
||||||
|
|
@ -14035,7 +14166,8 @@ upgradeGift business_connection_id:string received_gift_id:string keep_original_
|
||||||
buyGiftUpgrade owner_id:MessageSender prepaid_upgrade_hash:string star_count:int53 = Ok;
|
buyGiftUpgrade owner_id:MessageSender prepaid_upgrade_hash:string star_count:int53 = Ok;
|
||||||
|
|
||||||
//@description Crafts a new gift from other gifts that will be permanently lost
|
//@description Crafts a new gift from other gifts that will be permanently lost
|
||||||
//@received_gift_ids Identifier of the gifts to use for crafting
|
//@received_gift_ids Identifier of the gifts to use for crafting. In the case of a successful craft, the resulting gift will have the number of the first gift.
|
||||||
|
//-Consequently, the first gift must not have been withdrawn to the TON blockchain as an NFT and must have an empty gift_address
|
||||||
craftGift received_gift_ids:vector<string> = CraftGiftResult;
|
craftGift received_gift_ids:vector<string> = CraftGiftResult;
|
||||||
|
|
||||||
//@description Sends an upgraded gift to another user or channel chat
|
//@description Sends an upgraded gift to another user or channel chat
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue