Skip to main content

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

NameTypeRequiredDescription
PeerInputPeerClassyesPeer where the message was sent.
MsgIDintyesMessage ID

Returns

UpdatesClass

Possible errors

CodeTypeDescription
403CHAT_ACTION_FORBIDDENYou cannot execute this action.
400PEER_ID_INVALIDThe provided peer id is invalid.

References