phone.sendSignalingData
Send VoIP signaling data for an ongoing phone call.
func (c *Client) PhoneSendSignalingData(ctx context.Context, request *PhoneSendSignalingDataRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PhoneSendSignalingData(ctx, &tg.PhoneSendSignalingDataRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPhoneCall | yes | Phone call |
Data | []byte | yes | Signaling payload |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CALL_PEER_INVALID | The provided call peer object is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
phone.sendSignalingData#ff7a9383