ExGram.Model.PollMedia (ex_gram v0.66.0)

Copy Markdown View Source

At most one of the optional fields can be present in any given object.

Check the documentation of this model on Telegram Bot API

  • animation (optional): Optional. Media is an animation, information about the animation
  • audio (optional): Optional. Media is an audio file, information about the file; currently, can't be received in a poll option
  • document (optional): Optional. Media is a general file, information about the file; currently, can't be received in a poll option
  • live_photo (optional): Optional. Media is a live photo, information about the live photo
  • location (optional): Optional. Media is a shared location, information about the location
  • photo (optional): Optional. Media is a photo, available sizes of the photo
  • sticker (optional): Optional. Media is a sticker, information about the sticker; currently, for poll options only
  • venue (optional): Optional. Media is a venue, information about the venue
  • video (optional): Optional. Media is a video, information about the video

Summary

Types

t()

@type t() :: %ExGram.Model.PollMedia{
  animation: ExGram.Model.Animation.t() | nil,
  audio: ExGram.Model.Audio.t() | nil,
  document: ExGram.Model.Document.t() | nil,
  live_photo: ExGram.Model.LivePhoto.t() | nil,
  location: ExGram.Model.Location.t() | nil,
  photo: [ExGram.Model.PhotoSize.t()] | nil,
  sticker: ExGram.Model.Sticker.t() | nil,
  venue: ExGram.Model.Venue.t() | nil,
  video: ExGram.Model.Video.t() | nil
}

Functions

decode_as()