You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to see if a user is subscribed to Telegram Premium, according to official telegram docs, the User object has a field called 'is_premium' but I can't seem to find it in node-telegram-bot-api.
Ok, for people looking at this in the future, when the bot recieves a message, msg will cointain a field, named from that is a User object. If user is not premium, msg.from.is_premium is undefined, if they do, it will become true
I'm trying to see if a user is subscribed to Telegram Premium, according to official telegram docs, the User object has a field called 'is_premium' but I can't seem to find it in node-telegram-bot-api.
What I have tried:
and none of these have what I'm looking for, can anyone help?
The text was updated successfully, but these errors were encountered: