Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.18 KB

README.MD

File metadata and controls

53 lines (40 loc) · 1.18 KB

Kyla Telegram

Kyla telegram is framework for bot in Telegram.

Installation

First time you must run this command in your terminal.

composer install

This code will install all requirement in this framework. After all done you must setting config framework in Config folder.

Config\Telegram.php

<?php
return [
    'hooks'=>'URL to root',
    'apikey'=>'Telegram API',
    'urltel'=>'https://api.telegram.org/bot',
    'username'=>'@botusername'
];

Hooks is for telegram send data to your server. You can get API key in Bot Father (@botfather) and create your bot. Bot Father will give you API Key.

Config\Database.php*

<?php
return [
    'host'=>'HOST',
    'user'=>'USERNAME',
    'pass'=>'PASSWORD',
    'dbname'=>'DATABASE'
];

You must configure this file for connection to database.

After all done, you must give telegram hooks for telegram give post data. Open it in your browser.

URL/setHooks

You will get messages from telegram server if your config is correct.

ERROR

If you want debug in this script, you can see error easily in Log folder.

License

Released under MIT License - see the License File for details.