View Source ExGram.Model.Message (ex_gram v0.52.2)

This object represents a message.

Check the documentation of this model in https://core.telegram.org/bots/api#message

Summary

Types

@type t() :: %ExGram.Model.Message{
  animation: ExGram.Model.Animation.t() | nil,
  audio: ExGram.Model.Audio.t() | nil,
  author_signature: String.t() | nil,
  boost_added: ExGram.Model.ChatBoostAdded.t() | nil,
  business_connection_id: String.t() | nil,
  caption: String.t() | nil,
  caption_entities: [ExGram.Model.MessageEntity.t()] | nil,
  channel_chat_created: boolean() | nil,
  chat: ExGram.Model.Chat.t(),
  chat_shared: ExGram.Model.ChatShared.t() | nil,
  connected_website: String.t() | nil,
  contact: ExGram.Model.Contact.t() | nil,
  date: integer(),
  delete_chat_photo: boolean() | nil,
  dice: ExGram.Model.Dice.t() | nil,
  document: ExGram.Model.Document.t() | nil,
  edit_date: integer() | nil,
  entities: [ExGram.Model.MessageEntity.t()] | nil,
  external_reply: ExGram.Model.ExternalReplyInfo.t() | nil,
  forum_topic_closed: ExGram.Model.ForumTopicClosed.t() | nil,
  forum_topic_created: ExGram.Model.ForumTopicCreated.t() | nil,
  forum_topic_edited: ExGram.Model.ForumTopicEdited.t() | nil,
  forum_topic_reopened: ExGram.Model.ForumTopicReopened.t() | nil,
  forward_origin: ExGram.Model.MessageOrigin.t() | nil,
  from: ExGram.Model.User.t() | nil,
  game: ExGram.Model.Game.t() | nil,
  general_forum_topic_hidden: ExGram.Model.GeneralForumTopicHidden.t() | nil,
  general_forum_topic_unhidden:
    ExGram.Model.GeneralForumTopicUnhidden.t() | nil,
  giveaway: ExGram.Model.Giveaway.t() | nil,
  giveaway_completed: ExGram.Model.GiveawayCompleted.t() | nil,
  giveaway_created: ExGram.Model.GiveawayCreated.t() | nil,
  giveaway_winners: ExGram.Model.GiveawayWinners.t() | nil,
  group_chat_created: boolean() | nil,
  has_media_spoiler: boolean() | nil,
  has_protected_content: boolean() | nil,
  invoice: ExGram.Model.Invoice.t() | nil,
  is_automatic_forward: boolean() | nil,
  is_from_offline: boolean() | nil,
  is_topic_message: boolean() | nil,
  left_chat_member: ExGram.Model.User.t() | nil,
  link_preview_options: ExGram.Model.LinkPreviewOptions.t() | nil,
  location: ExGram.Model.Location.t() | nil,
  media_group_id: String.t() | nil,
  message_auto_delete_timer_changed:
    ExGram.Model.MessageAutoDeleteTimerChanged.t() | nil,
  message_id: integer(),
  message_thread_id: integer() | nil,
  migrate_from_chat_id: integer() | nil,
  migrate_to_chat_id: integer() | nil,
  new_chat_members: [ExGram.Model.User.t()] | nil,
  new_chat_photo: [ExGram.Model.PhotoSize.t()] | nil,
  new_chat_title: String.t() | nil,
  passport_data: ExGram.Model.PassportData.t() | nil,
  photo: [ExGram.Model.PhotoSize.t()] | nil,
  pinned_message: ExGram.Model.MaybeInaccessibleMessage.t() | nil,
  poll: ExGram.Model.Poll.t() | nil,
  proximity_alert_triggered: ExGram.Model.ProximityAlertTriggered.t() | nil,
  quote: ExGram.Model.TextQuote.t() | nil,
  reply_markup: ExGram.Model.InlineKeyboardMarkup.t() | nil,
  reply_to_message: t() | nil,
  reply_to_story: ExGram.Model.Story.t() | nil,
  sender_boost_count: integer() | nil,
  sender_business_bot: ExGram.Model.User.t() | nil,
  sender_chat: ExGram.Model.Chat.t() | nil,
  sticker: ExGram.Model.Sticker.t() | nil,
  story: ExGram.Model.Story.t() | nil,
  successful_payment: ExGram.Model.SuccessfulPayment.t() | nil,
  supergroup_chat_created: boolean() | nil,
  text: String.t() | nil,
  users_shared: ExGram.Model.UsersShared.t() | nil,
  venue: ExGram.Model.Venue.t() | nil,
  via_bot: ExGram.Model.User.t() | nil,
  video: ExGram.Model.Video.t() | nil,
  video_chat_ended: ExGram.Model.VideoChatEnded.t() | nil,
  video_chat_participants_invited:
    ExGram.Model.VideoChatParticipantsInvited.t() | nil,
  video_chat_scheduled: ExGram.Model.VideoChatScheduled.t() | nil,
  video_chat_started: ExGram.Model.VideoChatStarted.t() | nil,
  video_note: ExGram.Model.VideoNote.t() | nil,
  voice: ExGram.Model.Voice.t() | nil,
  web_app_data: ExGram.Model.WebAppData.t() | nil,
  write_access_allowed: ExGram.Model.WriteAccessAllowed.t() | nil
}

Functions