# `ExGram.Model.PaidMediaPreview`
[🔗](https://github.com/rockneurotiko/ex_gram/blob/0.64.0/lib/ex_gram.ex#L3921)

The paid media isn't available before the payment.

Check the [documentation of this model on Telegram Bot API](https://core.telegram.org/bots/api#paidmediapreview)

- `type`: Type of the paid media, always "preview”
- `width (optional)`: Optional. Media width as defined by the sender
- `height (optional)`: Optional. Media height as defined by the sender
- `duration (optional)`: Optional. Duration of the media in seconds as defined by the sender

# `t`

```elixir
@type t() :: %ExGram.Model.PaidMediaPreview{
  duration: integer() | nil,
  height: integer() | nil,
  type: String.t(),
  width: integer() | nil
}
```

# `decode_as`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
