Skip to content

module Tourmaline::Client::PollMethods #

Direct including types

Tourmaline::Client

Methods#

#send_poll(chat, question : String, options : Array(String), anonymous : Bool = true, type : Poll::Type = Poll::Type::Regular, allows_multiple_answers : Bool = false, correct_option_id : Int32? = nil, close_date : Time? = nil, open_period : Int32? = nil, closed : Bool = false, disable_notification : Bool = false, reply_to_message = nil, reply_markup = nil) #

Use this method to send a native poll. On success, the sent Message is returned.

View source

#stop_poll(chat, message, reply_markup = nil) #

Use this method to stop a poll which was sent by the bot. On success, the stopped Poll with the final results is returned.

View source