class
Hamilton::Types::PollOption
- Hamilton::Types::PollOption
- Reference
- Object
Overview
This object contains information about one answer option in a poll.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/poll_option.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#added_by_chat : Hamilton::Types::Chat | Nil
Chat that added the option; omitted if the option wasn't added by a chat after poll creation.
-
#added_by_chat=(added_by_chat : Hamilton::Types::Chat | Nil)
Chat that added the option; omitted if the option wasn't added by a chat after poll creation.
-
#added_by_user : Hamilton::Types::User | Nil
User who added the option; omitted if the option wasn't added by a user after poll creation.
-
#added_by_user=(added_by_user : Hamilton::Types::User | Nil)
User who added the option; omitted if the option wasn't added by a user after poll creation.
-
#addition_date : Int32 | Nil
Point in time (Unix timestamp) when the option was added; omitted if the option existed in the original poll.
-
#addition_date=(addition_date : Int32 | Nil)
Point in time (Unix timestamp) when the option was added; omitted if the option existed in the original poll.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#persistent_id : String
Unique identifier of the option, persistent on option addition and deletion.
-
#persistent_id=(persistent_id : String)
Unique identifier of the option, persistent on option addition and deletion.
-
#text : String
Option text, 1-100 characters.
-
#text=(text : String)
Option text, 1-100 characters.
-
#text_entities : Array(Hamilton::Types::MessageEntity) | Nil
Special entities that appear in the option text.
-
#text_entities=(text_entities : Array(Hamilton::Types::MessageEntity) | Nil)
Special entities that appear in the option text.
-
#voter_count : Int32
Number of users that voted for this option.
-
#voter_count=(voter_count : Int32)
Number of users that voted for this option.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
Chat that added the option; omitted if the option wasn't added by a chat after poll creation.
Chat that added the option; omitted if the option wasn't added by a chat after poll creation.
User who added the option; omitted if the option wasn't added by a user after poll creation.
User who added the option; omitted if the option wasn't added by a user after poll creation.
Point in time (Unix timestamp) when the option was added; omitted if the option existed in the original poll.
Point in time (Unix timestamp) when the option was added; omitted if the option existed in the original poll.
Unique identifier of the option, persistent on option addition and deletion.
Unique identifier of the option, persistent on option addition and deletion.
Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts
Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts