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
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Peer where the messages were sent. |
MsgID | []int | yes | Messages that have associated factCheck constructors with the need_check flag set. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.getFactCheck#b9cdc5ee