phone.getGroupCallJoinAs
Get a list of peers that can be used to join a group call, presenting yourself as a specific user/channel.
func (c *Client) PhoneGetGroupCallJoinAs(ctx context.Context, peer InputPeerClass) (*PhoneJoinAsPeers, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PhoneGetGroupCallJoinAs(ctx, peer)
if err != nil {
return err
}
_ = res // *PhoneJoinAsPeers
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | The dialog whose group call or livestream we're trying to join |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
phone.getGroupCallJoinAs#ef7c213a