A Telegram bot synchronizes Telegram messages to Mastodon.

Overview

tgbot-mastodon-sync

A Telegram bot synchronizes Telegram messages to Mastodon.

Official hosted account: @mastodon_sync_bot

Self-Host

1. Install binary

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.

2. Configure database

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.

3. Start the bot

Configure environment variables:

  • TGBOT_MASTODON_SYNC_BOT_TOKEN
  • TGBOT_MASTODON_SYNC_DATABASE_URL

Run tgbot-mastodon-sync.

Note

  • 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.

License

This project is licensed under GNU AGPL-3.0 License.

You might also like...
A small discord bot to archive the messages in a discord text channel.

discord-channel-archiver A small discord bot to archive the messages in a discord text channel. This is still WIP. The HTML and JSON modes are vaguely

Telegram bot API client for Rust
Telegram bot API client for Rust

Frankenstein Telegram bot API client for Rust. It's a complete wrapper for Telegram bot API and it's up to date with version 5.2 of the API. Frankenst

A Telegram Bot written in Rust to Track new Github releases

Release Tracker This is used to track Releases posted on GitHub Releases and Post it on a Telegram Channel/Group. Setup Export env variables or just f

My personal telegram bot in rust

My personal telegram bot in rust Setting up your environment Download Rust.

A Simple, But amazing telegram bot, Made using the Rust language!

Telegram bot in Rust A fun Telegram bot made using Rust language.

This is a Telegram bot I'm working on in my free time to learn Rust.

Maldness Bot This is a Telegram bot I'm working on in my free time to learn Rust. Building docker build -t . should be enough.

This is a simple Telegram bot with interface to Firefly III to process and store simple transactions.
This is a simple Telegram bot with interface to Firefly III to process and store simple transactions.

Firefly Telegram Bot Fireflies are free, so beautiful. (Les lucioles sont libres, donc belles.) ― Charles de Leusse, Les Contes de la nuit This is a s

Telegram Bot Template with Cloudflare Workers

cf-workers-telegram-bot-template Usage This template starts you off with a src/lib.rs file, acting as an entrypoint for requests hitting your Worker.

Rust telegram bot library for many runtimes

Telbot Telbot provides telegram bot types and api wrappers. Specifically, telbot now supports: telbot-types: basic telegram types / requests / respons

Telegram bot that zhuzh Twitter content
Telegram bot that zhuzh Twitter content

@twt_2_tg_bot Telegram bot that zhuzh shared Twitter content Text converter Some tweets may contain line breaks or even dialogs. Such tweets are barel

Telegram bot for searching in Arch User Repository ( AUR ); Implemented using rust.

AurSearchBot A Telegram Inline Search Bot Written in Rust Introduction Telegram Bot that can search AUR ( Arch User Repository ) in inline mode. This

Uradhura is a telegram bot that fetches information and media from reddit
Uradhura is a telegram bot that fetches information and media from reddit

Pathetic little Telegram bot that fetches information from Reddit posts(with gif, image(post with single image) and video)

Autogenerated wrapper for the Telegram Bot API written in Rust.
Autogenerated wrapper for the Telegram Bot API written in Rust.

An Elegant Rust Client for Telegram Bot API crates.io • docs.rs Table of contents Introduction Key Features Installation Getting Started Documentation

A Telegram bot to watch animes

AmimeWatch A Telegram bot to watch animes. Re-written version of AmimeWatch in Rust. Preparing Configuration Create a file named config.toml and fill

An out-of-box ChatGPT bot for Telegram.
An out-of-box ChatGPT bot for Telegram.

TeleGPT API Docs | Releases | Twitter An out-of-box ChatGPT bot for Telegram. TeleGPT is a Telegram bot based on teloxide framework and async_openai.

An out-of-box ChatGPT bot for Telegram.
An out-of-box ChatGPT bot for Telegram.

TeleGPT API Docs | Releases | Twitter An out-of-box ChatGPT bot for Telegram. TeleGPT is a Telegram bot based on teloxide framework and async_openai.

