Skip to content

KylaAI/Kyla-Telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages