No description
Find a file
Vasiliy Doylov 2efa63b1fe
Add docker compose variant
Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
2025-08-31 22:18:06 +03:00
.env.example Initial functionality implemented 2025-08-31 20:38:55 +03:00
.gitignore Initial functionality implemented 2025-08-31 20:38:55 +03:00
compose.yaml Add docker compose variant 2025-08-31 22:18:06 +03:00
db.py Initial functionality implemented 2025-08-31 20:38:55 +03:00
Dockerfile Add docker compose variant 2025-08-31 22:18:06 +03:00
main.py Initial functionality implemented 2025-08-31 20:38:55 +03:00
Readme.md Add docker compose variant 2025-08-31 22:18:06 +03:00
requirements.txt Add Readme 2025-08-31 21:43:55 +03:00
telegram.py Initial functionality implemented 2025-08-31 20:38:55 +03:00
utils.py Initial functionality implemented 2025-08-31 20:38:55 +03:00

Misskey to Telegram bridge

Key features

  • Fediverse handle converting (@nekocwd@nekocwd.link -> nekocwd)
  • Photo/Video/File uploading
  • Markdown formating
  • Source link to the post bottom
  • Auto-fetching new notes

Installation

Option 1: Docker

  1. Install git, docker and docker compose
  2. Clone repository
git clone https://git.nekocwd.link/NekoCWD/Misskey2Telegram.git
  1. Create db.json
touch ./db.json
  1. Make basic configuration (section below)
  2. Pick container UP
docker compose up -d3

Option 3: Python virtual env

  1. Install git and python with pip and venv modules
  2. Clone repository
git clone https://git.nekocwd.link/NekoCWD/Misskey2Telegram.git
  1. Create virtual environment:
python -m venv venv
  1. Activate environment
. venv/bin/activate
  1. Install requirements
pip install -r requirements.txt
  1. Change configuration (section below)
  2. Run main.py
python3 main.py

Configuration

Configuration - just a bunch of env variables.

You can set them manually or auto-magically by .env file:

  1. Move .env.example to .env
  2. Replace misskey creds with your creds
    • Replace https://meow.io with your instance URL
    • Replace MEOW with token generated in Settings -> Service integration -> Generate access token
  3. Replace telegram creds with your creds
    • Create new bot in @BotFather and replace Meow with bot token
    • Add this bot to your chat/channel and make them admin
    • Forward any message from target chat/channel to bot like @my_id_bot and replace m_e_o_w with chat/channel ID