• This repository has been archived on 24/Jan/2021
  • Stars
    star
    184
  • Rank 209,187 (Top 5 %)
  • Language
    Python
  • License
    GNU Affero Genera...
  • Created almost 5 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

tgfilestream

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

Setup

Install dependencies (see requirements.txt), configure environment variables (see below) and run with python3 -m tgfilestream.

A reverse proxy is recommended to add TLS. When using a reverse proxy, keep HOST as-is, but add the publicly accessible URL to PUBLIC_URL. The URL should include the protocol, e.g. https://example.com.

Environment variables

  • TG_API_ID (required) - Your Telegram API ID.
  • TG_API_HASH (required) - Your Telegram API hash.
  • 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.
  • TG_G_C_MESG - The message that should be shown in a Telegram Group chat.
  • TG_SESSION_NAME (defaults to tgfilestream) - The name of the Telethon session file to use.
  • TG_BOT_FATHER_TOKEN (defaults to None) - This option is mutually exclusive to TG_SESSION_NAME, and if set, the client will login as a bot, instead of an user.

More Repositories

1

whatsmeow

Go library for the WhatsApp web multidevice API
Go
2,079
star
2

gomuks

A terminal based Matrix client written in Go.
Go
1,345
star
3

mauview

A Go TUI library based on tcell.
Go
44
star
4

telethon-session-sqlalchemy

SQLAlchemy backend for Telethon session storage
Python
38
star
5

fbchat-asyncio

Facebook Messenger library for Python/Asyncio
Python
38
star
6

mautrixfs

A Matrix client as a FUSE filesystem.
Go
30
star
7

mautrix-manager

A web interface for managing bridges
JavaScript
21
star
8

mauliasproxy

A simple Matrix room alias proxy
Go
19
star
9

mautrix-twilio

A Matrix-Twilio relaybot bridge.
Python
13
star
10

mautrix-appservice-go

Matrix Application Service framework in Go
Go
10
star
11

maulu

A fairly simple URL shortening backend written in Go
Go
7
star
12

maumirror

A GitHub repo mirroring system using webhooks
Go
6
star
13

remuks

A React Native Matrix client
JavaScript
6
star
14

lwnfeed

A full-text RSS feed generator for LWN.net
Go
6
star
15

gopher-ace

Ace bindings for GopherJS
Go
5
star
16

gh-deployer

A simple server that listens for changes on GitHub and deploys projects
Go
4
star
17

mauCapture

A screenshot program written in Java.
Java
4
star
18

gopacked

A simple text-based Minecraft modpack manager.
Go
4
star
19

pass

A fork of https://www.passwordstore.org/, the standard unix password manager
Shell
4
star
20

mautrix-cookiemonster

A browser extension to eat cookies to log into bridges.
JavaScript
4
star
21

gopher-mousetrap

Mousetrap bindings for GopherJS
Go
3
star
22

fifteen

15-puzzle solver, data structures and algorithms project
Go
3
star
23

quacknet

A ComputerCraft library set that allows for secure and/or verified communication over RedNet
Lua
3
star
24

lindeb

A simple link manager with powerful search
Go
3
star
25

hy-docker

Python
2
star
26

hy-fullstack-project

2
star
27

tgirc-bridge

A Telegram <-> IRC bridge and chat logger
Go
2
star
28

maubot-legacy

A chatbot platform abstraction library
Go
2
star
29

mauimageserver

A simple image hosting backend designed for mauCapture
Go
2
star
30

zeroconfig

A relatively simple declarative config format for zerolog
Go
2
star
31

jesaribot

A simple maubot example that replies with a nice GIF when it receives the word "jesari" (duct tape in Finnish slang)
Go
2
star
32

zerozap

A zap core to convert output to zerolog
Go
2
star
33

portal2d

A 2D portal-like game made in a few days
Java
2
star
34

.github

Default metadata files for my repos
1
star
35

hy-fullstack

JavaScript
1
star
36

hashmux

A light URL hash to JavaScript function router.
JavaScript
1
star
37

libmauirc

An IRC connection library for Go designed for mauircd
Go
1
star
38

hy-ohtu-6-7

Java
1
star
39

ranssibot

A Telegram bot that interacts with ranssi.paivola.fi
Go
1
star
40

hy-otm

Java
1
star
41

maulogger

A logger for Go programs
Go
1
star
42

shitlerd

A manager for online Secret Hitler games.
Go
1
star
43

mauirc

A web-based IRC client
Go
1
star
44

hy-ohtu-3-4

Java
1
star
45

hy-ohtu-1-2

Java
1
star
46

zeroparse

A very simple tool to convert JSON zerolog output into pretty formatted data.
Go
1
star