Class: Telbe::InlineQueryResult

Inherits:
Object
  • Object
show all
Defined in:
lib/telbe/base.rb

Class Method Summary collapse

Class Method Details

.inherited(base) ⇒ Object



31
32
33
34
35
36
37
38
39
# File 'lib/telbe/base.rb', line 31

def self.inherited(base)
  base.send(:include, SimplifyApi)
  base.send(:attribute, :type, String, mandatory: true)
  base.send(:attribute, :id, String, mandatory: true)
  base.send(:attribute, :caption, String)
  base.send(:attribute, :parse_mode, String, values: %w[Markdown HTML], default: 'Markdown')
  base.send(:attribute, :reply_markup, InlineKeyboardMarkup)
  base.send(:attribute, :input_message_content, Object)
end