mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-05-05 18:32:36 +00:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) to 4.1.4 and updates ancestor dependency [node-telegram-bot-api](https://github.com/yagop/node-telegram-bot-api). These dependencies need to be updated together. Updates `tough-cookie` from 2.5.0 to 4.1.4 - [Release notes](https://github.com/salesforce/tough-cookie/releases) - [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md) - [Commits](https://github.com/salesforce/tough-cookie/compare/v2.5.0...v4.1.4) Updates `node-telegram-bot-api` from 0.63.0 to 0.66.0 - [Release notes](https://github.com/yagop/node-telegram-bot-api/releases) - [Changelog](https://github.com/yagop/node-telegram-bot-api/blob/master/CHANGELOG.md) - [Commits](https://github.com/yagop/node-telegram-bot-api/commits) --- updated-dependencies: - dependency-name: tough-cookie dependency-type: indirect - dependency-name: node-telegram-bot-api dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
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 (or above)
- node-telegram-bot-api
Notes
- The source code itself of the bot is at
src/main.js
, and the commands are insrc/commands
.- You can rename this file and change the
package.json
file as your needs.
- You can rename this file and change the
- The name of the command file will always be the command itself.
- Example:
whois.js
will always be/whois
on Telegram.
- Example:
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).
Description
Languages
TypeScript
99.6%
Dockerfile
0.4%