Search code examples
telegram-botpython-telegram-botnode-telegram-bot-api

Does bot api support creation of native polls?


I’m trying to have a bot that is part of a group conduct polls based on certain parameters it receives instead of the users of the group creating the polls themselves. Is this possible?


Solution

  • Yes, a bot can create and send Polls to anywhere in Telegram.

    Referring to python-telegram-bot, this can be done with context.bot.send_poll(chat_id, question, options)

    Check out these documentations of sendPoll():

    Telegram Bot API Docs

    python-telegram-bot Docs