Giter Club home page Giter Club logo

v2board-telegram-bot's Introduction

V2Board Telegram Bot via Python

一个简单的项目,让 V2Board Telegram Bot 支持更丰富的功能。 使用反馈、功能定制可加群:https://t.me/dyPythonBot

Python 版本需求 >= 3.9

现有功能

  • 基于MySQL,支持以SSH方式登录
  • 自动删除群聊中命令信息
  • 支持Bot内绑定、解绑
  • 支持获取用户信息、订阅、邀请

现有指令

指令 参数 描述
ping 获取聊天的ID
bind 订阅 绑定该订阅到Telegram
unbind 解绑该TG的Telegram
mysub 获取该账号的订阅链接
myinfo 获取该账号的订阅信息
myinvite 获取该账号的邀请信息

常规使用

# apt install git 如果你没有git的话
git clone https://github.com/DyAxy/V2Board_Telegram_Bot.git
# 进程常驻可参考 screen 或 nohup 或 systemctl
# 你需要安装好 pip3 的包管理
cd V2Board_Telegram_Bot
pip3 install -r requirements.txt
cp config.yml.example config.yml
nano config.yml
# 根据注释中的内容修改配置
python3 bot.py

申请 Telegram Bot Token

  1. 私聊 https://t.me/BotFather
  2. 输入 /newbot,并为你的bot起一个响亮的名字
  3. 接着为你的bot设置一个username,但是一定要以bot结尾,例如:v2board_bot
  4. 最后你就能得到bot的token了,看起来应该像这样:123456789:gaefadklwdqojdoiqwjdiwqdo

v2board-telegram-bot's People

Contributors

dyaxy avatar moefaq avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.