A Telegram bot written in Rust.

Knight-Bot Table of Contents About Support chat Installation Setting up your environment Build manually Commands Commands on TODO list Find this bot A

A Telegram ChatGPT bot
A Telegram ChatGPT bot

A customizable Telegram bot with a ChatGPT (or GPT4, bring your own API key) backend. You can configure the bot’s context and prompt in template settings.

A simple telegram bot to get the tunnel info from ngrok.
A simple telegram bot to get the tunnel info from ngrok.

Telegram Ngrok Bot A simple bot to fetch the running tunnels from ngrok api. Prerequisits Ngrok agent should be running. Configuration Ngrok config ve

Releases(v0.2.1)
  • v0.2.1(Feb 9, 2023)

  • v0.2.0(Feb 9, 2023)

    Changes

    • Command /post now supported options, send /post help for advanced usages.
    • Now new posts will be synced with source by default, you can use /post +src or /post -src to force enable or disable the behavior respectively.
    • Cache client data to database for each domain.
    • Set content type as Markdown for status if the text is formatted.
    • Auto detect language for message content.
    • Send sync progress, improve results message.
    Source code(tar.gz)
    Source code(zip)
  • v0.1.0(Jan 23, 2023)

Owner
Sprite
C++, C, Rust. / Cross-platform desktop & Windows kernel driver developer, reverse engineer. / BTW, I use ...
Sprite
Telegram bot API client for Rust

Frankenstein Telegram bot API client for Rust. It's a complete wrapper for Telegram bot API and it's up to date with version 5.2 of the API. Frankenst

Ayrat Badykov 136 Jan 1, 2023
A simple Telegram bot that eats anonymous channel messages, written in Rust.

tgbot-nochanmsg By Asuna Right Control When creating your bot from botfather, it's not bad to disable privacy mode, because it needs to access the mes

h3a.moe 2 Aug 5, 2022
Synchronizes Southern California Mountaineers Association (SCMA) calendar events to Google Calendar.

SCMA Google Calendar Sync Synchronizes Southern California Mountaineers Association (SCMA) calendar events to Google Calendar. Credentials SCMA websit

Rob Donnelly 1 Aug 11, 2022
Telegram bot to fetch images from Terceira Ponte and Rodosol into your Telegram chat.

rodosol-telegram-bot Add this bot to your contacts list This bot is a quick scraper that gets the pictures from the rodosol "De olho na via" feature a

Armando Magalhães 1 Jan 9, 2022
Telegram bot help you to run Rust code in Telegram via Rust playground

RPG_BOT (Rust Playground Bot) Telegram bot help you to run Rust code in Telegram via Rust playground Bot interface The bot supports 3 straightforward

TheAwiteb 8 Dec 6, 2022
An ActivityPub home server written in Rust, implementing the Mastodon API.

Tafarn An ActivityPub home server written in Rust, implementing the Mastodon API. At present no web UI is provided, the API is the only way to interac

✨ Q (it/its) ✨ 12 Jan 22, 2023
hotsync conduit for Heffalump (palmOS mastodon client)

heffalump conduit and installer hotsync conduit for Heffalump (palmOS mastadon client) installation this crate exports two build targets: the heffalum

null 3 Sep 22, 2023
REC2 (Rusty External Command and Control) is client and server tool allowing auditor to execute command from VirusTotal and Mastodon APIs written in Rust. 🦀

Information: REC2 is an old personal project (early 2023) that I didn't continue development on. It's part of a list of projects that helped me to lea

Quentin Texier (g0h4n) 104 Oct 7, 2023
Generate "programmatic" lists in Mastodon

mastodon-list-bot Oh no, the evil algorithm is back! A small program to generate "programmatic" lists in Mastodon, as a way to experiment with differe

Markus Unterwaditzer 3 Oct 16, 2023
Small Rust program for sending messages to Telegram channels.

tg-send: a small Rust program for sending Telegram messages Send messages to a group/channel via the Bot API from the command line; it's super simple

null 2 Jul 10, 2023