Skip to content

A Telegram bot that can stream Telegram files to users over HTTP.

License

Notifications You must be signed in to change notification settings

King-Amda/TG-Files-to-Link

 
 

Repository files navigation

Telegram File To Link Generation Bot

A Telegram bot that can stream Telegram files to users over HTTP.

Diploy

With Bot Token & Session String

Deploy

Without Session String

Deploy

Get String Sesson

Run

Environment variables

  • TG_API_ID (required) - Your Telegram API ID.
  • TG_API_HASH (required) - Your Telegram API hash.
  • TG_SESSION_NAME (defaults to tgfilestream) - The name of the Telethon session file to use.
  • TG_BOT_FATHER_TOKEN - Your bot token, as a string..
  • PORT (defaults to 8080) - The port to listen at.
  • HOST (defaults to localhost) - The host to listen at.
  • PUBLIC_URL (defaults to http://localhost:8080) - The prefix for links that the bot gives.
  • TRUST_FORWARD_HEADERS (defaults to false) - Whether or not to trust X-Forwarded-For headers when logging requests.
  • DEBUG (defaults to false) - Whether or not to enable extra prints.
  • LOG_CONFIG - Path to a Python basic log config. Overrides DEBUG.
  • REQUEST_LIMIT (default 5) - The maximum number of requests a single IP can have active at a time.
  • CONNECTION_LIMIT (default 20) - The maximum number of connections to a single Telegram datacenter.
  • TG_START_MESG - The message that should be shown in Telegram chat, in case of non-media message.

Special Credits

Orginal Repo Owner

Repo Owner

Report Any Bug

King Amda

King Amda

About

A Telegram bot that can stream Telegram files to users over HTTP.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%