surplus on wheels: Telegram Bridge
Telegram Bridge for surplus on wheels (s+ow)
s+ow bridges are defined in a file named $HOME/.s+ow-bridges
. each command in the file is run,
and comma-seperated target chat IDs are passed using stdin.
this bridge recognises targets prefixed with tg:
.
installation
Important
the following instructions implies that surplus and surplus on wheels have already been installed
-
install prerequisite software if not installed:
-
install spow-telegram-bridge:
Note
if
wget
throws a 404, see backup links -
add the following to your
$HOME/.s+ow-bridges
file:fill in SPOW_TELEGRAM_API_HASH and SPOW_TELEGRAM_API_ID accordingly. see the Telethon docs for more information
to keep up to date, look at updating to set up a daily update cron job:
updating
the installation script also sets up a shell script under the s+ow-telegram-bridge-update
command
to do this automatically, make a cron job with crontab -e
and make a new line with the following text:
this cron job will run the command every day at midnight
usage
-
s+ow-telegram-bridge
normal usage; sends latest message to tg:-prefixed targets given in stdin -
s+ow-telegram-bridge login
logs in to Telegram -
s+ow-telegram-bridge logout
logs out of Telegram -
s+ow-telegram-bridge list
lists all chats and their IDs
optional arguments:
--silent
asks telegram to send message silently--delete-last
deletes last location message to prevent clutter
versioning scheme
from v2.2024.27
, the Telegram Bridge will automatically release a new version once a week if there
are updates to its dependencies
as such, the bridge is now versioned with a modified calendar versioning scheme of
MAJOR.YEAR.ISOWEEK
, where the MAJOR
version segment will be bumped with codebase changes, whereas
the YEAR
and ISOWEEK
segments will represent the time of which the release was built at
licence
the s+ow Telegram Bridge is free and unencumbered software released into the public domain. for more information, see licences.