Skip to main content

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

NameTypeRequiredDescription
PeerInputPeerClassyesThe dialog whose group call or livestream we're trying to join

Returns

*PhoneJoinAsPeers

Possible errors

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
400PEER_ID_INVALIDThe provided peer id is invalid.

References