Here you can find all my groups:
- MrCyjaneK’s chat – chat about blog, and everything.
- AntiMany – chat about telegram bot development
- More soon!
@MrCyjaneK – Just another website :)
Here you can find all my groups:
How to create telegram bot?
Before creating bot dowload: node.js from NodeJs.org download version 8.7.0 or higher
Then:
1. Download this repostory https://github.com/MrCyjaneK/telebot/
2. Unzip, open cmd and type:
npm install
3. Create new folder for example Project
4. Open Project and create new file for example MyBot.js
5. Paste this to MyBot.js
CODE:
const TeleBot = require('../');
const bot = new TeleBot('YOUR:BOT_TOKEN');
// On every text message
bot.on('text', msg => {
let id = msg.from.id;
let text = msg.text;
return bot.sendMessage(id, `You said: ${ text }`);
});
bot.connect();
6. Replace YOUR:BOT_TOKEN
with your bot token.
6. Open CMD then open folder your bot source (Project) code and type:
node MyBot.js
7. Open your bot and be happy!
Contact me in Telegram: @BotDev
Hi! Now my telegram channel: @MrCyjaneK have got website!