1 | <?php |
||
19 | class Update extends TelegramTypes |
||
20 | { |
||
21 | /** |
||
22 | * The update‘s unique identifier. Update identifiers start from a certain positive number and increase |
||
23 | * sequentially. This ID becomes especially handy if you’re using Webhooks, since it allows you to ignore repeated |
||
24 | * updates or to restore the correct update sequence, should they get out of order. |
||
25 | * @var int |
||
26 | */ |
||
27 | public $update_id = 0; |
||
28 | |||
29 | /** |
||
30 | * Optional. New incoming message of any kind — text, photo, sticker, etc. |
||
31 | * @var Message |
||
32 | */ |
||
33 | public $message = null; |
||
34 | |||
35 | /** |
||
36 | * Optional. New version of a message that is known to the bot and was edited |
||
37 | * @var Message |
||
38 | */ |
||
39 | public $edited_message = null; |
||
40 | |||
41 | /** |
||
42 | * Optional. New incoming inline query |
||
43 | * @var null |
||
44 | */ |
||
45 | public $inline_query = null; |
||
46 | |||
47 | /** |
||
48 | * Optional. The result of a inline query that was chosen by a user and sent to their chat partner |
||
49 | * @var null |
||
50 | */ |
||
51 | public $chosen_inline_result = null; |
||
52 | |||
53 | /** |
||
54 | * Optional. New incoming callback query |
||
55 | * @var CallbackQuery |
||
56 | */ |
||
57 | public $callback_query = null; |
||
58 | |||
59 | 3 | protected function mapSubObjects(string $key, array $data): TelegramTypes |
|
75 | } |
||
76 |