Sha256: a85002ce3904d46117d16ed85761ff5ee33cd74c0bd56e21b703aff207fb417d

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

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
      dice
      game
      poll
      invoice
      call
      voice_chat_scheduled
      voice_chat_started
      voice_chat_ended
      invite_voice_chat_participants
      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
      proximity_alert_triggered
      unsupported
    ].each do |type|
      autoload TD::Types.camelize(type), "tdlib/types/message_content/#{type}"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tdlib-schema-1.7.0.3 lib/tdlib/types/message_content.rb
tdlib-schema-1.7.0.2 lib/tdlib/types/message_content.rb
tdlib-schema-1.7.0.1 lib/tdlib/types/message_content.rb