messages.editFactCheck
Edit/create a fact-check on a message. Can only be used by independent fact-checkers as specified by the appConfig can_edit_factcheck configuration flag.
func (c *Client) MessagesEditFactCheck(ctx context.Context, request *MessagesEditFactCheckRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesEditFactCheck(ctx, &tg.MessagesEditFactCheckRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Peer where the message was sent |
MsgID | int | yes | Message ID |
Text | TextWithEntities | yes | Fact-check (maximum UTF-8 length specified in appConfig.factcheck_length_limit). |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 403 | CHAT_ACTION_FORBIDDEN | You cannot execute this action. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.editFactCheck#589ee75