Object contains information on list of messages with auxiliary data.
messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
messages.messagesSlice#c8edce1e flags:# inexact:flags.1?true count:int next_rate:flags.0?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
messages.channelMessages#99262e37 flags:# inexact:flags.1?true pts:int count:int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
messages.messagesNotModified#74535f21 count:int = messages.Messages;
---functions---
messages.getMessages#63c66506 id:Vector<InputMessage> = messages.Messages;
messages.getHistory#dcbb8260 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages;
messages.search#4e17810b flags:# peer:InputPeer q:string from_id:flags.0?InputUser top_msg_id:flags.1?int filter:MessagesFilter min_date:int max_date:int offset_id:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages;
messages.searchGlobal#4bc6589a flags:# broadcasts_only:flags.1?true folder_id:flags.0?int q:string filter:MessagesFilter min_date:int max_date:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;
messages.getUnreadMentions#46578472 peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages;
messages.getRecentLocations#bbc45b09 peer:InputPeer limit:int hash:int = messages.Messages;
messages.getScheduledHistory#e2c2685b peer:InputPeer hash:int = messages.Messages;
messages.getScheduledMessages#bdbb0464 peer:InputPeer id:Vector<int> = messages.Messages;
messages.getReplies#24b581ba peer:InputPeer msg_id:int offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages;
channels.getMessages#ad8c9a23 channel:InputChannel id:Vector<InputMessage> = messages.Messages;
Constructor | Description |
---|---|
messages.messages | Full list of messages with auxiliary data. |
messages.messagesSlice | Incomplete list of messages and auxiliary data. |
messages.channelMessages | Channel messages |
messages.messagesNotModified | No new messages matching the query were found |
Method | Description |
---|---|
messages.getMessages | Returns the list of messages by their IDs. |
messages.getHistory | Returns the conversation history with one interlocutor / within a chat |
messages.search | Search for messages. |
channels.getMessages | Get channel/supergroup messages |
messages.searchGlobal | Search for messages and peers globally |
messages.getUnreadMentions | Get unread messages where we were mentioned |
messages.getRecentLocations | Get live location history of a certain user |
messages.getScheduledHistory | Get scheduled messages |
messages.getScheduledMessages | Get scheduled messages |
messages.getReplies | Get messages in a reply thread |
messages.getUnreadReactions | Get unread reactions to messages you sent |
messages.searchSentMedia | View and search recently sent media. This method does not support pagination. |
messages.getSavedHistory | Returns saved messages » forwarded from a specific peer |
messages.getQuickReplyMessages | Fetch (a subset or all) messages in a quick reply shortcut ». |
channels.searchPosts | Globally search for posts from public channels » (including those we aren't a member of) containing a specific hashtag. |