litegram/litegram

Litegram framework skeleton

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:project

2.3.0 2018-10-01 02:52 UTC

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

  1. Create the project somewhere in your server.

     composer create-project litegram/litegram --remove-vcs
    
  2. Fill in the .env file with your settings.

  3. Run the database migrations.

    ./vendor/bin/phinx init
    $EDITOR phinx.yml
    ./vendor/bin/phinx migrate
    
  4. 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>"