Class: Telbe::InlineQueryResult
- Inherits:
-
Object
- Object
- Telbe::InlineQueryResult
- Defined in:
- lib/telbe/base.rb
Direct Known Subclasses
InlineQueryResultArticle, InlineQueryResultAudio, InlineQueryResultCachedAudio, InlineQueryResultCachedDocument, InlineQueryResultCachedGif, InlineQueryResultCachedMpeg4Gif, InlineQueryResultCachedPhoto, InlineQueryResultCachedSticker, InlineQueryResultCachedVideo, InlineQueryResultCachedVoice, InlineQueryResultContact, InlineQueryResultDocument, InlineQueryResultGame, InlineQueryResultGif, InlineQueryResultLocation, InlineQueryResultMpeg4Gif, InlineQueryResultPhoto, InlineQueryResultVenue, InlineQueryResultVideo, InlineQueryResultVoice
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 |