Skip to main content

phone.sendGroupCallEncryptedMessage

Send an E2E-encrypted message to all participants of a conference call, using the E2E encryption protocol.

func (c *Client) PhoneSendGroupCallEncryptedMessage(ctx context.Context, request *PhoneSendGroupCallEncryptedMessageRequest) (bool, error)

Calling this method​

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.PhoneSendGroupCallEncryptedMessage(ctx, &tg.PhoneSendGroupCallEncryptedMessageRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters​

NameTypeRequiredDescription
CallInputGroupCallClassyesCall field of PhoneSendGroupCallEncryptedMessageRequest.
EncryptedMessage[]byteyesEncryptedMessage field of PhoneSendGroupCallEncryptedMessageRequest.

Returns​

bool

Possible errors​

CodeTypeDescription
400GROUPCALL_INVALIDThe specified group call is invalid.

References​