加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT
https://raw.githubusercontent.com/Nekmo/telegram-upload/master/logo.png

Latest Tests CI build status Latest PyPI version Python versions Code Climate Test coverage Requirements Status

telegram-upload

Telegram-upload uses your personal Telegram account to upload and download files up to 2GiB (bots are limited to 50 MiB). Turn Telegram into your personal cloud!

To install telegram-upload, run this command in your terminal:

$ sudo pip3 install -U telegram-upload

This is the preferred method to install telegram-upload, as it will always install the most recent stable release. More info in the documentation

To use this program you need an Telegram account and your App api_id/api_hash (get it in my.telegram.org). The first time you use telegram-upload it requests your telephone, api_id and api_hash. Bot tokens can not be used with this program (bot uploads are limited to 50MB). To send files (by default it is uploaded to saved messages):

$ telegram-upload file1.mp4 /path/to/file2.mkv

Credentials are saved in ~/.config/telegram-upload.json and ~/.config/telegram-upload.session. You must make sure that these files are secured. You can copy these files to authenticate telegram-upload on more machines, but it is advisable to create a session file for each machine. Upload options are available in the documentation.

You can download the files again from your saved messages (by default) or from a channel. All files will be downloaded until the last text message.

$ telegram-download

The --delete-on-success option allows you to delete the Telegram message after downloading the file. This is useful to send files to download to your saved messages and avoid downloading them again. You can use this option to download files on your computer away from home. Read the documentation for more info.

Features

  • Upload multiples files (up to 2GiB per file)
  • Download files.
  • Add video thumbs.
  • Delete local or remote file on success.
MIT License Copyright (c) 2018, Nekmo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
Python 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化