messages.SearchGlobal#

class pyrogram.raw.functions.messages.SearchGlobal#

Search for messages and peers globally.

Details:
  • Layer: 158

  • ID: 4BC6589A

Parameters:
  • q (str) – Query.

  • filter (MessagesFilter) – Global search filter.

  • min_date (int 32-bit) – If a positive value was specified, the method will return only messages with date bigger than min_date.

  • max_date (int 32-bit) – If a positive value was transferred, the method will return only messages with date smaller than max_date.

  • offset_rate (int 32-bit) – Initially 0, then set to the next_rate parameter of messages.messagesSlice.

  • offset_peer (InputPeer) – Offsets for pagination.

  • offset_id (int 32-bit) – Offsets for pagination.

  • limit (int 32-bit) – Offsets for pagination.

  • folder_id (int 32-bit, optional) – Peer folder ID.

Returns:

messages.Messages