Messages

class pyrogram.raw.types.messages.Messages

Full list of messages with auxilary data.

Constructor type of Messages.

Details
  • Layer: 126

  • ID: 0x8c718e87

Parameters
  • messages (List of Message) – List of messages.

  • chats (List of Chat) – List of chats mentioned in dialogs.

  • users (List of User) – List of users mentioned in messages and chats.

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.