About Needy Telegram Translator
If you are constantly using telegram and want to translate words into different languages, this library is for you.
I like telegram API. When i have free time i like to create something with telegram. Since I spend a lot of time on Telegram, it occurred to me to create this translation.
Now I will tell you how you can run this project.
First, we clone the repo.
git clone https://github.com/ibrahimsayar/telegram-translator.git
We choose the project.
cd telegram-translator
We install the necessary packages via composer.
composer install
We create the environment variable.
cp .env.example .env
php artisan key:generate
We define our database information in our new .env file.
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=telegram
DB_USERNAME=root
DB_PASSWORD=123
Finally, we define the telegram bot api key and the id of our group.
TELEGRAM_API_KEY=bot4509834967:AAFTfrkgW234fDGevctCswe345312casd
TELEGRAM_CHAT_ID=760983035
Information
If you place your bot api key at the address below and go, you can see the id of your group.
https://api.telegram.org/bot4509834967:AAFTfrkgW234fDGevctCswe345312casd/getUpdates
After making the definitions, we can now run our library.
php artisan serve
Thanks for reading my post. Happy coding.
Links
Repository: https://github.com/ibrahimsayar/telegram-translator
Telegram API documents: https://core.telegram.org/bots