View Source Telegex.Type.Message (Telegex v1.8.0)

This object represents a message.

Summary

Types

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