Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ayaka14732/telegram-translate-bot
- Owner: ayaka14732
- License: cc0-1.0
- Created: 2020-08-02T11:40:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-15T13:57:19.000Z (over 1 year ago)
- Last Synced: 2024-05-02T06:06:40.574Z (6 months ago)
- Topics: telegram, telegram-bot, translation
- Language: Python
- Homepage: https://t.me/suginatransbot
- Size: 294 KB
- Stars: 10
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```