Class: TD::Types::Update::PollAnswer

Inherits:
TD::Types::Update show all
Defined in:
lib/tdlib/types/update/poll_answer.rb

Overview

A user changed the answer to a poll; for bots only.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#option_idsArray<Integer>

0-based identifiers of answer options, chosen by the user.

Returns:

  • (Array<Integer>)

    the current value of option_ids



7
8
9
# File 'lib/tdlib/types/update/poll_answer.rb', line 7

def option_ids
  @option_ids
end

#poll_idInteger

Unique poll identifier.

Returns:

  • (Integer)

    the current value of poll_id



7
8
9
# File 'lib/tdlib/types/update/poll_answer.rb', line 7

def poll_id
  @poll_id
end

#user_idInteger

The user, who changed the answer to the poll.

Returns:

  • (Integer)

    the current value of user_id



7
8
9
# File 'lib/tdlib/types/update/poll_answer.rb', line 7

def user_id
  @user_id
end