ExGram.Model.RichBlockPhoto (ex_gram v0.67.0)

Copy Markdown View Source

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

Check the documentation of this model on Telegram Bot API

  • 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

Summary

Types

t()

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

Functions

decode_as()