Skip to main content

messages.getFactCheck

Fetch one or more factchecks, see here » for the full flow.

func (c *Client) MessagesGetFactCheck(ctx context.Context, request *MessagesGetFactCheckRequest) ([]FactCheck, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.MessagesGetFactCheck(ctx, &tg.MessagesGetFactCheckRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // []FactCheck
return nil
})

Parameters

NameTypeRequiredDescription
PeerInputPeerClassyesPeer where the messages were sent.
MsgID[]intyesMessages that have associated factCheck constructors with the need_check flag set.

Returns

[]FactCheck

Possible errors

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

References