Class: ChatbotHelper::Telegram::Sticker
- Inherits:
-
BaseResource
- Object
- BaseResource
- ChatbotHelper::Telegram::Sticker
- Defined in:
- lib/chatbot_helper/telegram/sticker.rb
Overview
The sticker resource which represents a Telegram bot API sticker
Instance Attribute Summary
Attributes inherited from BaseResource
Class Method Summary collapse
Methods inherited from BaseResource
#==, #initialize, optional_arrays, required_arrays, required_objects, #to_s, valid_resource!, valid_resource?
Constructor Details
This class inherits a constructor from ChatbotHelper::Telegram::BaseResource
Class Method Details
.optional_fields ⇒ Object
10 11 12 |
# File 'lib/chatbot_helper/telegram/sticker.rb', line 10 def optional_fields %w[emoji file_size] end |
.optional_objects ⇒ Object
14 15 16 17 18 |
# File 'lib/chatbot_helper/telegram/sticker.rb', line 14 def optional_objects [ { name: 'thumb', type: ChatbotHelper::Telegram::PhotoSize } ] end |
.required_fields ⇒ Object
6 7 8 |
# File 'lib/chatbot_helper/telegram/sticker.rb', line 6 def required_fields %w[file_id width height] end |