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:
223ID:
E785A43F
- Parameters:
peer (
InputPeer) – The group where we intend to send messagesfor_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:
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├──
InputPeerChannel│ ├── 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│ ├──
InputPeerUserFromMessage├── msg_id →
int└── channel_id →
longExample
await app.invoke(
GetSendAs(
for_paid_reactions=None,
for_live_stories=None,
peer=await app.resolve_peer(chat_id),
)
)