Hi, this my first post so yeah let's get started.
install termux
If you already had Termux let's go to the next step.
Install node js with command
pkg install nodejs
Then, make a new directory
mkdir bot && cd bot
Initialize project
npm init
Install express
npm i express --save
Make a new index.js
nano index.js
And this is the code
const Telegraf = require('telegraf');
const bot = new Telegraf(token);
bot.start(ctx=>ctx.reply('Samlekom Mamank'));
bot.launch();
console.log('Bot started')
Save the code and run it with command
node index.js
Good luck:v
Top comments (2)
Gg bang
npm i express --save
This cmd is not working
Showing me a lot of error
Permission Denied, maybe need root user access.
And what happened after run node index js?