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.

 Method schema is available as of layer 181. Switch ยป

Parameters

Name Type Description
peer InputPeer Peer where the message was sent
msg_id int Message ID
text TextWithEntities Fact-check (maximum UTF-8 length specified in appConfig.factcheck_length_limit).

Result

Updates

Possible errors

Code Type Description
403 CHAT_ACTION_FORBIDDEN You cannot execute this action.
400 PEER_ID_INVALID The provided peer id is invalid.

Only users can use this method

Related pages

Client configuration

The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.

Fact-checks

Telegram clients support displaying fact-checks added to messages by independent fact-checkers.