Ignore messaged forwarded from self
Fix further None occurences
Fix no effective_{user,message} bug
A Telegram Bot which sanitises and substitutes share links with lightweight, privacy respecting proxy frontend alternatives.
Supported services (configurable):
$ git clone https://git.sr.ht/~torresjrjr/linkchanbot
$ cd linkchanbot
$ python -m pip install -r requirements.txt
# make install
To start serving, linkchanbot needs further configuration.
/start
, /help
, and /about
.Add the required bot token (and optionally an admin username)
either in bot.cfg
in the linkchan config directory
($XDG_CONFIG_HOME/linkchan
or $HOME/.config/linkchan
):
[auth]
# required
token = 123:ABC...
# optional, provides /restart and /shutdown
admin = username
Or by environment variable:
$ export LINKCHAN_TOKEN='123:ABC...'
$ export LINKCHAN_ADMIN='admin_username'
Your bot should now be ready.
See linkchanbot(1)
linkchanbot comes with a preconfigured list of 'alts' (proxies) and
other configuration data. This data is updated with new commits. On
start-up, linkchanbot copies this data in the absence of locally
configured data to XDG_CONFIG_HOME/linkchan
(bot.cfg
is untouched).
To fully update linkchanbot and its configuration data, perform a normal installtion with the latest commit, then remove (and backup) the local configuration files and restart linkchanbot.
shell:
$ rm ~/.config/linkchan/alts.json
$ rm ~/.config/linkchan/services.json
Telegram:
/restart (or manaully in the shell)
See linkchanbot(1)
or linkchanbot --help
.