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: 223

  • 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_reactionstrue (optional)
├── for_live_storiestrue (optional)
└── peerInputPeer
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_idlong
├── InputPeerUser
│ ├── user_idlong
│ └── access_hashlong
│ ├── channel_idlong
│ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── channel_idlong

Example

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