#telegram #bots #second-brain #teloxide-bots

bin+lib cndk8

cndk8 is a collection of tools for my Second Brain

1 unstable release

new 0.1.0 Dec 30, 2024

#6 in #bots

Download history 96/week @ 2024-12-25

96 downloads per month

GPL-3.0-only

27KB

cndk8 - pronounced Syndicate :D

bottle2telegram

Throw a message in a bottle to your telegram account

Architecture

Application spawns a webservice and bot is a separate service, both start together and are stopped together.

Everything is a plugin

  • Plugins are separated in two components, web and bot functionality, ipc communication is defined with a json schema (possibly), plugins are self contained and should be plug and play, an application restart is required to make them work.

Features

  • Receive text via post, send to telegram, markdown is supported
    • Save in database
  • Receive links via post, send to telegram
    • Save in database later (make configurable)
  • When it's a twitter account, download files to hard drive
  • Receive files, send to telegram
    • Build drag and drop for file upload
    • List uploaded files for a user
  • Rate limiting is built in for unauthenticated requests.

BUILDING

git clone https://github.com/corrosion-rs/corrosion.git
# Optionally, specify -DCMAKE_INSTALL_PREFIX=<target-install-path>. You can install Corrosion anyway
cmake -Scorrosion -Bbuild -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
# This next step may require sudo or admin privileges if you're installing to a system location,
# which is the default.
cmake --install build --config Release

Dependencies

~17–32MB
~464K SLoC