Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/TelegramBot/Api
Browse files Browse the repository at this point in the history
  • Loading branch information
iGusev committed Sep 23, 2015
2 parents 7874369 + 1c98a16 commit cfe0bbf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@

An extended native php wrapper for [Telegram Bot API](https://core.telegram.org/bots/api) without requirements. Supports all methods and types of responses.

## Bots: An introduction for developers
>Bots are special Telegram accounts designed to handle messages automatically. Users can interact with bots by sending them command messages in private or group chats.
>You control your bots using HTTPS requests to [bot API](https://core.telegram.org/bots/api).
>The Bot API is an HTTP-based interface created for developers keen on building bots for Telegram.
To learn how to create and set up a bot, please consult [Introduction to Bots](https://core.telegram.org/bots) and [Bot FAQ](https://core.telegram.org/bots/faq).

## Install

Via Composer
Expand Down
2 changes: 1 addition & 1 deletion src/BotApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function call($method, array $data = null)
$response = self::jsonValidate($this->executeCurl($options), $this->returnArray);

if ($this->returnArray) {
if (!$response['ok']) {
if (!isset($response['ok'])) {
throw new Exception($response['description'], $response['error_code']);
}

Expand Down

0 comments on commit cfe0bbf

Please sign in to comment.