telegram api method · layer 229 · #e785a43f

channels.getSendAs

usable by users

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

definition

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

parameters

nametypedescription
flags#Flags, see TL conditional fields
for_paid_reactionsflags.0?trueIf set, fetches the list of peers that can be used to send paid reactions to messages of a specific peer.
for_live_storiesflags.1?true
peerInputPeerThe group where we intend to send messages

returns

channels.SendAsPeers

errors (6)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400CHANNEL_INVALIDThe provided channel is invalid.
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400CHAT_ID_INVALIDThe provided chat id is invalid.
400PEER_ID_INVALIDThe provided peer id is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 135–229 · constructor id changed 1×

idlayers
#0dc770ee135–198
#e785a43f199–229