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.
- use @BotFather to create a new bot and get a token
- get an API key from wordnik
- 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
- Visit the bot or send a message to @anotherwordbot
- Inline mode is supported.
- /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.
- tornado==6.3.3
- requests==2.31.0
- pyTelegramBotAPI==4.23.0
- cachetools==5.5.2