Layer 220
MessagesEditFactCheck
Edit/create a fact-check on a message.
method
Users
messages.editFactCheck#589ee75 peer:InputPeer msg_id:int text:TextWithEntities = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Peer where the message was sent |
| MsgId | int | Message ID |
| Text | TextWithEntities | Fact-check (maximum UTF-8 length specified in app Config. factcheck_length_limit ). |
Returns
UpdatesPossible Errors
| Code | Type | Description |
|---|---|---|
| 403 | CHAT_ACTION_FORBIDDEN | You cannot execute this action. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// MessagesEditFactCheck - positional arguments result, err := client.MessagesEditFactCheck(&tg.InputPeerUser{UserID: int64(123456789)}, 0, &tg.TextWithEntities{}) if err != nil { // handle error } // result is *tg.Updates