skip to Main Content

telegram bot login checking authorization not equal hash – Telegram API

I try to use telegram bot connect website, when I open the website, I get the query and hash when I validate throw node.js and not equal const key = crypto.createHash('sha256').update(my_bot_token).digest() const validateHash = crypto.createHmac('sha256', key).update('auth_date=1646xxxnfirst_name=namexxxnid=1231xxxxnAusername=alexLxxx').digest('hex') console.log(hash === validateHash) false…

VIEW QUESTION
Back To Top
Search