Class: Telbe::InputMedia

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

Class Method Summary collapse

Class Method Details

.inherited(base) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/telbe/base.rb', line 21

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