How to programmatically create poll?

For example, on a specific ‘event’ from external web API or inner hardcode condition was generated and bot must handle this and create poll with recieved data. Then when new ‘event’ (ex. after 5 min when poll starts) → stop poll → make response-request to my web api with poll results. It’s necessary to create custom ‘system’ code to interact with my web api?

Hi wildegor,
You will need to create own system sogebot - Free Twitch Bot built on Node.js