A powerful, multi-function Telegram bot https://t.me/KowalskiNodeBot
Find a file
2024-06-02 13:27:01 +00:00
.github Create dependabot.yml 2024-05-25 18:01:54 -03:00
src Simple string change 2024-06-02 13:27:01 +00:00
.gitignore Updated gitignore 2024-06-02 01:05:07 +00:00
LICENSE Base files added 2024-05-24 17:49:24 -03:00
package-lock.json Bump tough-cookie and node-telegram-bot-api 2024-05-25 20:55:50 +00:00
package.json Implemented blocklist + some code changes 2024-06-02 01:48:19 -03:00
README.md Update README.md 2024-06-02 12:02:15 +00:00

Lynx (Node.js Telegram Bot)

Lynx is a a simple Telegram bot made in Node.js.

Requirements

  • A Telegram bot (create one at @BotFather)
  • Node.js 20 LTS (or above)
  • node-telegram-bot-api (install with npm install node-telegram-bot-api)

Notes

  • The source code itself of the bot is at src/main.js, and the commands are in src/commands.
    • You can edit this file and the package.json file as your needs.
  • The name of the command file will always be the command itself.
    • Example: whois.js will always be /whois on Telegram.
  • Also, to see your changes, please restart the bot before making a issue.

Develop or contribute with Lynx

First, make a fork of this repo, or clone it with

git clone https://github.com/lucmsilva651/lynx

Next, go to the repository directory, create a config.env file and put the content below:

# insert your bot token here
# get it with @BotFather on Telegram
TGBOT_TOKEN=0000000000:AAAaaAAaaaaAaAaaAAAaaaAaaaaAAAAAaaa

Put your bot token that you created at @BotFather at the variable TGBOT_TOKEN (as the example above) and save the file.

At last, run the bot with npm start.

About/License

MIT - 2024 Lucas Gabriel (lucmsilva).