Layer 227
PhoneSendGroupCallMessage
Send an in-call message to all participants of a video chat/livestream or live story, including in RTMP mode, see here for more info.
method
Users
phone.sendGroupCallMessage#b1d11410 flags:# call:InputGroupCall random_id:long message:TextWithEntities allow_paid_stars:flags.0?long send_as:flags.1?InputPeer = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Call | InputGroupCall | Video chat/livestream or live story that should receive the message, reaction or donation |
| RandomId | long | Fresh client-generated random ID used to deduplicate the message or donation |
| Message | TextWithEntities | Message text or emoji reaction; pass an empty value when sending a standalone paid live story donation |
| AllowPaidStars | flags .0? long | User-confirmed number of Telegram Stars to donate with a live story comment or standalone donation |
| SendAs | flags .1? InputPeer | Optional peer to display as the author of a live story message or reaction; can only be used for live stories |
Returns
UpdatesGogram Example
// PhoneSendGroupCallMessage - positional arguments result, err := client.PhoneSendGroupCallMessage(&tg.InputGroupCall{}, int64(1234567890), &tg.TextWithEntities{}, nil, nil) if err != nil { // handle error } // result is *tg.Updates
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | GROUPCALL_INVALID | The specified group call is invalid. |
| 400 | GROUPCALL_JOIN_MISSING | You haven't joined this group call. |