No description
|
||
---|---|---|
.env.example | ||
.gitignore | ||
compose.yaml | ||
db.py | ||
Dockerfile | ||
main.py | ||
Readme.md | ||
requirements.txt | ||
telegram.py | ||
utils.py |
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
- Install git, docker and docker compose
- Clone repository
git clone https://git.nekocwd.link/NekoCWD/Misskey2Telegram.git
- Create
db.json
touch ./db.json
- Make basic configuration (section below)
- Pick container UP
docker compose up -d3
Option 3: Python virtual env
- Install git and python with pip and venv modules
- Clone repository
git clone https://git.nekocwd.link/NekoCWD/Misskey2Telegram.git
- Create virtual environment:
python -m venv venv
- Activate environment
. venv/bin/activate
- Install requirements
pip install -r requirements.txt
- Change configuration (section below)
- 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:
- Move
.env.example
to.env
- Replace misskey creds with your creds
- Replace
https://meow.io
with your instance URL - Replace
MEOW
with token generated inSettings
->Service integration
->Generate access token
- Replace
- Replace telegram creds with your creds
- Create new bot in
@BotFather
and replaceMeow
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 replacem_e_o_w
with chat/channel ID
- Create new bot in