Skip to content

Commit 071e228

Browse files
committed
2.5
1 parent 179f667 commit 071e228

2 files changed

Lines changed: 9 additions & 95 deletions

File tree

README.md

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -9,63 +9,3 @@
99
<br>
1010
<a href="https://telegram.me/Clframework">Telegram Support Group</a> <b>Telegram Guruximiz</b>
1111
</div>
12-
13-
## Ornatish - composer orqali
14-
```
15-
composer require coderlast/clframework
16-
```
17-
Composer orqali yuklaganigizdan kegin
18-
19-
*config.php* - fayl yarating va uni ichiga 👇
20-
```
21-
$config = [
22-
"TOKEN"=>"bot tokeni",
23-
];
24-
```
25-
#### Kegin index.php fayl yaratamiz va uni ichiga 👇
26-
27-
```php
28-
<?php
29-
require "vendor/autoload.php";
30-
require "config.php";
31-
32-
//
33-
use App\CoderLast\Framework;
34-
use App\CoderLast\Plugins;
35-
//
36-
$bot = new Framework($config['TOKEN']);
37-
$plugins = new Plugins($config['TOKEN']);
38-
39-
40-
$home = [["Hello word!", "Hello word !"]];
41-
42-
$input = $bot->getInput();
43-
if(isset($input->message)){
44-
$message = $input->message;
45-
$chat_id = $message->chat->id;
46-
$text = $message->text;
47-
$userid = $message->from->id;
48-
$name = $message->from->frist_name." ".$message->from->last_name;
49-
}
50-
51-
switch ($text)
52-
{
53-
case "/start":
54-
$bot->sendMessage($userid,"CLFramework - $name",[
55-
'parse_mode'=>"markdown",
56-
'reply_markup'=>$plugins->Keyboards($home)
57-
]);
58-
break;
59-
case "Hello word!":
60-
$a = $bot->getMethod();
61-
$bot->sendMessage($chat_id, print_r($a,true));
62-
break;
63-
case "Hello word !":
64-
$a = $plugins->getMethod();
65-
$bot->sendMessage($chat_id, print_r($a,true));
66-
break;
67-
}
68-
```
69-
70-
71-
Copyright © 2020 CoderLast

docs/index.md

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,11 @@
1-
## Welcome to GitHub Pages
1+
<h1 align="center">CLFramework - CFL micro framework</h1>
22

3-
You can use the [editor on GitHub](https://github.com/Coderlast/CLFramework/edit/master/docs/index.md) to maintain and preview the content for your website in Markdown files.
3+
[![API](https://img.shields.io/badge/CLFramework-Mart%2007%2C%202021-36ade1.svg)](https://core.telegram.org/bots/api)
4+
![PHP](https://img.shields.io/badge/php-%3E%3D7.4-8892bf.svg)
5+
![CURL](https://img.shields.io/badge/cURL-required-green.svg)
46

5-
Whenever you commit to this repository, GitHub Pages will run [Jekyll](https://jekyllrb.com/) to rebuild the pages in your site, from the content in your Markdown files.
6-
7-
### Markdown
8-
9-
Markdown is a lightweight and easy-to-use syntax for styling your writing. It includes conventions for
10-
11-
```markdown
12-
Syntax highlighted code block
13-
14-
# Header 1
15-
## Header 2
16-
### Header 3
17-
18-
- Bulleted
19-
- List
20-
21-
1. Numbered
22-
2. List
23-
24-
**Bold** and _Italic_ and `Code` text
25-
26-
[Link](url) and ![Image](src)
27-
```
28-
29-
For more details see [GitHub Flavored Markdown](https://guides.github.com/features/mastering-markdown/).
30-
31-
### Jekyll Themes
32-
33-
Your Pages site will use the layout and styles from the Jekyll theme you have selected in your [repository settings](https://github.com/Coderlast/CLFramework/settings/pages). The name of this theme is saved in the Jekyll `_config.yml` configuration file.
34-
35-
### Support or Contact
36-
37-
Having trouble with Pages? Check out our [documentation](https://docs.github.com/categories/github-pages-basics/) or [contact support](https://support.github.com/contact) and we’ll help you sort it out.
7+
<div align="center">
8+
<a href="https://core.telegram.org/bots/api">Telegram Bot API</a> <b>Foydalanish uchun yaratilgan</b>
9+
<br>
10+
<a href="https://telegram.me/Clframework">Telegram Support Group</a> <b>Telegram Guruximiz</b>
11+
</div>

0 commit comments

Comments
 (0)