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; |
||
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; |
||
40 | |||
41 | /** |
||
42 | * Optional. New incoming channel post of any kind — text, photo, sticker, etc. |
||
43 | * @var Message |
||
44 | */ |
||
45 | public $channel_post; |
||
46 | |||
47 | /** |
||
48 | * Optional. New version of a channel post that is known to the bot and was edited |
||
49 | * @var Message |
||
50 | */ |
||
51 | public $edited_channel_post; |
||
52 | |||
53 | /** |
||
54 | * Optional. New incoming inline query |
||
55 | * @var Query |
||
56 | */ |
||
57 | public $inline_query; |
||
58 | |||
59 | /** |
||
60 | * Optional. The result of a inline query that was chosen by a user and sent to their chat partner |
||
61 | * @var ChosenResult |
||
62 | */ |
||
63 | public $chosen_inline_result; |
||
64 | |||
65 | /** |
||
66 | * Optional. New incoming callback query |
||
67 | * @var CallbackQuery |
||
68 | */ |
||
69 | public $callback_query; |
||
70 | |||
71 | /** |
||
72 | * Optional. New incoming shipping query. Only for invoices with flexible price |
||
73 | * @var ShippingQuery |
||
74 | */ |
||
75 | public $shipping_query; |
||
76 | |||
77 | /** |
||
78 | * Optional. New incoming pre-checkout query. Contains full information about checkout |
||
79 | * @var PreCheckoutQuery |
||
80 | */ |
||
81 | public $pre_checkout_query; |
||
82 | |||
83 | /** |
||
84 | * Optional. New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot |
||
85 | * @var Poll |
||
86 | */ |
||
87 | public $poll; |
||
88 | |||
89 | /** |
||
90 | * Optional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were |
||
91 | * sent by the bot itself. |
||
92 | * |
||
93 | * @var PollAnswer |
||
94 | */ |
||
95 | public $poll_answer; |
||
96 | |||
97 | 7 | protected function mapSubObjects(string $key, array $data): TelegramTypes |
|
123 | } |
||
124 |