bulatik

Проекты
Вернуться к списку проектов

telegram-tbot

📄 PHP ⭐ 0 🍴 0

## tbot - MB> CLI CB8;8B0 4;O A>740=8O A:5;5B0 Telegram >B0

![img](/example.png)

0G0;>

1. !:0G09B5 [PHP](https://www.php.net/) 7.6+, 5A;8 5IQ =5 A:0G0;8

2. #AB0=>28B5 tbot: git clone https://github.com/bulatik205/telegram-tbot

><0=4K

php tbot - 8A?>;L7>20BL tbot

php tbot make - A>740BL A:5;5B 1>B0

0?>;=8BL

> >A;5 php tbot make >B ?>?@>A8B 20A 225AB8 Telegram Bot API Token, App name, Telegram-account admin link

> Telegram Bot API Token - B>:5= =C65= 4;O ?>4:;NG5=8O : Telegram Bot API ([1C45B ;560BL 2 /config/](handler/bot/config.php))

> App name - ?@>AB> =0720=85 1>B0, :>B>@>5 1C45B 2K248BLAO 2 AB0@B5 ([1C45B ;560BL 2 /config/](handler/bot/config.php))

> Telegram-account admin link - ;N10O AAK;:0. >6=> 345 B> 2K2>48BL. > C<>;G0=8N =8345 =5 2K2>48BLAO ([1C45B ;560BL 2 /config/](handler/bot/config.php))

>A;5 70?>;=5=8O

> >A;5 70?>;=5=8O, 1>B A>740AB ?0?:C /bot/

> -BC ?0?:C <>6=> ?>;=>ABLN ?5@5=5AB8 =0 E>AB8=3. >A;5 MB>3> =C6=> 709B8 =0 webhook.php. 0?@8<5@, 20H A09B - https://example.com/ 8 2K @07<5AB8;8 1>B0 B0:: https://example.com/bot/, B>340 20< =094> 709B8 ?> AAK;:5 https://example.com/bot/webhook.php. !:@8?B 02B>@87C5B ?CBL : 1>BC https://example.com/bot/index.php 8 20H Telegram Bot API Token 2 A8AB5<5 Telegram ([METHOD setWebhook/](https://core.telegram.org/bots/api#setwebhook))