messages.getExtendedMedia
Fetch updated information about paid media, see here » for the full flow. This method will return an array of updateMessageExtendedMedia updates, only for messages containing already bought paid media. No information will be returned for messages containing not yet bought paid media.
func (c *Client) MessagesGetExtendedMedia(ctx context.Context, request *MessagesGetExtendedMediaRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesGetExtendedMedia(ctx, &tg.MessagesGetExtendedMediaRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Peer with visible paid media messages. |
ID | []int | yes | IDs of currently visible messages containing paid media. |
Returns
References
- Official documentation
- Generated Go reference
- TL definition:
messages.getExtendedMedia#84f80814