Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ayaka14732/telegram-translate-bot

Telegram translation bot @suginatransbot
https://github.com/ayaka14732/telegram-translate-bot

telegram telegram-bot translation

Last synced: 24 days ago
JSON representation

Telegram translation bot @suginatransbot

Awesome Lists containing this project

README

        

# telegram-translate

Telegram translation bot [@suginatransbot](https://t.me/suginatransbot)

## Develop

Create a bot by talking to [BotFather](https://t.me/botfather).

Register for [Baidu translate API](https://fanyi-api.baidu.com/).

## Run

Set the following environment variables in `.env`:

- `BOT_TOKEN`
- `BAIDU_APP_ID`
- `BAIDU_APP_KEY`

Run:

```sh
python main.py
```

Alternatively, pass the environment variables to Docker in the command:

```sh
docker run -d \
-e BOT_TOKEN= \
-e BAIDU_APP_ID= \
-e BAIDU_APP_KEY= \
telegram-translate
```