1 | <?php |
||
30 | class GetUpdates extends TelegramMethods |
||
31 | { |
||
32 | /** |
||
33 | * Identifier of the first update to be returned. Must be greater by one than the highest among the identifiers of |
||
34 | * previously received updates. By default, updates starting with the earliest unconfirmed update are returned. An |
||
35 | * update is considered confirmed as soon as getUpdates is called with an offset higher than its update_id. |
||
36 | * @var int |
||
37 | */ |
||
38 | public $offset = 0; |
||
39 | |||
40 | /** |
||
41 | * Limits the number of updates to be retrieved. Values between 1—100 are accepted. Defaults to 100 |
||
42 | * @var int |
||
43 | */ |
||
44 | public $limit = 100; |
||
45 | |||
46 | /** |
||
47 | * Timeout in seconds for long polling. Defaults to 0, i.e. usual short polling |
||
48 | * @var int |
||
49 | */ |
||
50 | public $timeout = 0; |
||
51 | |||
52 | /** |
||
53 | * This call will return an array with updates, so call up a custom type to do this |
||
54 | * |
||
55 | * @param array $data |
||
56 | * @param LoggerInterface $logger |
||
57 | * @return TelegramTypes |
||
58 | */ |
||
59 | 2 | public static function bindToObject(TelegramRawData $data, LoggerInterface $logger): TelegramTypes |
|
63 | |||
64 | 3 | public function getMandatoryFields(): array |
|
68 | } |
||
69 |