Code Monkey home page Code Monkey logo

tg_faka_bot's Introduction

介绍

这是一个Telegram 发卡机器人,此机器人基于Python开发,在Python 3.7运行环境测试通过。 Telegram 交流反馈群组:@tgfaka 点击加入

使用方法

第一次安装

安装依赖

pip3 install -r requirements.txt

修改文件前缀

修改以example.xxx.xxx开头的文件,重命名为xxx.xxx。 例如example.config.py,重命名为config.py

需要重命名的文件为:example.config.pyexample.faka.sqlite3、支付网关目录下的接口文件都需要重命名

启动方法

python3 main.py

升级版本

查看说明

功能介绍

管理员界面

用户界面

数据库

使用sqlite3作为数据库,轻量、便于备份。

支付接口

现有的支付接口

  • 易支付
  • 支付宝当面付
  • mugglepay

由于市面上有许多的易支付版本,虽然接口传参一样,但是有些网站的返回值还是有所不同,目前该程序对我所使用过的易支付站点做了适配,如有不适配的情况,可以积极反馈

配置自己的支付接口

编辑config.py文件 现在存在的支付接口:

PAYMENT_METHOD = {
    'epay': '支付宝/微信/QQ',
    'alifacepay': '支付宝当面付'
}

如果这时候有一个新的文件名为mugglepay.py的支付接口,那么可以这么配置:

PAYMENT_METHOD = {
    'epay': '支付宝/微信/QQ',
    'alifacepay': '支付宝当面付',
    'mugglepay': '加密货币'
}

mugglepay.py的相对路径为getways/mugglepay/mugglepay.py,请确保你安装了此插件需要的额外依赖

各个支付接口的配置已经整合到支付接口文件中,不再在config.py里面配置

编写自己的支付接口

查看教程

tg_faka_bot's People

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.