8000 GitHub - suyashb95/wordbot: A Telegram dictionary bot written in Python
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

suyashb95/wordbot

Repository files navigation

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 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

Usage

  • Visit the bot 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.

alt tag

Requirements

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

About

A Telegram dictionary bot written in Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0