Hotline.Types.Update (Hotline v0.2.1)

Copy Markdown View Source

Telegram Update object.

Summary

Functions

Parse a raw map into this type struct.

Parse a list of raw maps.

Types

t()

@type t() :: %Hotline.Types.Update{
  callback_query: Hotline.Types.CallbackQuery.t() | nil,
  channel_post: Hotline.Types.Message.t() | nil,
  chat_join_request: map() | nil,
  chat_member: map() | nil,
  chosen_inline_result: map() | nil,
  edited_channel_post: Hotline.Types.Message.t() | nil,
  edited_message: Hotline.Types.Message.t() | nil,
  inline_query: map() | nil,
  message: Hotline.Types.Message.t() | nil,
  my_chat_member: map() | nil,
  poll: map() | nil,
  poll_answer: map() | nil,
  pre_checkout_query: map() | nil,
  shipping_query: map() | nil,
  update_id: integer()
}

Functions

parse(map)

Parse a raw map into this type struct.

parse_list(list)

Parse a list of raw maps.