Skip to content

ayaka14732/telegram-translate-bot

Repository files navigation

Telegram Translation Bot

This repository contains the source code for the Telegram translation bot @suginatransbot

Development

Create a bot by talking to BotFather.

Register for the Baidu Translate API.

Run

Set the following environment variables in the .env file:

  • BOT_TOKEN
  • BAIDU_APP_ID
  • BAIDU_APP_KEY
  • FURIGANA_API_URL

Then run:

python main.py

Docker

git clone https://github.com/ayaka14732/telegram-translate-bot.git
cd telegram-translate-bot

Clone the Furigana Server repository:

git clone https://github.com/ayaka14732/furigana-server.git
cd furigana-server
git checkout f0dbf1001ec6a863cda08f50eb294d776f0ec8e0

When 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 -d

To update:

git pull
docker compose up -d --build

About

Telegram translation bot @suginatransbot

Topics

Resources

License

Stars

Watchers

Forks

Contributors