mayoral/telegrammer

View on GitHub
lib/telegrammer/data_types/inline_query_result/inline_query_result_cached_video.rb

Summary

Maintainability
A
30 mins
Test Coverage
module Telegrammer
  module DataTypes
    # Telegram InlineQueryResultCachedVideo data type
    #
    # @attr [String] type Type of the result, must be video
    # @attr [String] id Unique identifier for this result, 1-64 Bytes
    # @attr [String] video_file_id A valid file identifier for the file
    # @attr [String] title Title for the result
    # @attr [String] description Optional. Short description of the result
    # @attr [String] caption Optional. Caption of the video to be sent, 0-200 characters
    # @attr [Telegrammer::DataTypes::InlineKeyboardMarkup] reply_markup Optional. An Inline keyboard attached to the message
    # @attr [Telegrammer::DataTypes::InputMessageContent] input_message_content Optional. Content of the message to be sent instead of the video
    #
    # See more at https://core.telegram.org/bots/api#inlinequeryresultcacheddocument
    class InlineQueryResultCachedVideo < Telegrammer::DataTypes::Base
      attribute :type, String, default: 'video'
      attribute :id, String
      attribute :video_file_id, String
      attribute :title, String
      attribute :description, String
      attribute :caption, String
      attribute :reply_markup, InlineKeyboardMarkup
      attribute :input_message_content, InputMessageContent
    end
  end
end