TeleURLUploader

command module
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2025 License: GPL-3.0 Imports: 26 Imported by: 0

README

TeleURLUploader

the most demure url uploader written in go

works nice, shows progress, eta, and speed, supports uploading the file with an icon, and overall works very nicely with nice libraries

Go Reference

building

there are prebuilt binaries in releases. but you can follow the steps below to build it yourself:

  1. install go
  2. clone the repo and cd
  3. go get
  4. go build -ldflags="-s -w"

setup

$ ./TeleURLUploader -help
Usage of ./TeleURLUploader:
  -env string
    	the path to the env file to use (default ".env")

there's a .env.sample file you can fill out. the only key that might require explanation is AUTHORIZED, it's a comma-seperated list of user ids that will be able to use the bot. you can also make SESSION_PATH a full path in case you'll be moving the binary around.

usage

after starting the bot, just send an http url to download. you can use the syntax <link> <filename> to upload the file with a custom filename and even upload the file with a custom icon by replying to a jpg image. example: https://atl.speedtest.clouvider.net/1g.bin 1gigabyte.bin

normal download normal upload normal received

the bot can also intelligently download files from servers that dont report their Content-Length. in this case, the total file size, percentage, and eta will not be available during the download phase. all this information will become available when uploading, though.

unknown download unknown upload unknown received

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL