Skip to content
No description, website, or topics provided.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src
.gitignore
README.md
composer.json

README.md

telegram-bot-php

  • 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 .
// :)

?

You can’t perform that action at this time.