class
TelegramBot::InputPollOption
- TelegramBot::InputPollOption
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram_bot/types/poll.crConstructors
- .new(pull : JSON::PullParser)
- .new(text : String, *, text_parse_mode : Nil | String = nil, text_entities : Nil | Array(TelegramBot::MessageEntity) = nil, media : TelegramBot::InputMedia | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
- #media : InputPollOptionMedia | Nil
- #media=(media : InputPollOptionMedia | Nil)
- #text : String
- #text=(text : String)
- #text_entities : Array(MessageEntity) | Nil
- #text_entities=(text_entities : Array(MessageEntity) | Nil)
- #text_parse_mode : String | Nil
- #text_parse_mode=(text_parse_mode : String | Nil)
Constructor Detail
def self.new(text : String, *, text_parse_mode : Nil | String = nil, text_entities : Nil | Array(TelegramBot::MessageEntity) = nil, media : TelegramBot::InputMedia | Nil = nil)
#