messages.SearchGlobal

class pyrogram.raw.functions.messages.SearchGlobal

Search for messages and peers globally

Details:
  • Layer: 194

  • 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, for more info click here

  • offset_id (int 32-bit) – Offsets for pagination, for more info click here

  • limit (int 32-bit) – Offsets for pagination, for more info click here

  • broadcasts_only (bool, optional)

  • folder_id (int 32-bit, optional) – Peer folder ID, for more info click here

Returns:

messages.Messages