# `ExGram.Model.RichBlockPhoto`
[🔗](https://github.com/rockneurotiko/ex_gram/blob/0.67.0/lib/ex_gram.ex#L7290)

A block with a photo, corresponding to the HTML tag <photo>.

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

- `type`: Type of the block, always "photo”
- `photo`: Available sizes of the photo
- `has_spoiler (optional)`: Optional. True, if the media preview is covered by a spoiler animation
- `caption (optional)`: Optional. Caption of the block

# `t`

```elixir
@type t() :: %ExGram.Model.RichBlockPhoto{
  caption: ExGram.Model.RichBlockCaption.t() | nil,
  has_spoiler: boolean() | nil,
  photo: [ExGram.Model.PhotoSize.t()],
  type: String.t()
}
```

# `decode_as`

---

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