reloadlife / php-telegram-bot
PHP Telegram Bot.
dev-master
2019-11-11 19:37 UTC
Requires
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- ext-xml: *
- guzzlehttp/guzzle: dev-master
This package is auto-updated.
Last update: 2025-04-12 07:16:19 UTC
README
- just require everyfile in it (require all files in '/src' also '/src/types')
use
composer require reloadlife/php-telegram-bot
or in composer.json just:
{ "require" : { "reloadlife/php-telegram-bot": "dev-master" } }
then
composer install
and then use
require 'vendor/autoload.php'
some examples
<?php namespace TEST; require 'vendor/autoload.php'; use TelegramBotPHP\getUpdate; use TelegramBotPHP\methods; $telegram = new methods ( 'TOKEN' ); $updates = new getUpdate (); if ( $updates -> text ) { $telegram -> sendMessages ( [ 'chat_id' => $updates -> from -> id, 'text' => $updates -> text, ] ); } // will returns what ever it receives as text message . // :)
?
- if you have any question about it you can contact me right there Telegram Email: me@reloadlife.me
- if you liked it star project to support me and if you like me Get me A cup of coffee
- enjoy
- :)