https://github.com/suyashb95/wordbot
A Telegram dictionary bot written in Python
https://github.com/suyashb95/wordbot
bot telegram telegram-bot wordnik
Last synced: 11 months ago
JSON representation
A Telegram dictionary bot written in Python
- Host: GitHub
- URL: https://github.com/suyashb95/wordbot
- Owner: suyashb95
- Created: 2015-10-06T20:25:46.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-05-05T18:19:29.000Z (about 1 year ago)
- Last Synced: 2025-05-22T23:21:51.321Z (about 1 year ago)
- Topics: bot, telegram, telegram-bot, wordnik
- Language: Python
- Homepage:
- Size: 1.13 MB
- Stars: 52
- Watchers: 2
- Forks: 18
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Telegram English Dictionary Bot
This is a Telegram bot which fetches word definitions, synonyms, antonyms, usage examples and the word of the day from the Internet.
It uses Wordnik's API to fetch data.
#### Cloning/Deploying a version of this bot
* use [@BotFather](https://telegram.me/BotFather) to create a new bot and get a token
* get an API key from [wordnik](https://www.wordnik.com/)
* create `config.py` from the example file with the API and bot token
* deploy the lambda function using GCloud console
* set the telegram message webhool using `set_webhook.sh` or by calling the `{google_cloud_app_url}/setWebhook` API
#### Usage
* Visit [the bot](https://telegram.me/anotherwordbot) or send a message to @anotherwordbot
* Inline mode is supported.
#### Allowed commands
* /define [word] : Gets the word's meaning.
* /synonyms [word] : Gets similar words.
* /antonyms [word] : Gets opposites.
* /use [word] : Gets usage examples.
* /all [word] : Gets all of the above.
* /help : Send this message again.

#### Requirements
* tornado==6.3.3
* requests==2.31.0
* pyTelegramBotAPI==4.23.0
* cachetools==5.5.2