| Crates.io | tgbot-mastodon-sync |
| lib.rs | tgbot-mastodon-sync |
| version | 0.2.2 |
| created_at | 2023-01-23 17:34:50.701889+00 |
| updated_at | 2023-03-10 14:17:49.571009+00 |
| description | A Telegram bot synchronizes Telegram messages to Mastodon |
| homepage | |
| repository | https://github.com/SpriteOvO/tgbot-mastodon-sync |
| max_upload_size | |
| id | 766033 |
| size | 215,320 |
A Telegram bot synchronizes Telegram messages to Mastodon.
Official hosted account: @mastodon_sync_bot
You have two ways to install the binary.
Install from crates.io registry.
cargo install tgbot-mastodon-sync
Install from git repository.
git clone https://github.com/SpriteOvO/tgbot-mastodon-sync.git
cd tgbot-mastodon-sync
git checkout <latest-version>
cargo install --path .
Both ways are build from source.
This project uses sqlite as the database engine.
Choose a file path for the database, its URL will be:
sqlite:absolute/path/to/database.sqlite
You may want to add ?mode=rwc to the end of the URL, which will make the bot automatically create the database file if it doesn't exist.
sqlite:absolute/path/to/database.sqlite?mode=rwc
Tables will be created / migrated automatically by the bot at startup.
Configure environment variables:
TGBOT_MASTODON_SYNC_BOT_TOKENTGBOT_MASTODON_SYNC_DATABASE_URLRun tgbot-mastodon-sync.
The bot requires privacy mode to be turned off, because media groups need to be cached in advance.
The database and memory may contain secret data, so pay attention to security.
This project is licensed under GNU AGPL-3.0 License.