Skip to content

oborshch/telegram-bot-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Telegram Bot on PHP


English

For the script to work, you need to install this unofficial library: telegram-bot-sdk, Library documentation

Install the library using the composer command:

composer require irazasyed/telegram-bot-sdk ^2.0

Register your bot in BotFather and insert the token in settings.php:

$api = 'Your-Token';

Link to activate WebHooks:

https://api.telegram.org/botBOT-TOKEN/setWebHook?url=https://website-address/path-to-bot-script


Links:

Video about creating a bot: Video

My website : CoderLog Projects

My channel : YouTube Channel


Russian

Простой Telegram Bot на PHP

Чтобы скрипт работал, вам необходимо установить эту неофициальную библиотеку: telegram-bot-sdk, Документация библиотеки

Install the library using the composer command:

composer require irazasyed/telegram-bot-sdk ^2.0

Зарегистрируйте своего бота в BotFather и вставьте токен в settings.php:

$api = 'Your-Token';

Ссылка для активации WebHooks:

https://api.telegram.org/botТОКЕН_БОТА/setWebHook?url=https://адрес_сайта/путь_к_файлу_бота


Ссылки:

Видео написания бота: Video

Мой сайт : CoderLog Projects

Мой YouTube Канал : YouTube Channel