Layer 227
method Users
channels.getSendAs#e785a43f flags:# for_paid_reactions:flags.0?true for_live_stories:flags.1?true peer:InputPeer = channels.SendAsPeers;

Parameters

Name Type Description
ForPaidReactions flags .0? true If set, fetches the list of peers that can be used to send paid reactions to messages of a specific peer.
ForLiveStories flags .1? true Fetch the peers that may be passed to phone. send Group Call Message. send_as to comment or react in a live story.
Peer InputPeer The target peer; when for_live_stories is set, the peer that owns the live story.

Gogram Example

// ChannelsGetSendAs - positional arguments
result, err := client.ChannelsGetSendAs(nil, nil, &tg.InputPeerUser{UserID: int64(777000)})
if err != nil {
    // handle error
}
// result is *tg.ChannelsSendAsPeers

Possible Errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid.
400 CHANNEL_PRIVATE You haven't joined this channel/supergroup.
400 CHAT_ID_INVALID The provided chat id is invalid.
400 PEER_ID_INVALID The provided peer id is invalid.