Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fauzaanu/radheefbot
A telegram bot that uses the radheef.com api and google translate to provide dhivehi translation and meaning
https://github.com/fauzaanu/radheefbot
dhivehi radheef telegram-bot
Last synced: 21 days ago
JSON representation
A telegram bot that uses the radheef.com api and google translate to provide dhivehi translation and meaning
- Host: GitHub
- URL: https://github.com/fauzaanu/radheefbot
- Owner: fauzaanu
- Created: 2022-10-28T23:13:11.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-22T09:57:57.000Z (over 1 year ago)
- Last Synced: 2024-03-19T01:01:42.438Z (9 months ago)
- Topics: dhivehi, radheef, telegram-bot
- Language: Python
- Homepage: https://t.me/Radheefbot
- Size: 241 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RADHEEFBOT
[![Telegram Bot](https://github.com/fauzaanu/radheefbot/actions/workflows/telegram.yml/badge.svg)](https://github.com/fauzaanu/radheefbot/actions/workflows/telegram.yml)
A telegram bot that uses the radheef.com api and google translate
### INLINE SUPPORTED
You can type @radheefbot on any chat and get a result.
### HOW IT WORKS
**One Word**
- Goes through google translate to ensure its dhivehi and hits radheef API
- If radheef API has no results the same word is returned**More than one word**
- Goes through google translate
- returns the google translate responseGoogle translate uses my fork of the unofficial py-googletrans package
The official repo still needs to accept my pull that includes dhivehi along with the update of httpx packagethe requirements.txt includes this repo so you can clone and run
```
pip install -r requirements.txt
```you need a .env file with
```
TOKEN="telegram_api_key_from_bot_father"
```### USAGE
You can simply add the run.bat to windows task shedulerRunning on any other system is pretty straightforward the bot is the inline_bot.py file
```
python inline_bot.py
```It is highly recommended to create a virtual environment when running python
### TRY IT LIVE
The bot is live on [https://t.me/Radheefbot](https://t.me/Radheefbot)I have this hosted on my personal PC and due to this you may see some downtime.
If someone is interested in hosting this for a long period (More than 1 Year), under the @radheefbot handle, Please contact me on telegram
(Feel free to self host on your own handles!)