Here is my PET project for bot, that will send cards with intervals
Instruction links. that is bot's code from: [Medium] Creating a Simple Telegram Bot using Node.js: A Step-by-Step Guide.
- copy
.env.example
to.env
in same folder - Ask an appropriate telegram bot token specially to this bot. Paste the token to
TELEGRAM_BOT_TOKEN
variable in.env
file - run
node index.ts
(Terminal should turn into waiting mode). - open the IntervalCardsBot from telegram
- press "Start" button or type
/start
. - bot should return a message
- usage info: https://github.com/yagop/node-telegram-bot-api/blob/master/doc/usage.md
- API: https://github.com/yagop/node-telegram-bot-api/blob/master/doc/api.md
- help: https://github.com/yagop/node-telegram-bot-api/blob/master/doc/help.md
- webhooks: https://github.com/yagop/node-telegram-bot-api/tree/master/examples/webhook