2024-05-24 17:49:24 -03:00
|
|
|
# Lynx (Node.js Telegram Bot)
|
2024-05-24 17:53:23 -03:00
|
|
|
Lynx is a a simple Telegram bot made in Node.js.
|
2024-05-24 17:49:24 -03:00
|
|
|
|
|
|
|
## Requirements
|
2024-05-24 17:53:23 -03:00
|
|
|
- A Telegram bot (create one at [@BotFather](https://t.me/botfather))
|
|
|
|
- Node.js 20 (or above)
|
2024-05-24 17:49:24 -03:00
|
|
|
- node-telegram-bot-api
|
|
|
|
|
|
|
|
## Develop or contribute with Lynx
|
|
|
|
First, create a ``config.env`` file and put the content below:
|
|
|
|
```
|
|
|
|
# insert your bot token here
|
|
|
|
# get it with @BotFather on Telegram
|
|
|
|
TGBOT_TOKEN=0000000000:AAAaaAAaaaaAaAaaAAAaaa_aaaaAAAAAaaa
|
|
|
|
```
|
|
|
|
Put your bot token that you created at [@BotFather](https://t.me/botfather) at the variable ``TGBOT_TOKEN`` (as the example above) and save the file.
|
|
|
|
|
|
|
|
At last, run the bot with ``npm start``.
|
|
|
|
|
2024-05-24 17:55:28 -03:00
|
|
|
## Notes
|
|
|
|
The source code itself of the bot is at ``src/lynx_main.js``. You can rename this file and change the ``package.json`` file as your needs.
|
|
|
|
|
|
|
|
## About/License
|
2024-05-24 17:49:24 -03:00
|
|
|
MIT - 2024 Lucas Gabriel (lucmsilva).
|