- Notifications
You must be signed in to change notification settings - Fork0
teknologi-umum/telephant
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Telegram bot in php
- Installation
git clone https://github.com/teknologi-umum/telephant
- Create telegram bot and onfig
.env
. Take reference from.env.example
DB_HOST=127.0.0.1DB_DATABASE=database_nameDB_USERNAME=usernameDB_PASSWORD=passwordTELEGRAM_BOT_API_KEY=my_telegram:api_keyTELEGRAM_BOT_USERNAME=my_telegram_username_botTELEGRAM_BOT_WEBHOOK_URL=https://my.telegram.callback/hook
Make sure the root of thetelephant
app is located inhttps://my.telegram.callback
- Install
composer
dependencies in project root directory
composer install
- Run python build script with filename
./build.py bot.zip
- Call the init http endpoint URL in your in your browser (or GET request):
https://my.telegram.callback/init
Congrats. Your telegram bot has been set up. Enjoy!
Seehttps://github.com/teknologi-umum/telephant/blob/main/bot-command-list.txt to tellBotFather
in telegram this bot's commands.