Messages

class pyrogram.raw.base.messages.Messages

Object contains infor on list of messages with auxiliary data.

Constructors

This base type has 4 constructors available.

messages.ChannelMessages

Channel messages.

messages.Messages

Full list of messages with auxilary data.

messages.MessagesNotModified

No new messages matching the query were found.

messages.MessagesSlice

Incomplete list of messages and auxiliary data.

Methods

This object can be returned by 11 methods:

messages.GetMessages

Returns the list of messages by their IDs.

messages.GetHistory

Gets back the conversation history with one interlocutor / within a chat.

messages.Search

Gets back found 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.

channels.GetMessages

Get channel/supergroup messages.

stats.GetMessagePublicForwards

Obtains a list of messages, indicating to which other public channels was a channel message forwarded.