feat: MessagesConversation add more fields
@@ -479,6 +479,7 @@ type MessagesChatSettingsPhoto struct {
Photo200 string `json:"photo_200"`
Photo50 string `json:"photo_50"`
IsDefaultPhoto BaseBoolInt `json:"is_default_photo"`
+ IsDefaultCallPhoto bool `json:"is_default_call_photo"`
}
// MessagesConversation struct.
@@ -489,6 +490,9 @@ type MessagesConversation struct {
LastMessageID int `json:"last_message_id"` // ID of the last message in conversation
Mentions []int `json:"mentions"` // IDs of messages with mentions
MessageRequest string `json:"message_request"`
+ LastConversationMessageID int `json:"last_conversation_message_id"`
+ InReadCMID int `json:"in_read_cmid"`
+ OutReadCMID int `json:"out_read_cmid"`
// Last outcoming message have been read by the opponent.
OutRead int `json:"out_read"`
@@ -497,6 +501,10 @@ type MessagesConversation struct {
Important BaseBoolInt `json:"important"`
Unanswered BaseBoolInt `json:"unanswered"`
IsMarkedUnread BaseBoolInt `json:"is_marked_unread"`
+ CanSendMoney BaseBoolInt `json:"can_send_money"`
+ CanReceiveMoney BaseBoolInt `json:"can_receive_money"`
+ IsNew BaseBoolInt `json:"is_new"`
+ IsArchived BaseBoolInt `json:"is_archived"`
UnreadCount int `json:"unread_count"` // Unread messages number
CurrentKeyboard MessagesKeyboard `json:"current_keyboard"`
SortID struct {
@@ -532,6 +540,7 @@ type MessagesConversationChatSettings struct {
CanCall BaseBoolInt `json:"can_call"`
CanUseMassMentions BaseBoolInt `json:"can_use_mass_mentions"`
CanChangeServiceType BaseBoolInt `json:"can_change_service_type"`
+ CanChangeStyle BaseBoolInt `json:"can_change_style"`
} `json:"acl"`
IsGroupChannel BaseBoolInt `json:"is_group_channel"`
IsDisappearing BaseBoolInt `json:"is_disappearing"`
@@ -575,6 +584,8 @@ type MessagesConversationPushSettings struct {
DisabledUntil int `json:"disabled_until"`
DisabledForever BaseBoolInt `json:"disabled_forever"`
NoSound BaseBoolInt `json:"no_sound"`
+ DisabledMentions BaseBoolInt `json:"disabled_mentions"`
+ DisabledMassMentions BaseBoolInt `json:"disabled_mass_mentions"`
}
// MessagesConversationWithMessage struct.
