Sha256: 0f66c280c009a0191fffcaf0231258f606382c907f4f9f9dfe0d3a33b34f6793

Contents?: true

Size: 995 Bytes

Versions: 2

Compression:

Stored size: 995 Bytes

Contents

module TD::Types
  # Contains the content of a message.
  class MessageContent < Base
    %w[
      text
      animation
      audio
      document
      photo
      expired_photo
      sticker
      video
      expired_video
      video_note
      voice_note
      location
      venue
      contact
      game
      poll
      invoice
      call
      basic_group_chat_create
      supergroup_chat_create
      chat_change_title
      chat_change_photo
      chat_delete_photo
      chat_add_members
      chat_join_by_link
      chat_delete_member
      chat_upgrade_to
      chat_upgrade_from
      pin_message
      screenshot_taken
      chat_set_ttl
      custom_service_action
      game_score
      payment_successful
      payment_successful_bot
      contact_registered
      website_connected
      passport_data_sent
      passport_data_received
      unsupported
    ].each do |type|
      autoload TD::Types.camelize(type), "tdlib/types/message_content/#{type}"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tdlib-ruby-2.2.0 lib/tdlib/types/message_content.rb
tdlib-ruby-2.1.0 lib/tdlib/types/message_content.rb