get_send_as_chats()

Client.get_send_as_chats()

Get the list of “send_as” chats available.

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

  • for_paid_reactions (``bool``, *optional*) – Pass True to get the list of available send_as chats for paid reactions.

  • for_live_stories (``bool``, *optional*) – Pass True to get the list of available send_as chats for viewing live stories.

Returns:

List of :obj:`~pyrogram.types.Chat` (The list of chats.)

Example

chats = await app.get_send_as_chats(chat_id)
print(chats)