Raw.messages.MessagesSlice
Incomplete list of messages and auxiliary data.
messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
export namespace Raw {
export namespace messages {
export class MessagesSlice {
constructor(params: {
inexact?: boolean;
count: number;
nextRate?: number;
offsetIdOffset?: number;
messages: Array<Raw.TypeMessage>;
chats: Array<Raw.TypeChat>;
users: Array<Raw.TypeUser>;
}) {}
}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x3a54685e
Property
inexact
: boolean or undefinedIf set, indicates that the results may be inexact
count
: numberTotal number of messages in the list
nextRate
: number or undefinedRate to use in the offsetRate parameter in the next call to messages.searchglobal
offsetIdOffset
: number or undefinedIndicates the absolute position of messages[0] within the total result set with count count. this is useful, for example, if the result was fetched using offsetId, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo offsetIdOffset of count.
messages
: Array of Raw.TypeMessageList of messages
chats
: Array of Raw.TypeChatList of chats mentioned in messages
users
: Array of Raw.TypeUserList of users mentioned in messages and chats