/telegram-translator

A bot that translates the words you choose during the chat in Telegram to the language you want.

Primary LanguagePHP

About Needy Telegram Translator

If you are constantly using telegram and want to translate words into different languages, this library is for you.

Quick Use

You can use it directly by adding it to the group on telegram without dealing with any code.


1. First you have to click on add people in your group

2. You have to search for the bot by username and add it to your group. - Needy Telegram Bot

3. Then you need to open your group settings.

4. Open the Administrators section.

5. You should add the needy telegram translator as admin.

6. Finish

Normal Use

Dependencies

  • PHP v7.4+
  • PostgreSQL v11.16+
  • Composer

Information

File Comment
.env contains environment variables.

Installation

# Downloading the repo.
git clone https://github.com/ibrahimsayar/telegram-translator.git
cd telegram-translator

# We install the necessary packages.
composer install

# We create the environment variable.
cp .env.example .env
php artisan key:generate

Warning Parameters you need to define after the .env file is created.

Parameter Comment
DB_CONNECTION Database connection type.
DB_HOST contains environment variables.
DB_PORT Database server address.
DB_DATABASE Database name.
DB_USERNAME Database username.
DB_PASSWORD Database password
TELEGRAM_API_KEY The id of the bot you created in Telegram.
TELEGRAM_CHAT_ID The id of the group you added the bot to.
# We start the application.
# http://127.0.0.1:8000/
php artisan serve

License The Telegram Translator is open-sourced software licensed under the MIT license.