messages.saveDefaultSendAs
Change the default peer that should be used when sending messages, reactions, poll votes to a specific group
| Name | Type | Required | Description |
|---|---|---|---|
peer | InputPeer | Yes | Group |
send_as | InputPeer | Yes | The default peer that should be used when sending messages to the group |
Responses
Bool
MTProto RPC
- 400 · CHANNEL_INVALID — The provided channel is invalid.
- 400 · PEER_ID_INVALID — The provided peer id is invalid.
- 400 · SEND_AS_PEER_INVALID — You can't send messages as the specified peer.