Telegex v0.1.3 Telegex.Model.Document View Source

Link to this section Summary

Functions

Convert map data to Elixir.Telegex.Model.Document. Unlike Kernel.struct/2, this function will convert nested struct fields together.

Link to this section Types

Specs

t() :: %Telegex.Model.Document{
  file_id: String.t(),
  file_name: String.t() | nil,
  file_size: integer() | nil,
  file_unique_id: String.t(),
  mime_type: String.t() | nil,
  thumb: Telegex.Model.PhotoSize.t() | nil
}

Link to this section Functions

Convert map data to Elixir.Telegex.Model.Document. Unlike Kernel.struct/2, this function will convert nested struct fields together.