Link Search Menu Expand Document

Constructor: factCheck

Back to constructors index

Represents a fact-check » created by an independent fact-checker.

Attributes:

NameTypeRequiredDescription
need_checkBoolOptionalIf set, the country/text fields will not be set, and the fact check must be fetched manually by the client (if it isn’t already cached with the key specified in hash) using bundled messages.getFactCheck requests, when the message with the factcheck scrolls into view.
countrystringOptionalA two-letter ISO 3166-1 alpha-2 country code of the country for which the fact-check should be shown.
textTextWithEntitiesOptionalThe fact-check.
hashlongYesHash used for caching, for more info click here

Type: FactCheck

Example:

$factCheck = ['_' => 'factCheck', 'need_check' => Bool, 'country' => 'string', 'text' => TextWithEntities, 'hash' => long];