Coder Social home page Coder Social logo

andreyklychnikov / language-telegram-bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 45 KB

This is a Telegram bot that can find and send YouTube videos based on English words. The bot is built using Python and the aiogram library.

License: Other

Python 85.57% Dockerfile 8.36% Jinja 6.07%
aiogram language language-learning telegram

language-telegram-bot's Introduction

Telegram Bot

This is a Telegram bot that can find and send YouTube videos based on English words. The bot is built using Python and the aiogram library.

Requirements

  • Python 3.7+
  • aiogram and aiohttp Python packages
  • Telegram Bot API token
  • A running instance of the Videos API repo

Installation

  1. Clone this repository:
git clone https://github.com/AndreyKlychnikov/language-telegram-bot.git
  1. Install the required packages:
poetry install
  1. Copy .env.template file as .env and set the following environment variables:
  • VIDEOS_API_HOST: the URL of the videos API
  • TELEGRAM_TOKEN: your Telegram Bot API token
  1. Run the bot:
poetry shell
python main.py

Usage

To use the bot, simply send an English word to it and it will find a related YouTube video and send it back to you. You can also use the /start command to get a brief introduction to the bot.

Note that the bot requires a running instance of the videos API, which should be accessible at the URL specified in the VIDEOS_API_HOST environment variable.

Contributing

If you find any bugs or issues with the bot, or if you have suggestions for new features or improvements, please feel free to open an issue or submit a pull request. All contributions are welcome!

License

This bot is released under the CC BY-NC license. See the LICENSE file for more information.

language-telegram-bot's People

Contributors

andreyklychnikov avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.