litegram / litegram
Litegram framework skeleton
2.3.0
2018-10-01 02:52 UTC
Requires
- litegram/framework: ^2.3
- robmorgan/phinx: ^0.10
This package is not auto-updated.
Last update: 2024-05-01 02:57:26 UTC
README
Slim-based framework for Telegram bots.
Reuqirements
- PHP 7.1+
- A database server compatible with Eloquent and Phinx
- Composer
Setup
Create the project somewhere in your server.
composer create-project litegram/litegram --remove-vcs
Fill in the .env file with your settings.
Run the database migrations.
./vendor/bin/phinx init $EDITOR phinx.yml ./vendor/bin/phinx migrate
Register the webhook (command coming soon; for now do it manually)
curl "https://api.telegram.org/bot<TOKEN>/setWebhook?url=example.com/bot/webhook/<TOKEN>"