the headers passed are just not enough
more headers like chat content chat id stream id would help us to identify the actual message that triggered the command and perform task accordingly
this is for youtube.
I am trying to make a clip command using urlfetch
on request i have to go back and find the stream where it got triggered. (breaks when a channel have more than one stream).
nor there is no variable like messageid which i can pass to help myself.
variable like timestamp to tell the current location in stream would have also helpd
as i mentioned in the first post
this is for youtube.
so unlike twitch each livestream have a unique id . that eventually be the videoid after stream ends.
Unfortunately we donāt know the videoId from YouTube as they donāt expose it to us. We have an identifier for the chat room itself and the channel, but thereās not a way to obtain a video identifier from a chat room identifier.
is it the same thing as ācontinuation_infoā ? and looks something like this ?
āTop chatā: ā0ofMyANuGl5DaWtxSndvWVZVTmlXbHB0UWpoTU0wbEZTSFYwUjJKMmNGZHZPVTkzRWdzeGIxTnhkVVZUZFhoNGR4b1Q2cWpkdVFFTkNnc3hiMU54ZFVWVGRYaDRkeUFCTUFBJTNEMAGCAQYIBBgBIACoAQE%3Dā
I guess passing this also kinda prevents me from going on and requesting huge ton of chats
instead I can just continue in case it doesnāt match.
alongside this. does the youtube returns the message_time ? or timestamp in seconds (time from the starting of stream)
While we do know when a message was created, you can already log that as the request timestamp as well (itās close enough). We donāt know what that relation is to when the stream went live, however.