Skip to content

Commit

Permalink
Add getWebhookUpdates() doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
irazasyed committed Jul 2, 2015
1 parent ab12cc8 commit eda5f27
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,15 @@ To remove webhook (if it was set before).
$response = $telegram->removeWebhook();
```

#### Get Updates from Webhook

When you set your webhook URL, Telegram will start sending POST requests whenever there's any incoming message/update with your bot.
Below function will help you retrieve the updates. Returns an `Update` object.

```php
$updates = $telegram->getWebhookUpdates();
```

### Use Custom Keyboard

#### ReplyKeyboardMarkup
Expand Down

0 comments on commit eda5f27

Please sign in to comment.