I want to create a Telegram Bot to join to a group which is able to kick people if not subscripted to a channel.
Is this possible?
I know nothing of a telegram API.
But you can get subscribers from the Twitch API without issue. Then you can sync as you see fit.
Ok but how can the bot have no expiration token to always make calls and check if a user is subscripted or not?
Because I know you have to do oauth in order to get a token but it has expiration, and a bot cannot always do that
It’s not possible for you to get a token that doesn’t expire, they always will. What you can do though is use the Refresh Token that you get as part of the Authorization Code Flow to programatically get new access and refresh tokens: https://dev.twitch.tv/docs/authentication#refreshing-access-tokens
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.