Skip to main content

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

NameTypeRequiredDescription
PeerInputPeerClassyesPeer where the message was sent
MsgIDintyesMessage ID
TextTextWithEntitiesyesFact-check (maximum UTF-8 length specified in appConfig.factcheck_length_limit).

Returns

UpdatesClass

Possible errors

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

References