Skip to content

Commit

Permalink
New field cache_time on AnswerCallbackQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
unreal4u committed Nov 21, 2016
1 parent 99ec6b1 commit 13fcd84
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Telegram/Methods/AnswerCallbackQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ class AnswerCallbackQuery extends TelegramMethods
*/
public $url = '';

/**
* Optional. The maximum amount of time in seconds that the result of the callback query may be cached client-side.
* Telegram apps will support caching starting in version 3.14. Defaults to 0.
* @var int
*/
public $cache_time = 0;

public static function bindToObject(TelegramRawData $data, LoggerInterface $logger): TelegramTypes
{
return new ResultBoolean($data->getResultBoolean(), $logger);
Expand Down

0 comments on commit 13fcd84

Please sign in to comment.