uploadgram uses your Telegram account to upload files up to 2GiB, from the Terminal.

Related tags

CLI Tools UploadGram
Overview

uploadgram

uploadgram uses your Telegram account to upload files up to 2GiB, from the Terminal.

  • Heavily inspired by the telegram-upload

  • Installing: pip install uploadgram

  • Requirements: pyrogram

Sample Usage

$ uploadgram 7351948 /path/to/dir/or/file --delete_on_success True --fd True -t /path/to/custom/thumbnail
Comments
  • Bug - Video files from mount drives cannot be uploaded

    Bug - Video files from mount drives cannot be uploaded

    I'm on Windows 10 running uploadgram 0.1.7

    I mounted a Google Drive on my PC and tried to upload from there to TG. It works for audios and documents, but sometimes I encounter this error https://sourceb.in/aw4yDgIKIx

    It always fails when I try to upload videos with this error https://sourceb.in/5rDRPxOc64

    I suspected that the cause was those thumbnails generated (maybe no write access for the mount folders?). So I commented all the lines in the script with a reference to thumbnails. Now the script uploads videos with no issues.

    Maybe solving the previous issues with thumbnails will fix this problem or a new solution is needed.

    bug documentation 
    opened by tissole 17
  • Files of exactly 2 GB in size are not uploaded

    Files of exactly 2 GB in size are not uploaded

    I found that the culprit is in line 60 from upload.py elif os.stat(current_name).st_size < TG_MAX_FILE_SIZE: It should be elif os.stat(current_name).st_size <= TG_MAX_FILE_SIZE:

    opened by tissole 2
  • Feature request - Option to upload directly from cloud drives

    Feature request - Option to upload directly from cloud drives

    Since uploading from mount drives is possible, I think that an option to upload directly should be implemented. It will run more smoothly because reading from a mounted drive is adding another layer of complexity. There are bots that can upload from TG to cloud drives, so why not doing in reverse, uploading from a Google Drive or a Mega Drive to TG?

    It will make life easier for users to transfer files from other clouds to TG on the fly without downloading them first, so no usage of local drive space, and when deploying to a VPS it will use that bandwidth which is greater than most users have at home.

    duplicate invalid question 
    opened by tissole 2
  • Question - Why temporary sessions?

    Question - Why temporary sessions?

    Thanks for updating to Pyrogram V2 and supporting the new premium features. Now the script asks for credentials every time it starts. Before the credentials were asked only once. Is there a reason for this choice? I change it to not use in memory sessions, but cannot find the session file in ~/.config/uploadgram/. Where it is stored?

    bug duplicate 
    opened by tissole 1
  • Console Progress Bar not accurate

    Console Progress Bar not accurate

    When using the console progress bar, it seems like the upload speed is incorrect. Also, after a few seconds, I quickly exceeds the original file size. image

    The original file size: image

    For a fact, I know my (slow) internet can only reach 10MiB/s. The original file size was: 1.95GB, not the 2+ GB it's upload. The message progress bar is working correctly.

    opened by BetaTester41 1
  • Bug - Videos uploaded as mkv have distorted thumbnails

    Bug - Videos uploaded as mkv have distorted thumbnails

    The image is squeezed vertically, does not have a 16:9 aspect ratio. I resolved this by changing lines 176 and 177 from upload.py from

            width = 0
            height = 0
    
    to 
            width = 1280
            height = 720
    
    documentation duplicate invalid wontfix 
    opened by tissole 1
  • Bug - Audio files are uploaded without thumbnails

    Bug - Audio files are uploaded without thumbnails

    When I upload audio files (mp3, m4a) with the official client, there is a small thumbnail on the background of the play button, but when I upload them with UploadGram they appear without thumbnails. Not a big thing, but with thumbnails they look nicer.

    opened by tissole 2
  • Feature request - Display in console the number of uploaded files

    Feature request - Display in console the number of uploaded files

    When the script ends its job, it should show the total number of files uploaded, and if it is possible to show it based on file types (mp4, mp3, pdf, etc.).

    documentation enhancement help wanted good first issue 
    opened by tissole 0
  • Make Captions optional

    Make Captions optional

    I don't see an option to turn off captions, and i would like that option. In the end i want to upload a folder, the folder name is sent as a text message, then the contents are sent, ideally grouped like when sending files with the default client. Any help would be appreciated, awesome tool :)

    documentation duplicate enhancement good first issue 
    opened by brokenwu 3
Owner
Shrimadhav U K
301 | moved to https://gitlab.com/SpEcHiDe
Shrimadhav U K
A simple automation script that logs into your kra account and files your taxes with one command

