channels.GetSendAs

class pyrogram.raw.functions.channels.GetSendAs

Obtains a list of peers that can be used to send messages in a specific group

Details:
  • Layer: 227

  • ID: E785A43F

Parameters:
  • peer (InputPeer) – The group where we intend to send messages

  • for_paid_reactions (bool, optional) – If set, fetches the list of peers that can be used to send paid reactions to messages of a specific peer.

  • for_live_stories (bool, optional)

Returns:

channels.SendAsPeers

TL Schema

channels.getSendAs#e785a43f
flags:#
for_paid_reactions:flags.0?true
for_live_stories:flags.1?true
peer:InputPeer

= channels.SendAsPeers

Parameter Tree

GetSendAs
├── for_paid_reactions → true (optional)
├── for_live_stories → true (optional)
└── peer → InputPeer
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_id → long
├── InputPeerUser
│ ├── user_id → long
│ └── access_hash → long
│ ├── channel_id → long
│ └── access_hash → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── user_id → long
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_id → int
└── channel_id → long

Example

await app.invoke(
    GetSendAs(
        for_paid_reactions=None,
        for_live_stories=None,
        peer=await app.resolve_peer(chat_id),
    )
)