Code Monkey home page Code Monkey logo

telegram_gcloner's Introduction

telegram gcloner

一个Telegram机器人,方便手动保存Google Drive资源。如果你有好的想法,欢迎PR。

演示机器人:http://t.me/ahzhebot

使用方法

准备工作

  1. 安装 Python 3.6+
  2. 下载 gclone
  3. 自行熟悉gclone,并获得包含Service Accounts身份信息的json
  4. 申请一个Telegram Bot,并取得 token
  5. 获取自己的Telegram ID,比如通过这个机器人

安装

下载Zip版本或者通过git clone下载

$ git clone https://github.com/wrenfairbank/telegram_gcloner

通过requirements.txt安装依赖

$ pip install -r requirements.txt

复制config.ini.example并更名为config.ini 修改对应的内容,包括:

path_to_gclone = gclone路径

telegram_token = telegram机器人token

user_ids = 你的telegram id

运行

  1. 运行telegram_gcloner.py
  2. 向机器人上传包含SA的ZIP文件,并在信息标题填写/sa
    • 手机用户可先上传ZIP文件,再回复该信息/sa
  3. 向机器人发送/folders设定常用文件夹。
  4. 向机器人发送或转发带有Google Drive链接的信息,按提示操作。

License

This project is licensed under the MIT License - see the LICENSE file for details

telegram_gcloner's People

Contributors

wrenfairbank 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.