Coder Social home page Coder Social logo

wu-bot's Introduction

wu-bot

一个简单的电报机器人文件下载工具。演示机器人 https://t.me/KunPeng_bot

支持

  • 视频下载(只能下载telegram视频,如果是YouTube是不能下载的,不过可以通过其他机器人将视频下载到Telegram,再将视频发送给机器人就能下载)
  • 音频下载
  • 图片下载
  • 文档下载
  • 删除文件

依赖

  • mysql
  • telegram-bot-api需要自己搭建环境。搭建完成后替换telegram官方的api,配置文件中的 bot.api。

telegram-bot-api 安装

  1. 访问build网站,根据服务器系统选择相应的安装方法,没什么难度。
  2. 启动
    # 在 telegram-bot-api 可执行文件下执行下面命令
    mkdir logs
    mkidr temp
    ./telegram-bot-api --api-id=24824490 --api-hash=20f7c5a420067e3754c164cceb3b23ae --local -l ./logs/telegram.log -v 3 -d /root/app/telegram-bot-api -p 8081 -t /root/app/telegram-bot-api/temp

参数说明:--api-id 和 --api-hash 是通过my.telegram.org申请的,-l 日志文件,-d 工作目录,-p 端口, -t 临时文件

配置

config.yml

bot:
    token: 电报机器人token
    api: 这里使用自己搭建的 telegram-bot-api

mysql:
  username: root
  password: 123456
  host: 127.0.0.1
  port: 3306
  database: wu-bot

截图

获取菜单

img.png

保存视频

img.png

查询视频

img.png

wu-bot's People

Contributors

wuguipeng avatar

Watchers

 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.