phone.sendGroupCallMessage
Send a transient in-call message to all participants of a group call or livestream.
func (c *Client) PhoneSendGroupCallMessage(ctx context.Context, request *PhoneSendGroupCallMessageRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PhoneSendGroupCallMessage(ctx, &tg.PhoneSendGroupCallMessageRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Call | InputGroupCallClass | yes | Call field of PhoneSendGroupCallMessageRequest. |
RandomID | int64 | yes | RandomID field of PhoneSendGroupCallMessageRequest. |
Message | TextWithEntities | yes | Message field of PhoneSendGroupCallMessageRequest. |
AllowPaidStars | int64 | — | AllowPaidStars field of PhoneSendGroupCallMessageRequest. |
SendAs | InputPeerClass | — | SendAs field of PhoneSendGroupCallMessageRequest. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | GROUPCALL_INVALID | The specified group call is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
phone.sendGroupCallMessage#b1d11410