Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 1.51 KB

README.md

File metadata and controls

56 lines (42 loc) · 1.51 KB

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 bit

  • 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 AWS CLI
  • set the telegram message webhool using set_webhook.sh

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.
  • /today: Gets the word of the day.

Usage

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.
  • /today: Gets the word of the day.

Screenshots

alt tag

Requirements

  • tornado==6.3.3
  • requests==2.31.0
  • pyTelegramBotAPI==4.23.0
  • cachetools==5.5.2
  • aws_lambda_powertools==3.6.0