Class: FantasticRobot::Request::SendChatAction
- Defined in:
- lib/fantastic_robot/request/send_chat_action.rb
Overview
This object represents a sendChatAction request
Constant Summary collapse
- VALID_ACTIONS =
[:typing, :upload_photo, :record_video, :upload_video, :record_audio, :upload_audio, :upload_document, :find_location]
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#chat_id ⇒ Object
Returns the value of attribute chat_id.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SendChatAction
constructor
A new instance of SendChatAction.
Methods inherited from Base
#attributes, #send_request, #to_h
Constructor Details
#initialize(attributes = {}) ⇒ SendChatAction
Returns a new instance of SendChatAction.
13 14 15 16 |
# File 'lib/fantastic_robot/request/send_chat_action.rb', line 13 def initialize(attributes = {}) super(attributes) @method = :sendChatAction end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
5 6 7 |
# File 'lib/fantastic_robot/request/send_chat_action.rb', line 5 def action @action end |
#chat_id ⇒ Object
Returns the value of attribute chat_id.
5 6 7 |
# File 'lib/fantastic_robot/request/send_chat_action.rb', line 5 def chat_id @chat_id end |