How to know when a channel begins a stream?

I wanted to send a message in chat with my chatbot when the channel begins a stream but I don’t know how to know when a stream begins.
Can you help me please?

Call the Get Streams API every minute

Use EventSub to recieve a HTTP Post request to your server when a stream starts

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.