This repository contains the source code for the Telegram translation bot @suginatransbot
Create a bot by talking to BotFather.
Register for the Baidu Translate API.
Set the following environment variables in the .env file:
BOT_TOKENBAIDU_APP_IDBAIDU_APP_KEYFURIGANA_API_URL
Then run:
python main.pygit clone https://github.com/ayaka14732/telegram-translate-bot.git
cd telegram-translate-botClone the Furigana Server repository:
git clone https://github.com/ayaka14732/furigana-server.git
cd furigana-server
git checkout f0dbf1001ec6a863cda08f50eb294d776f0ec8e0When using Docker Compose, you do not need to set FURIGANA_API_URL, as it is managed internally by the Compose network.
Start the services:
docker compose up -dTo update:
git pull
docker compose up -d --build