iyamk / codeigniter4-php-telegram-bot-starter
CodeIgniter4 PHP telegram bot starter app
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.4 || ^8.0
- codeigniter4/framework: ^4.0
- longman/telegram-bot: ^0.81.0
Requires (Dev)
- fakerphp/faker: ^1.9
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^9.1
README
This is a template straight from India to easily launch a Telegram bot with Codeigniter4
How to install it
Use composer:
composer create-project iyamk/codeigniter4-php-telegram-bot-starter bot
How to set it up
Open the .env file and change bot_api_key and bot_username there to your bot key and bot nickname Also change app.baseURL to link to your site
Now upload all files to your hosting
Then go to the site and connect the webhook using the address: [YOUR_SITE]/bot_set
You will see a message that everything is successful
Now test the bot, run it and enter Hi
Run via longpoll
Run longpool.sh from the project folder
This will run longpool with a frequency of 1 time per second without mysql
Details
This template is designed for secure deployment of an apache server; if you install on nginx, then configure it yourself
This package costs $10, but I am giving it to you for free, so use it and read Sri Ramana