Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tgbot

一个基于Node的Telegram BOT

安装依赖

curl -L https://fly.io/install.sh | sh
npm install nodemon -g
npm install

部署

flyctl secrets set ALI_ACCESS_KEY=$ALI_ACCESS_KEY ALI_SECRET=$ALI_SECRET TELEGRAM_TOKEN_AIRPORTSUB=$TELEGRAM_TOKEN_AIRPORTSUB TELEGRAM_TOKEN_HKALIYUN=$TELEGRAM_TOKEN_HKALIYUN
npm run deploy

本地调试

使用Github Codespaces测试,记得将端口删除重新添加并改为Public,用以允许telegram的调用

准备.env文件在项目根目录

URL=https://lyz05-tgbot-977w997pw59f7964-4000.githubpreview.dev

运行

npm run dev

About

一个基于Node的Telegram BOT

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages