Class: Vk::API::Messages::Methods::SetActivity
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Messages::Methods::SetActivity
- Defined in:
- lib/vk/api/messages/methods/set_activity.rb
Overview
Changes the status of a user as typing in a conversation.
Arguments collapse
-
#peer_id ⇒ Integer
Destination ID.; ; "For user:; 'User ID', e.g.
-
#type ⇒ String
'typing' — user has started to type.
-
#user_id ⇒ String
User ID.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Messages::Methods::SetActivity
|
# File 'lib/vk/api/messages/methods/set_activity.rb', line 15
|
Instance Method Details
#peer_id ⇒ Integer
Returns Destination ID.; ; "For user:; 'User ID', e.g. '12345'.; ; For chat:; '2000000000' + 'chat_id', e.g. '2000000001'.; ; For community:; '- community ID', e.g. '-12345'.; ".
29 |
# File 'lib/vk/api/messages/methods/set_activity.rb', line 29 attribute :peer_id, API::Types::Coercible::Int.optional.default(nil) |