Closed mrienstra closed 1 month ago
Would be convenient when running through setup to see a quick way to generate a new secret for the webhook (X-Telegram-Bot-Api-Secret-Token, AKA secret_token, botWebhookSecret, or BOT_WEBHOOK_SECRET).
X-Telegram-Bot-Api-Secret-Token
secret_token
botWebhookSecret
BOT_WEBHOOK_SECRET
E.g. in these instructions (code): https://github.com/bot-base/telegram-bot-template/tree/deploy/vercel#usage
code
These seem like solid options, but surely there are others (and I'm not an expert on security, so don't take my word for it!):
node -e "console.log(crypto.randomBytes(256*0.75).toString('base64url'))"
python3 -c "import secrets; print(secrets.token_urlsafe(256))"
Great idea, thanks! Added.
Would be convenient when running through setup to see a quick way to generate a new secret for the webhook (
X-Telegram-Bot-Api-Secret-Token
, AKAsecret_token
,botWebhookSecret
, orBOT_WEBHOOK_SECRET
).E.g. in these instructions (
code
): https://github.com/bot-base/telegram-bot-template/tree/deploy/vercel#usageThese seem like solid options, but surely there are others (and I'm not an expert on security, so don't take my word for it!):