messages.deleteFactCheck
Delete a fact-check from a message. Can only be used by independent fact-checkers as specified by the appConfig can_edit_factcheck configuration flag.
func (c *Client) MessagesDeleteFactCheck(ctx context.Context, request *MessagesDeleteFactCheckRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesDeleteFactCheck(ctx, &tg.MessagesDeleteFactCheckRequest{
// 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 |
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.deleteFactCheck#d1da940c