Skip to content

Telegram group joining bot with voting feature. Telegram 投票入群机器人

License

Notifications You must be signed in to change notification settings

KimmyXYC/ApproveByPoll

Repository files navigation

ApproveByPoll / Telegram 投票入群机器人

wakatime actions actions

安装 / Installation

  • 下载源码。 Download the code.
git clone https://github.com/KimmyXYC/ApproveByPoll.git
cd ApproveByPoll
  • 复制配置文件。 Copy configuration file.
cp .env.exp .env
  • 填写配置文件。 Fill out the configuration file.
TELEGRAM_BOT_TOKEN=xxx
# TELEGRAM_BOT_PROXY_ADDRESS=socks5://127.0.0.1:7890
TELEGRAM_BOT_LOG_CHANNEL=-1001234567890

本地部署 / Local Deployment

  • 安装依赖并运行。 Install dependencies and run.
pip3 install pdm
pdm install
pdm run python main.py
  • 使用 PM2 守护进程。 Use PM2 to daemonize the process.
pm2 start pm2.json
pm2 monit
pm2 restart pm2.json
pm2 stop pm2.json

Docker 部署 / Docker Deployment

  • 使用预构建镜像。 Use pre-built image.
docker run -d --name approvebypoll --env-file .env ghcr.io/kimmyxyc/approvebypoll:main

注意 / Attention

  • 机器人必须有邀请用户,封禁用户,删除消息,置顶消息的权限。
  • The robot must have the permission to invite users, ban users, delete messages, and pin messages.

About

Telegram group joining bot with voting feature. Telegram 投票入群机器人

Resources

License

Stars

Watchers

Forks

Packages