get_message_public_forwards()

async Client.get_message_public_forwards()

Obtain a list of public channel forwards for a message.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target channel.

  • message_id (int) – Message ID.

  • offset (str, optional) – Offset for pagination. Defaults to empty string.

  • limit (int, optional) – Maximum number of results to return. Defaults to 10.

Returns:

PublicForwards – The public forwards.

Example

forwards = await app.get_message_public_forwards(chat_id, message_id)