Telegex.send_poll

You're seeing just the function send_poll, go back to Telegex module for more information.
Link to this function

send_poll(chat_id, question, options, optionals \\ [])

View Source

Specs

send_poll(integer() | String.t(), String.t(), [String.t()],
  is_anonymous: boolean(),
  type: String.t(),
  allows_multiple_answers: boolean(),
  correct_option_id: integer(),
  explanation: String.t(),
  explanation_parse_mode: String.t(),
  explanation_entities: [Telegex.Model.MessageEntity.t()],
  open_period: integer(),
  close_date: integer(),
  is_closed: boolean(),
  disable_notification: boolean(),
  reply_to_message_id: integer(),
  allow_sending_without_reply: boolean(),
  reply_markup:
    Telegex.Model.InlineKeyboardMarkup.t()
    | Telegex.Model.ReplyKeyboardMarkup.t()
    | Telegex.Model.ReplyKeyboardRemove.t()
    | Telegex.Model.ForceReply.t()
) :: {:ok, Telegex.Model.Message.t()} | {:error, Telegex.Model.errors()}

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