EASY_TAX A simple automation script that logs into your kra account and files your taxes with one command Currently works for Chrome users. Will creat

leon koech 13 Sep 23, 2021
A Telegram Bot Written In Python To Upload Medias To telegra.ph

Telegraph-Uploader A Telegram Bot Written In Python To Upload Medias To telegra.ph DEPLOY YOU CAN SIMPLY DEPLOY ON HEROKU BY CLICKING THE BUTTON BELOW

Rithunand 31 Dec 3, 2022
Gamestonk Terminal is an awesome stock and crypto market terminal

Gamestonk Terminal is an awesome stock and crypto market terminal. A FOSS alternative to Bloomberg Terminal.

Gamestonk Terminal 18.6k Jan 3, 2023
💥 Share files easily over your local network from the terminal!

Fileshare ?? Share files easily over your local network from the terminal! ?? Installation # clone the repo $ git clone https://github.com/dopevog/fil

Dopevog 11 Sep 10, 2021
Booky - A command line utility for bookmarking files on your terminal!

Booky A command line utility for bookmarking files for quick access With it you can: Bookmark and delete your (aliases of) files at demand Launch them

Pran 1 Sep 11, 2022
Quickly open any path on your terminal window in your $EDITOR of choice!

Tmux fpp Plugin wrapper around Facebook PathPicker. Quickly open any path on your terminal window in your $EDITOR of choice! Demo Dependencies fpp - F

null 257 Dec 28, 2022
TerminalGV is a very simple client to display stats about your SNCF TGV/TER train in your terminal.

TerminalGV So I got bored in the train, TerminalGV is a very simple client to display stats about your SNCF TGV/TER train in your terminal. The "on-tr

Samuel 8 Dec 15, 2022
A terminal utility to sort image files based on their characteristics.

About A terminal utility to sort image files based on their characteristics. Motivation This program was developed after I've realized that I had too

José Ferreira 1 Dec 10, 2022
Command-line script to upload videos to Youtube using theYoutube APIv3.

Introduction Command-line script to upload videos to Youtube using theYoutube APIv3. It should work on any platform (GNU/Linux, BSD, OS X, Windows, ..

Arnau Sanchez 1.9k Jan 9, 2023
Open a file in your locally running Visual Studio Code instance from arbitrary terminal connections.

code-connect Open a file in your locally running Visual Studio Code instance from arbitrary terminal connections. Motivation VS Code supports opening

Christian Volkmann 56 Nov 19, 2022
Darkdump - Search The Deep Web Straight From Your Terminal

Darkdump - Search The Deep Web Straight From Your Terminal About Darkdump Darkdump is a simple script written in Python3.9 in which it allows users to

Josh Schiavone 264 Dec 30, 2022
This a simple tool to query the awesome ippsec.rocks website from your terminal

ippsec-cli This a simple tool to query the awesome ippsec.rocks website from your terminal Installation and usage cd /opt git clone https://github.com

stark0de 5 Nov 26, 2022
👻 Ghoul is an easy to use information service, allowing you to get/add information on someone or something directly from your terminal.

?? Ghoul is an easy to use information service, allowing you to get/add information on someone or something directly from your terminal. It c

Billy 11 Nov 10, 2021
Display Images in your terminal with python

A python library to display images in the terminal

Pranav Baburaj 57 Dec 30, 2022
Easy-to-use terminal program that can compile your code.

Description Easy-to-use terminal program that can compile your code. Installition 1. Cloning repository $ git clone https://github.com/DarkJoij/Compil

DarkJoij 1 Oct 21, 2021
WazirX Portfolio Tracker on your Terminal!

If you have been investing in crypto in India, there is a very good chance that you are using WazirX. If you are using WazirX, then you definitely know that there is no P&L report, no green arrows nor red ones. I have made a portfolio tracker where you can get all of your portfolio details right there on your Terminal/command line!

Raunit 15 Jan 10, 2022
Display Images in your terminal with python

Term-Img Display Images in your terminal with python NOTE: This project is a work in progress and not everything on here has actually been implemented

My avatar ;D 118 Jan 5, 2023
A minimal todo list for your terminal.

todo A minimal todo list for your terminal. Installation Run the following command. pip install git+https://github.com/piero-vic/todo.git Usage todo

Piero Lescano 7 Aug 8, 2022
A dashboard for your Terminal written in the Python 3 language,

termDash is a handy little program, written in the Python 3 language, and is a small little dashboard for your terminal, designed to be a utility to help people, as well as helping new users get used to the terminal.

Rebecca White 2 Dec 3, 2021