Class: FantasticRobot::Request::SendChatAction

Inherits:
Base
  • Object
show all
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

Attributes inherited from Base

#method

Instance Method Summary collapse

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

#actionObject

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_idObject

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