Skip to content

skofli/uploadFileBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upload file bot

Service which is engaged in sending files in telegrams

Options

  • app-id telegram app id. You can get it from telegram apps
  • app-hash telegram app hash. You can get it from telegram apps
  • bot-token telegram bot token. How to create it looks here
  • user-id telegram user-id which bot will send files
  • input-folder the folder from which the service will take files to send to the user
  • output-folder the folder in which the service will put the files after sending to the user

Quick start

Install

With docker

  1. copy provided docker-compose.yml and customize
  2. compile from the sources - docker-compose build && docker-compose up -d

Without docker

  1. make sure that you have go version 1.16 or higher
  2. compile binary file make build
  3. run it
./dist/uptotg                       \
  --app-id={{app-id}}               \
  --app-hash={{app-hash}}           \
  --bot-token={{bot-token}}         \
  --user-id={{user-id}}             \
  --input-folder={{input-folder}}   \
  --output-folder={{output-folder}}

About

Service which can send files up to 500MB to telegram

Resources

License

Stars

Watchers

Forks

Packages

No packages published