module Tourmaline::Client::PollMethods

Direct including types

Defined in:

tourmaline/client/poll_methods.cr

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 = nil, close_date : Time | Nil = nil, open_period : Int32 | Nil = 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]
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.


[View source]