Commit d756b2d0 authored by LONGMAN's avatar LONGMAN

Fixes

parent 80ce3980
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
[![Join the chat at https://gitter.im/akalongman/php-telegram-bot](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/akalongman/php-telegram-bot?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Join the chat at https://gitter.im/akalongman/php-telegram-bot](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/akalongman/php-telegram-bot?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://travis-ci.org/akalongman/php-telegram-bot.svg?branch=master)](https://travis-ci.org/akalongman/kautilities) [![Build Status](https://travis-ci.org/akalongman/php-telegram-bot.svg?branch=master)](https://travis-ci.org/akalongman/kautilities)
[![Latest Stable Version](https://img.shields.io/packagist/v/Longman/telegram-bot.svg)](https://packagist.org/packages/longman/php-telegram-bot) [![Latest Stable Version](https://img.shields.io/packagist/v/Longman/telegram-bot.svg)](https://packagist.org/packages/longman/telegram-bot)
[![Total Downloads](https://img.shields.io/packagist/dt/Longman/telegram-bot.svg)](https://packagist.org/packages/longman/php-telegram-bot) [![Total Downloads](https://img.shields.io/packagist/dt/Longman/telegram-bot.svg)](https://packagist.org/packages/longman/telegram-bot)
[![Downloads Month](https://img.shields.io/packagist/dm/Longman/telegram-bot.svg)](https://packagist.org/packages/longman/php-telegram-bot) [![Downloads Month](https://img.shields.io/packagist/dm/Longman/telegram-bot.svg)](https://packagist.org/packages/longman/telegram-bot)
[![License](https://img.shields.io/packagist/l/Longman/telegram-bot.svg)](https://packagist.org/packages/stichoza/longman/php-telegram-bot) [![License](https://img.shields.io/packagist/l/Longman/telegram-bot.svg)](https://packagist.org/packages/longman/telegram-bot)
A Telegram Bot based on the official [Telegram Bot API](https://core.telegram.org/bots/api) A Telegram Bot based on the official [Telegram Bot API](https://core.telegram.org/bots/api)
...@@ -76,7 +76,7 @@ Create composer.json file: ...@@ -76,7 +76,7 @@ Create composer.json file:
"name": "yourproject/yourproject", "name": "yourproject/yourproject",
"type": "project", "type": "project",
"require": { "require": {
"php": ">=5.3.0", "php": ">=5.4.0",
"longman/telegram-bot": "*" "longman/telegram-bot": "*"
} }
} }
...@@ -100,14 +100,14 @@ Create set.php and put: ...@@ -100,14 +100,14 @@ Create set.php and put:
```php ```php
<?php <?php
$loader = require \_\_DIR\_\_.'/vendor/autoload.php'; $loader = require __DIR__.'/vendor/autoload.php';
$API\_KEY = 'your\_bot\_api\_key'; $API_KEY = 'your_bot_api_key';
$BOT_NAME = 'namebot'; $BOT_NAME = 'namebot';
try { try {
// create Telegram API object // create Telegram API object
$telegram = new Longman\TelegramBot\Telegram($API\_KEY, $BOT\_NAME); $telegram = new Longman\TelegramBot\Telegram($API_KEY, $BOT_NAME);
// set webhook // set webhook
echo $telegram->setWebHook('https://yourdomain/yourpath_to_hook.php'); echo $telegram->setWebHook('https://yourdomain/yourpath_to_hook.php');
...@@ -123,9 +123,9 @@ After create hook.php and put: ...@@ -123,9 +123,9 @@ After create hook.php and put:
```php ```php
<?php <?php
$loader = require \_\_DIR\_\_.'/vendor/autoload.php'; $loader = require __DIR__.'/vendor/autoload.php';
$API\_KEY = 'your\_bot\_api\_key'; $API_KEY = 'your_bot_api_key';
$BOT_NAME = 'namebot'; $BOT_NAME = 'namebot';
try { try {
......
{ {
"name": "longman/telegram-bot", "name": "longman/telegram-bot",
"type": "library", "type": "library",
"description": "PHP telegram bot", "description": "PHP telegram bot",
"keywords": ["telegram", "bot", "api"], "keywords": ["telegram", "bot", "api"],
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/akalongman/php-telegram-bot", "homepage": "https://github.com/akalongman/php-telegram-bot",
"support": { "support": {
"issues": "https://github.com/akalongman/php-telegram-bot/issues", "issues": "https://github.com/akalongman/php-telegram-bot/issues",
"source": "https://github.com/akalongman/php-telegram-bot" "source": "https://github.com/akalongman/php-telegram-bot"
}, },
"authors": [ "authors": [
{ {
"name": "Avtandil Kikabidze aka LONGMAN", "name": "Avtandil Kikabidze aka LONGMAN",
"email": "akalongman@gmail.com", "email": "akalongman@gmail.com",
"homepage": "http://longman.ge", "homepage": "http://longman.ge",
"role": "Developer" "role": "Developer"
} }
], ],
"require": { "require": {
"php": ">=5.4.0", "php": ">=5.4.0",
"ext-pdo": "*", "ext-pdo": "*",
"hoa/math": "~0.0" "ext-curl": "*",
}, "hoa/math": "~0.0"
"autoload": { },
"psr-4": { "autoload": {
"Longman\\TelegramBot\\": "src/" "psr-4": {
} "Longman\\TelegramBot\\": "src/"
}, }
"autoload-dev": { },
"psr-4": { "autoload-dev": {
"Tests\\": "tests/" "psr-4": {
} "Tests\\": "tests/"
}, }
"minimum-stability": "dev", },
"require-dev": { "minimum-stability": "dev",
"phpunit/phpunit": "4.1.*", "require-dev": {
"phpspec/phpspec": "~2.1", "phpunit/phpunit": "4.1.*",
"squizlabs/php_codesniffer": "2.3.*" "phpspec/phpspec": "~2.1",
} "squizlabs/php_codesniffer": "2.3.*"
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment