SearchGlobal

class pyrogram.raw.functions.messages.SearchGlobal

Search for messages and peers globally.

Details
  • Layer: 122

  • ID: 0x4bc6589a

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 – Object contains infor on list of messages with auxiliary data.