Closed Joni4Games closed 7 years ago
Worked by simply removing the "process.env".
Worked by removing the "process.env". Thank u @Joni4Games
Sorry for not following up on this. process.env
is for environment variables that are loaded into your shell, usually found in ~/.profile
.
An example inside your ~/.profile
would be:
export TELEGRAM_BOT_TOKEN='token string'
And you'd use it in Node like this:
const token = process.env['TELEGRAM_BOT_TOKEN']
So.. I've added the first sample code. I've requested the Telegram Bot API Key via the BotFather and added it in there. Now I get the error:
Error: Please provide a Telegram Bot Token when instantiating
My Key looks like:
I'm using Node
v8.1.2
Nothing found in the web PS: Anyway you whole project looks good