module Tourmaline::Client::PollMethods

Included Modules

Direct including types

Defined in:

Constant Summary

Log = ::Log.for("tourmaline.client.poll_methods")

Instance Method Summary

Instance Method Detail

def 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.


def 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.