Getting poll_id with pytelegrambotapi

Viewed 14
@bot.message_handler(commands=['pool'])
def pool(message):
  bot.send_poll(message.chat.id, 'choose the option', Poll_C, is_anonymous = False,allows_multiple_answers = False, correct_option_id = 1)



@bot.poll_answer_handler()
def pool_answer(pollAnswer):
  print(pollAnswer)


How can I get pollAnswer exactly from the poll I sent before? Do I have to get poll_id? How?

0 Answers
Related