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

Telegraf: can't use extra – Telegram API

Simple usage works fine: const { Telegraf } = require('telegraf'); const bot = new Telegraf(tgBotToken); bot.telegram.sendMessage(tgChatId, "My message"); But if I want to use HTML in my message, I need to require telegraf/extra const { Telegraf } = require('telegraf'); const…

VIEW QUESTION
Back To Top
Search