1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace TelegramBot\Api\Types; |
4
|
|
|
|
5
|
|
|
use TelegramBot\Api\BaseType; |
6
|
|
|
use TelegramBot\Api\InvalidArgumentException; |
7
|
|
|
use TelegramBot\Api\TypeInterface; |
8
|
|
|
use TelegramBot\Api\Types\Inline\InlineKeyboardMarkup; |
9
|
|
|
use TelegramBot\Api\Types\Payments\Invoice; |
10
|
|
|
use TelegramBot\Api\Types\Payments\SuccessfulPayment; |
11
|
|
|
|
12
|
|
|
class Message extends BaseType implements TypeInterface |
13
|
|
|
{ |
14
|
|
|
/** |
15
|
|
|
* {@inheritdoc} |
16
|
|
|
* |
17
|
|
|
* @var array |
18
|
|
|
*/ |
19
|
|
|
protected static $requiredParams = ['message_id', 'date', 'chat']; |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* {@inheritdoc} |
23
|
|
|
* |
24
|
|
|
* @var array |
25
|
|
|
*/ |
26
|
|
|
protected static $map = [ |
27
|
|
|
'message_id' => true, |
28
|
|
|
'from' => User::class, |
29
|
|
|
'date' => true, |
30
|
|
|
'chat' => Chat::class, |
31
|
|
|
'forward_from' => User::class, |
32
|
|
|
'forward_from_chat' => Chat::class, |
33
|
|
|
'forward_from_message_id' => true, |
34
|
|
|
'forward_date' => true, |
35
|
|
|
'forward_signature' => true, |
36
|
|
|
'forward_sender_name' => true, |
37
|
|
|
'reply_to_message' => Message::class, |
38
|
|
|
'via_bot' => User::class, |
39
|
|
|
'edit_date' => true, |
40
|
|
|
'media_group_id' => true, |
41
|
|
|
'author_signature' => true, |
42
|
|
|
'text' => true, |
43
|
|
|
'entities' => ArrayOfMessageEntity::class, |
44
|
|
|
'caption_entities' => ArrayOfMessageEntity::class, |
45
|
|
|
'audio' => Audio::class, |
46
|
|
|
'document' => Document::class, |
47
|
|
|
'animation' => Animation::class, |
48
|
|
|
'photo' => ArrayOfPhotoSize::class, |
49
|
|
|
'sticker' => Sticker::class, |
50
|
|
|
'video' => Video::class, |
51
|
|
|
'video_note' => VideoNote::class, |
52
|
|
|
'voice' => Voice::class, |
53
|
|
|
'caption' => true, |
54
|
|
|
'contact' => Contact::class, |
55
|
|
|
'location' => Location::class, |
56
|
|
|
'venue' => Venue::class, |
57
|
|
|
'poll' => Poll::class, |
58
|
|
|
'dice' => Dice::class, |
59
|
|
|
'new_chat_members' => ArrayOfUser::class, |
60
|
|
|
'left_chat_member' => User::class, |
61
|
|
|
'new_chat_title' => true, |
62
|
|
|
'new_chat_photo' => ArrayOfPhotoSize::class, |
63
|
|
|
'delete_chat_photo' => true, |
64
|
|
|
'group_chat_created' => true, |
65
|
|
|
'supergroup_chat_created' => true, |
66
|
|
|
'channel_chat_created' => true, |
67
|
|
|
'migrate_to_chat_id' => true, |
68
|
|
|
'migrate_from_chat_id' => true, |
69
|
|
|
'pinned_message' => Message::class, |
70
|
|
|
'invoice' => Invoice::class, |
71
|
|
|
'successful_payment' => SuccessfulPayment::class, |
72
|
|
|
'connected_website' => true, |
73
|
|
|
'forum_topic_created' => ForumTopicCreated::class, |
74
|
|
|
'forum_topic_closed' => ForumTopicClosed::class, |
75
|
|
|
'forum_topic_reopened' => ForumTopicReopened::class, |
76
|
|
|
'is_topic_message' => true, |
77
|
|
|
'message_thread_id' => true, |
78
|
|
|
'web_app_data' => WebAppData::class, |
79
|
|
|
'reply_markup' => InlineKeyboardMarkup::class, |
80
|
|
|
]; |
81
|
|
|
|
82
|
|
|
/** |
83
|
|
|
* Unique message identifier |
84
|
|
|
* |
85
|
|
|
* @var int|float |
86
|
|
|
*/ |
87
|
|
|
protected $messageId; |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* Optional. Sender name. Can be empty for messages sent to channels |
91
|
|
|
* |
92
|
|
|
* @var \TelegramBot\Api\Types\User|null |
93
|
|
|
*/ |
94
|
|
|
protected $from; |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* Date the message was sent in Unix time |
98
|
|
|
* |
99
|
|
|
* @var int |
100
|
|
|
*/ |
101
|
|
|
protected $date; |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* Conversation the message belongs to — user in case of a private message, GroupChat in case of a group |
105
|
|
|
* |
106
|
|
|
* @var \TelegramBot\Api\Types\Chat |
107
|
|
|
*/ |
108
|
|
|
protected $chat; |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* Optional. For forwarded messages, sender of the original message |
112
|
|
|
* |
113
|
|
|
* @var \TelegramBot\Api\Types\User|null |
114
|
|
|
*/ |
115
|
|
|
protected $forwardFrom; |
116
|
|
|
|
117
|
|
|
/** |
118
|
|
|
* Optional. For messages forwarded from channels, information about |
119
|
|
|
* the original channel |
120
|
|
|
* |
121
|
|
|
* @var \TelegramBot\Api\Types\Chat|null |
122
|
|
|
*/ |
123
|
|
|
protected $forwardFromChat; |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* Optional. For messages forwarded from channels, identifier of |
127
|
|
|
* the original message in the channel |
128
|
|
|
* |
129
|
|
|
* @var int|null |
130
|
|
|
*/ |
131
|
|
|
protected $forwardFromMessageId; |
132
|
|
|
|
133
|
|
|
/** |
134
|
|
|
* Optional. For messages forwarded from channels, signature of the post author if present |
135
|
|
|
* |
136
|
|
|
* @var string|null |
137
|
|
|
*/ |
138
|
|
|
protected $forwardSignature; |
139
|
|
|
|
140
|
|
|
/** |
141
|
|
|
* Optional. Sender's name for messages forwarded from users who disallow adding a link to their account |
142
|
|
|
* in forwarded messages |
143
|
|
|
* |
144
|
|
|
* @var string|null |
145
|
|
|
*/ |
146
|
|
|
protected $forwardSenderName; |
147
|
|
|
|
148
|
|
|
/** |
149
|
|
|
* Optional. For forwarded messages, date the original message was sent in Unix time |
150
|
|
|
* |
151
|
|
|
* @var int|null |
152
|
|
|
*/ |
153
|
|
|
protected $forwardDate; |
154
|
|
|
|
155
|
|
|
/** |
156
|
|
|
* Optional. For replies, the original message. Note that the Message object in this field will not contain further |
157
|
|
|
* reply_to_message fields even if it itself is a reply. |
158
|
|
|
* |
159
|
|
|
* @var \TelegramBot\Api\Types\Message|null |
160
|
|
|
*/ |
161
|
|
|
protected $replyToMessage; |
162
|
|
|
|
163
|
|
|
/** |
164
|
|
|
* Optional. Bot through which the message was sent. |
165
|
|
|
* |
166
|
|
|
* @var \TelegramBot\Api\Types\User|null |
167
|
|
|
*/ |
168
|
|
|
protected $viaBot; |
169
|
|
|
|
170
|
|
|
/** |
171
|
|
|
* Optional. Date the message was last edited in Unix time |
172
|
|
|
* |
173
|
|
|
* @var int|null |
174
|
|
|
*/ |
175
|
|
|
protected $editDate; |
176
|
|
|
|
177
|
|
|
/** |
178
|
|
|
* Optional. The unique identifier of a media message group |
179
|
|
|
* this message belongs to |
180
|
|
|
* |
181
|
|
|
* @var int|null |
182
|
|
|
*/ |
183
|
|
|
protected $mediaGroupId; |
184
|
|
|
|
185
|
|
|
/** |
186
|
|
|
* Optional. Signature of the post author for messages in channels |
187
|
|
|
* |
188
|
|
|
* @var string|null |
189
|
|
|
*/ |
190
|
|
|
protected $authorSignature; |
191
|
|
|
|
192
|
|
|
/** |
193
|
|
|
* Optional. For text messages, the actual UTF-8 text of the message |
194
|
|
|
* |
195
|
|
|
* @var string|null |
196
|
|
|
*/ |
197
|
|
|
protected $text; |
198
|
|
|
|
199
|
|
|
/** |
200
|
|
|
* Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text. |
201
|
|
|
* array of \TelegramBot\Api\Types\MessageEntity |
202
|
|
|
* |
203
|
|
|
* @var array|null |
204
|
|
|
*/ |
205
|
|
|
protected $entities; |
206
|
|
|
|
207
|
|
|
/** |
208
|
|
|
* Optional. For messages with a caption, special entities like usernames, |
209
|
|
|
* URLs, bot commands, etc. that appear in the caption |
210
|
|
|
* |
211
|
|
|
* @var ArrayOfMessageEntity|null |
212
|
|
|
*/ |
213
|
|
|
protected $captionEntities; |
214
|
|
|
|
215
|
|
|
/** |
216
|
|
|
* Optional. Message is an audio file, information about the file |
217
|
|
|
* |
218
|
|
|
* @var \TelegramBot\Api\Types\Audio|null |
219
|
|
|
*/ |
220
|
|
|
protected $audio; |
221
|
|
|
|
222
|
|
|
/** |
223
|
|
|
* Optional. Message is a general file, information about the file |
224
|
|
|
* |
225
|
|
|
* @var \TelegramBot\Api\Types\Document|null |
226
|
|
|
*/ |
227
|
|
|
protected $document; |
228
|
|
|
|
229
|
|
|
/** |
230
|
|
|
* Optional. Message is a animation, information about the animation |
231
|
|
|
* |
232
|
|
|
* @var \TelegramBot\Api\Types\Animation|null |
233
|
|
|
*/ |
234
|
|
|
protected $animation; |
235
|
|
|
|
236
|
|
|
/** |
237
|
|
|
* Optional. Message is a photo, available sizes of the photo |
238
|
|
|
* array of \TelegramBot\Api\Types\Photo |
239
|
|
|
* |
240
|
|
|
* @var array|null |
241
|
|
|
*/ |
242
|
|
|
protected $photo; |
243
|
|
|
|
244
|
|
|
/** |
245
|
|
|
* Optional. Message is a sticker, information about the sticker |
246
|
|
|
* |
247
|
|
|
* @var \TelegramBot\Api\Types\Sticker|null |
248
|
|
|
*/ |
249
|
|
|
protected $sticker; |
250
|
|
|
|
251
|
|
|
/** |
252
|
|
|
* Optional. Message is a video, information about the video |
253
|
|
|
* |
254
|
|
|
* @var \TelegramBot\Api\Types\Video|null |
255
|
|
|
*/ |
256
|
|
|
protected $video; |
257
|
|
|
|
258
|
|
|
/** |
259
|
|
|
* Optional. Message is a video note, information about the video message |
260
|
|
|
* |
261
|
|
|
* @var \TelegramBot\Api\Types\VideoNote|null |
262
|
|
|
*/ |
263
|
|
|
protected $videoNote; |
264
|
|
|
|
265
|
|
|
/** |
266
|
|
|
* Optional. Message is a voice message, information about the file |
267
|
|
|
* |
268
|
|
|
* @var \TelegramBot\Api\Types\Voice|null |
269
|
|
|
*/ |
270
|
|
|
protected $voice; |
271
|
|
|
|
272
|
|
|
/** |
273
|
|
|
* Optional. Text description of the video (usually empty) |
274
|
|
|
* |
275
|
|
|
* @var string|null |
276
|
|
|
*/ |
277
|
|
|
protected $caption; |
278
|
|
|
|
279
|
|
|
/** |
280
|
|
|
* Optional. Message is a shared contact, information about the contact |
281
|
|
|
* |
282
|
|
|
* @var \TelegramBot\Api\Types\Contact|null |
283
|
|
|
*/ |
284
|
|
|
protected $contact; |
285
|
|
|
|
286
|
|
|
/** |
287
|
|
|
* Optional. Message is a shared location, information about the location |
288
|
|
|
* |
289
|
|
|
* @var \TelegramBot\Api\Types\Location|null |
290
|
|
|
*/ |
291
|
|
|
protected $location; |
292
|
|
|
|
293
|
|
|
/** |
294
|
|
|
* Optional. Message is a venue, information about the venue |
295
|
|
|
* |
296
|
|
|
* @var \TelegramBot\Api\Types\Venue|null |
297
|
|
|
*/ |
298
|
|
|
protected $venue; |
299
|
|
|
|
300
|
|
|
/** |
301
|
|
|
* Optional. Message is a native poll, information about the poll |
302
|
|
|
* |
303
|
|
|
* @var \TelegramBot\Api\Types\Poll|null |
304
|
|
|
*/ |
305
|
|
|
protected $poll; |
306
|
|
|
|
307
|
|
|
/** |
308
|
|
|
* Optional. Message is a dice with random value from 1 to 6 |
309
|
|
|
* |
310
|
|
|
* @var \TelegramBot\Api\Types\Dice|null |
311
|
|
|
*/ |
312
|
|
|
protected $dice; |
313
|
|
|
|
314
|
|
|
/** |
315
|
|
|
* Optional. New members that were added to the group or supergroup and information about them |
316
|
|
|
* (the bot itself may be one of these members) |
317
|
|
|
* array of \TelegramBot\Api\Types\User |
318
|
|
|
* |
319
|
|
|
* @var \TelegramBot\Api\Types\User[]|null |
320
|
|
|
*/ |
321
|
|
|
protected $newChatMembers; |
322
|
|
|
|
323
|
|
|
/** |
324
|
|
|
* Optional. A member was removed from the group, information about them (this member may be bot itself) |
325
|
|
|
* |
326
|
|
|
* @var \TelegramBot\Api\Types\User|null |
327
|
|
|
*/ |
328
|
|
|
protected $leftChatMember; |
329
|
|
|
|
330
|
|
|
/** |
331
|
|
|
* Optional. A group title was changed to this value |
332
|
|
|
* |
333
|
|
|
* @var string|null |
334
|
|
|
*/ |
335
|
|
|
protected $newChatTitle; |
336
|
|
|
|
337
|
|
|
/** |
338
|
|
|
* Optional. A group photo was change to this value |
339
|
|
|
* |
340
|
|
|
* @var PhotoSize[]|null |
341
|
|
|
*/ |
342
|
|
|
protected $newChatPhoto; |
343
|
|
|
|
344
|
|
|
/** |
345
|
|
|
* Optional. Informs that the group photo was deleted |
346
|
|
|
* |
347
|
|
|
* @var bool|null |
348
|
|
|
*/ |
349
|
|
|
protected $deleteChatPhoto; |
350
|
|
|
|
351
|
|
|
/** |
352
|
|
|
* Optional. Informs that the group has been created |
353
|
|
|
* |
354
|
|
|
* @var bool|null |
355
|
|
|
*/ |
356
|
|
|
protected $groupChatCreated; |
357
|
|
|
|
358
|
|
|
/** |
359
|
|
|
* Optional. Service message: the supergroup has been created |
360
|
|
|
* |
361
|
|
|
* @var bool|null |
362
|
|
|
*/ |
363
|
|
|
protected $supergroupChatCreated; |
364
|
|
|
|
365
|
|
|
/** |
366
|
|
|
* Optional. Service message: the channel has been created |
367
|
|
|
* |
368
|
|
|
* @var bool|null |
369
|
|
|
*/ |
370
|
|
|
protected $channelChatCreated; |
371
|
|
|
|
372
|
|
|
/** |
373
|
|
|
* Optional. The group has been migrated to a supergroup with the specified identifier, |
374
|
|
|
* not exceeding 1e13 by absolute value |
375
|
|
|
* |
376
|
|
|
* @var int|null |
377
|
|
|
*/ |
378
|
|
|
protected $migrateToChatId; |
379
|
|
|
|
380
|
|
|
/** |
381
|
|
|
* Optional. The supergroup has been migrated from a group with the specified identifier, |
382
|
|
|
* not exceeding 1e13 by absolute value |
383
|
|
|
* |
384
|
|
|
* @var int|null |
385
|
|
|
*/ |
386
|
|
|
protected $migrateFromChatId; |
387
|
|
|
|
388
|
|
|
/** |
389
|
|
|
* Optional. Specified message was pinned.Note that the Message object in this field |
390
|
|
|
* will not contain further reply_to_message fields even if it is itself a reply. |
391
|
|
|
* |
392
|
|
|
* @var Message|null |
393
|
|
|
*/ |
394
|
|
|
protected $pinnedMessage; |
395
|
|
|
|
396
|
|
|
/** |
397
|
|
|
* Optional. Message is an invoice for a payment, information about the invoice. |
398
|
|
|
* |
399
|
|
|
* @var Invoice|null |
400
|
|
|
*/ |
401
|
|
|
protected $invoice; |
402
|
|
|
|
403
|
|
|
/** |
404
|
|
|
* Optional. Message is a service message about a successful payment, information about the payment. |
405
|
|
|
* |
406
|
|
|
* @var SuccessfulPayment|null |
407
|
|
|
*/ |
408
|
|
|
protected $successfulPayment; |
409
|
|
|
|
410
|
|
|
/** |
411
|
|
|
* Optional. The domain name of the website on which the user has logged in. |
412
|
|
|
* |
413
|
|
|
* @var string|null |
414
|
|
|
*/ |
415
|
|
|
protected $connectedWebsite; |
416
|
|
|
|
417
|
|
|
/** |
418
|
|
|
* Optional. Service message: data sent by a Web App |
419
|
|
|
* |
420
|
|
|
* @var WebAppData|null |
421
|
|
|
*/ |
422
|
|
|
protected $webAppData; |
423
|
|
|
|
424
|
|
|
/** |
425
|
|
|
* Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons. |
426
|
|
|
* |
427
|
|
|
* @var InlineKeyboardMarkup|null |
428
|
|
|
*/ |
429
|
|
|
protected $replyMarkup; |
430
|
|
|
|
431
|
|
|
/** |
432
|
|
|
* Optional. Service message: forum topic created |
433
|
|
|
* |
434
|
|
|
* @var ForumTopicCreated|null |
435
|
|
|
*/ |
436
|
|
|
protected $forumTopicCreated; |
437
|
|
|
|
438
|
|
|
/** |
439
|
|
|
* Optional. Service message: forum topic closed |
440
|
|
|
* |
441
|
|
|
* @var ForumTopicReopened|null |
442
|
|
|
*/ |
443
|
|
|
protected $forumTopicReopened; |
444
|
|
|
|
445
|
|
|
/** |
446
|
|
|
* Optional. Service message: forum topic reopened |
447
|
|
|
* |
448
|
|
|
* @var ForumTopicClosed|null |
449
|
|
|
*/ |
450
|
|
|
protected $forumTopicClosed; |
451
|
|
|
|
452
|
|
|
/** |
453
|
1 |
|
* Optional. True, if the message is sent to a forum topic |
454
|
|
|
* |
455
|
1 |
|
* @var bool|null |
456
|
|
|
*/ |
457
|
|
|
protected $isTopicMessage; |
458
|
|
|
|
459
|
|
|
/** |
460
|
|
|
* Optional. Unique identifier of a message thread to which the message belongs; for supergroups only |
461
|
|
|
* |
462
|
|
|
* @var int|null |
463
|
16 |
|
*/ |
464
|
|
|
protected $messageThreadId; |
465
|
16 |
|
|
466
|
15 |
|
/** |
467
|
15 |
|
* @return int|float |
468
|
1 |
|
*/ |
469
|
|
|
public function getMessageId() |
470
|
15 |
|
{ |
471
|
|
|
return $this->messageId; |
472
|
|
|
} |
473
|
|
|
|
474
|
|
|
/** |
475
|
1 |
|
* @param mixed $messageId |
476
|
|
|
* @return void |
477
|
1 |
|
* @throws InvalidArgumentException |
478
|
|
|
*/ |
479
|
|
|
public function setMessageId($messageId) |
480
|
|
|
{ |
481
|
|
|
if (is_integer($messageId) || is_float($messageId)) { |
482
|
|
|
$this->messageId = $messageId; |
483
|
14 |
|
} else { |
484
|
|
|
throw new InvalidArgumentException(); |
485
|
14 |
|
} |
486
|
14 |
|
} |
487
|
|
|
|
488
|
|
|
/** |
489
|
|
|
* @return User|null |
490
|
|
|
*/ |
491
|
2 |
|
public function getFrom() |
492
|
|
|
{ |
493
|
2 |
|
return $this->from; |
494
|
|
|
} |
495
|
|
|
|
496
|
|
|
/** |
497
|
|
|
* @param User $from |
498
|
|
|
* @return void |
499
|
16 |
|
*/ |
500
|
|
|
public function setFrom(User $from) |
501
|
16 |
|
{ |
502
|
16 |
|
$this->from = $from; |
503
|
|
|
} |
504
|
|
|
|
505
|
|
|
/** |
506
|
|
|
* @return Chat |
507
|
1 |
|
*/ |
508
|
|
|
public function getChat() |
509
|
1 |
|
{ |
510
|
|
|
return $this->chat; |
511
|
|
|
} |
512
|
|
|
|
513
|
|
|
/** |
514
|
|
|
* @param Chat $chat |
515
|
|
|
* @return void |
516
|
|
|
*/ |
517
|
15 |
|
public function setChat(Chat $chat) |
518
|
|
|
{ |
519
|
15 |
|
$this->chat = $chat; |
520
|
14 |
|
} |
521
|
14 |
|
|
522
|
1 |
|
/** |
523
|
|
|
* @return int |
524
|
14 |
|
*/ |
525
|
|
|
public function getDate() |
526
|
|
|
{ |
527
|
|
|
return $this->date; |
528
|
|
|
} |
529
|
1 |
|
|
530
|
|
|
/** |
531
|
1 |
|
* @param mixed $date |
532
|
|
|
* @return void |
533
|
|
|
* @throws InvalidArgumentException |
534
|
|
|
*/ |
535
|
|
|
public function setDate($date) |
536
|
|
|
{ |
537
|
2 |
|
if (is_int($date)) { |
538
|
|
|
$this->date = $date; |
539
|
2 |
|
} else { |
540
|
2 |
|
throw new InvalidArgumentException(); |
541
|
|
|
} |
542
|
|
|
} |
543
|
|
|
|
544
|
|
|
/** |
545
|
|
|
* @return User|null |
546
|
|
|
*/ |
547
|
|
|
public function getForwardFrom() |
548
|
|
|
{ |
549
|
|
|
return $this->forwardFrom; |
550
|
|
|
} |
551
|
|
|
|
552
|
|
|
/** |
553
|
|
|
* @param User $forwardFrom |
554
|
|
|
* @return void |
555
|
|
|
*/ |
556
|
|
|
public function setForwardFrom(User $forwardFrom) |
557
|
|
|
{ |
558
|
|
|
$this->forwardFrom = $forwardFrom; |
559
|
|
|
} |
560
|
|
|
|
561
|
|
|
/** |
562
|
|
|
* @return Chat|null |
563
|
|
|
*/ |
564
|
|
|
public function getForwardFromChat() |
565
|
|
|
{ |
566
|
|
|
return $this->forwardFromChat; |
567
|
|
|
} |
568
|
|
|
|
569
|
|
|
/** |
570
|
|
|
* @param Chat $forwardFromChat |
571
|
|
|
* @return void |
572
|
|
|
*/ |
573
|
|
|
public function setForwardFromChat(Chat $forwardFromChat) |
574
|
|
|
{ |
575
|
|
|
$this->forwardFromChat = $forwardFromChat; |
576
|
|
|
} |
577
|
|
|
|
578
|
|
|
/** |
579
|
|
|
* @return int|null |
580
|
|
|
*/ |
581
|
|
|
public function getForwardFromMessageId() |
582
|
|
|
{ |
583
|
|
|
return $this->forwardFromMessageId; |
584
|
|
|
} |
585
|
|
|
|
586
|
|
|
/** |
587
|
|
|
* @param int $forwardFromMessageId |
588
|
|
|
* @return void |
589
|
|
|
*/ |
590
|
|
|
public function setForwardFromMessageId($forwardFromMessageId) |
591
|
|
|
{ |
592
|
|
|
$this->forwardFromMessageId = $forwardFromMessageId; |
593
|
|
|
} |
594
|
|
|
|
595
|
|
|
/** |
596
|
|
|
* @return null|string |
597
|
|
|
*/ |
598
|
|
|
public function getForwardSignature() |
599
|
|
|
{ |
600
|
|
|
return $this->forwardSignature; |
601
|
|
|
} |
602
|
|
|
|
603
|
|
|
/** |
604
|
|
|
* @param string $forwardSignature |
605
|
|
|
* @return void |
606
|
|
|
*/ |
607
|
|
|
public function setForwardSignature($forwardSignature) |
608
|
|
|
{ |
609
|
1 |
|
$this->forwardSignature = $forwardSignature; |
610
|
|
|
} |
611
|
1 |
|
|
612
|
|
|
/** |
613
|
|
|
* @return null|string |
614
|
|
|
*/ |
615
|
|
|
public function getForwardSenderName() |
616
|
|
|
{ |
617
|
|
|
return $this->forwardSenderName; |
618
|
|
|
} |
619
|
3 |
|
|
620
|
|
|
/** |
621
|
3 |
|
* @param string $forwardSenderName |
622
|
2 |
|
* @return void |
623
|
2 |
|
*/ |
624
|
1 |
|
public function setForwardSenderName($forwardSenderName) |
625
|
|
|
{ |
626
|
2 |
|
$this->forwardSenderName = $forwardSenderName; |
627
|
|
|
} |
628
|
|
|
|
629
|
|
|
/** |
630
|
|
|
* @return int|null |
631
|
1 |
|
*/ |
632
|
|
|
public function getForwardDate() |
633
|
1 |
|
{ |
634
|
|
|
return $this->forwardDate; |
635
|
|
|
} |
636
|
|
|
|
637
|
|
|
/** |
638
|
|
|
* @param mixed $forwardDate |
639
|
2 |
|
* @return void |
640
|
|
|
* @throws InvalidArgumentException |
641
|
2 |
|
*/ |
642
|
2 |
|
public function setForwardDate($forwardDate) |
643
|
|
|
{ |
644
|
|
|
if (is_int($forwardDate)) { |
645
|
|
|
$this->forwardDate = $forwardDate; |
646
|
|
|
} else { |
647
|
2 |
|
throw new InvalidArgumentException(); |
648
|
|
|
} |
649
|
2 |
|
} |
650
|
|
|
|
651
|
|
|
/** |
652
|
|
|
* @return null|self |
653
|
|
|
*/ |
654
|
|
|
public function getReplyToMessage() |
655
|
3 |
|
{ |
656
|
|
|
return $this->replyToMessage; |
657
|
3 |
|
} |
658
|
3 |
|
|
659
|
|
|
/** |
660
|
|
|
* @param Message $replyToMessage |
661
|
|
|
* @return void |
662
|
|
|
*/ |
663
|
|
|
public function setReplyToMessage(Message $replyToMessage) |
664
|
|
|
{ |
665
|
|
|
$this->replyToMessage = $replyToMessage; |
666
|
|
|
} |
667
|
|
|
|
668
|
|
|
/** |
669
|
|
|
* @return User|null |
670
|
|
|
*/ |
671
|
|
|
public function getViaBot() |
672
|
|
|
{ |
673
|
|
|
return $this->viaBot; |
674
|
|
|
} |
675
|
|
|
|
676
|
|
|
/** |
677
|
|
|
* @param User $viaBot |
678
|
|
|
* @return void |
679
|
|
|
*/ |
680
|
|
|
public function setViaBot(User $viaBot) |
681
|
|
|
{ |
682
|
|
|
$this->viaBot = $viaBot; |
683
|
|
|
} |
684
|
|
|
|
685
|
|
|
/** |
686
|
|
|
* @return int|null |
687
|
|
|
*/ |
688
|
|
|
public function getEditDate() |
689
|
|
|
{ |
690
|
|
|
return $this->editDate; |
691
|
|
|
} |
692
|
|
|
|
693
|
|
|
/** |
694
|
|
|
* @param mixed $editDate |
695
|
|
|
* @return void |
696
|
|
|
* @throws InvalidArgumentException |
697
|
|
|
*/ |
698
|
|
|
public function setEditDate($editDate) |
699
|
|
|
{ |
700
|
|
|
if (is_int($editDate)) { |
701
|
|
|
$this->editDate = $editDate; |
702
|
|
|
} else { |
703
|
|
|
throw new InvalidArgumentException(); |
704
|
|
|
} |
705
|
|
|
} |
706
|
|
|
|
707
|
|
|
/** |
708
|
|
|
* @return int|null |
709
|
|
|
*/ |
710
|
|
|
public function getMediaGroupId() |
711
|
|
|
{ |
712
|
|
|
return $this->mediaGroupId; |
713
|
|
|
} |
714
|
|
|
|
715
|
|
|
/** |
716
|
|
|
* @param int $mediaGroupId |
717
|
7 |
|
* @return void |
718
|
|
|
*/ |
719
|
7 |
|
public function setMediaGroupId($mediaGroupId) |
720
|
|
|
{ |
721
|
|
|
$this->mediaGroupId = $mediaGroupId; |
722
|
|
|
} |
723
|
|
|
|
724
|
|
|
/** |
725
|
5 |
|
* @return null|string |
726
|
|
|
*/ |
727
|
5 |
|
public function getAuthorSignature() |
728
|
5 |
|
{ |
729
|
|
|
return $this->authorSignature; |
730
|
|
|
} |
731
|
|
|
|
732
|
|
|
/** |
733
|
|
|
* @param string $authorSignature |
734
|
|
|
* @return void |
735
|
|
|
*/ |
736
|
|
|
public function setAuthorSignature($authorSignature) |
737
|
|
|
{ |
738
|
|
|
$this->authorSignature = $authorSignature; |
739
|
|
|
} |
740
|
|
|
|
741
|
1 |
|
/** |
742
|
|
|
* @return null|string |
743
|
1 |
|
*/ |
744
|
1 |
|
public function getText() |
745
|
|
|
{ |
746
|
|
|
return $this->text; |
747
|
|
|
} |
748
|
|
|
|
749
|
|
|
/** |
750
|
|
|
* @param string $text |
751
|
|
|
* @return void |
752
|
|
|
*/ |
753
|
|
|
public function setText($text) |
754
|
|
|
{ |
755
|
|
|
$this->text = $text; |
756
|
|
|
} |
757
|
|
|
|
758
|
|
|
/** |
759
|
|
|
* @return array|null |
760
|
|
|
*/ |
761
|
|
|
public function getEntities() |
762
|
|
|
{ |
763
|
|
|
return $this->entities; |
764
|
|
|
} |
765
|
1 |
|
|
766
|
|
|
/** |
767
|
1 |
|
* @param array $entities |
768
|
|
|
* @return void |
769
|
|
|
*/ |
770
|
|
|
public function setEntities($entities) |
771
|
|
|
{ |
772
|
|
|
$this->entities = $entities; |
773
|
2 |
|
} |
774
|
|
|
|
775
|
2 |
|
/** |
776
|
2 |
|
* @return ArrayOfMessageEntity|null |
777
|
|
|
*/ |
778
|
|
|
public function getCaptionEntities() |
779
|
|
|
{ |
780
|
|
|
return $this->captionEntities; |
781
|
1 |
|
} |
782
|
|
|
|
783
|
1 |
|
/** |
784
|
|
|
* @param ArrayOfMessageEntity $captionEntities |
785
|
|
|
* @return void |
786
|
|
|
*/ |
787
|
|
|
public function setCaptionEntities($captionEntities) |
788
|
|
|
{ |
789
|
2 |
|
$this->captionEntities = $captionEntities; |
790
|
|
|
} |
791
|
2 |
|
|
792
|
2 |
|
/** |
793
|
|
|
* @return Audio|null |
794
|
|
|
*/ |
795
|
|
|
public function getAudio() |
796
|
|
|
{ |
797
|
|
|
return $this->audio; |
798
|
|
|
} |
799
|
|
|
|
800
|
|
|
/** |
801
|
|
|
* @param Audio $audio |
802
|
|
|
* @return void |
803
|
|
|
*/ |
804
|
|
|
public function setAudio(Audio $audio) |
805
|
|
|
{ |
806
|
|
|
$this->audio = $audio; |
807
|
|
|
} |
808
|
|
|
|
809
|
|
|
/** |
810
|
|
|
* @return Document|null |
811
|
|
|
*/ |
812
|
|
|
public function getDocument() |
813
|
1 |
|
{ |
814
|
|
|
return $this->document; |
815
|
1 |
|
} |
816
|
|
|
|
817
|
|
|
/** |
818
|
|
|
* @param Document $document |
819
|
|
|
* @return void |
820
|
|
|
*/ |
821
|
2 |
|
public function setDocument($document) |
822
|
|
|
{ |
823
|
2 |
|
$this->document = $document; |
824
|
2 |
|
} |
825
|
|
|
|
826
|
|
|
/** |
827
|
|
|
* @return Animation|null |
828
|
|
|
*/ |
829
|
1 |
|
public function getAnimation() |
830
|
|
|
{ |
831
|
1 |
|
return $this->animation; |
832
|
|
|
} |
833
|
|
|
|
834
|
|
|
/** |
835
|
|
|
* @param Animation $animation |
836
|
|
|
* @return void |
837
|
2 |
|
*/ |
838
|
|
|
public function setAnimation(Animation $animation) |
839
|
2 |
|
{ |
840
|
2 |
|
$this->animation = $animation; |
841
|
|
|
} |
842
|
|
|
|
843
|
|
|
/** |
844
|
|
|
* @return array|null |
845
|
1 |
|
*/ |
846
|
|
|
public function getPhoto() |
847
|
1 |
|
{ |
848
|
|
|
return $this->photo; |
849
|
|
|
} |
850
|
|
|
|
851
|
|
|
/** |
852
|
|
|
* @param array $photo |
853
|
2 |
|
* @return void |
854
|
|
|
*/ |
855
|
2 |
|
public function setPhoto(array $photo) |
856
|
2 |
|
{ |
857
|
|
|
$this->photo = $photo; |
858
|
|
|
} |
859
|
|
|
|
860
|
|
|
/** |
861
|
1 |
|
* @return Sticker|null |
862
|
|
|
*/ |
863
|
1 |
|
public function getSticker() |
864
|
|
|
{ |
865
|
|
|
return $this->sticker; |
866
|
|
|
} |
867
|
|
|
|
868
|
|
|
/** |
869
|
2 |
|
* @param Sticker $sticker |
870
|
|
|
* @return void |
871
|
2 |
|
*/ |
872
|
2 |
|
public function setSticker(Sticker $sticker) |
873
|
|
|
{ |
874
|
|
|
$this->sticker = $sticker; |
875
|
|
|
} |
876
|
|
|
|
877
|
1 |
|
/** |
878
|
|
|
* @return Video|null |
879
|
1 |
|
*/ |
880
|
|
|
public function getVideo() |
881
|
|
|
{ |
882
|
|
|
return $this->video; |
883
|
|
|
} |
884
|
|
|
|
885
|
2 |
|
/** |
886
|
|
|
* @return VideoNote|null |
887
|
2 |
|
*/ |
888
|
2 |
|
public function getVideoNote() |
889
|
|
|
{ |
890
|
|
|
return $this->videoNote; |
891
|
|
|
} |
892
|
|
|
|
893
|
1 |
|
/** |
894
|
|
|
* @param VideoNote|null $videoNote |
895
|
1 |
|
* @return void |
896
|
|
|
*/ |
897
|
|
|
public function setVideoNote($videoNote) |
898
|
|
|
{ |
899
|
|
|
$this->videoNote = $videoNote; |
900
|
|
|
} |
901
|
2 |
|
|
902
|
|
|
/** |
903
|
2 |
|
* @param Video $video |
904
|
2 |
|
* @return void |
905
|
|
|
*/ |
906
|
|
|
public function setVideo(Video $video) |
907
|
|
|
{ |
908
|
|
|
$this->video = $video; |
909
|
1 |
|
} |
910
|
|
|
|
911
|
1 |
|
/** |
912
|
|
|
* @return Voice|null |
913
|
|
|
*/ |
914
|
|
|
public function getVoice() |
915
|
|
|
{ |
916
|
|
|
return $this->voice; |
917
|
2 |
|
} |
918
|
|
|
|
919
|
2 |
|
/** |
920
|
2 |
|
* @param Voice $voice |
921
|
|
|
* @return void |
922
|
|
|
*/ |
923
|
|
|
public function setVoice($voice) |
924
|
|
|
{ |
925
|
|
|
$this->voice = $voice; |
926
|
|
|
} |
927
|
|
|
|
928
|
|
|
/** |
929
|
|
|
* @return null|string |
930
|
|
|
*/ |
931
|
|
|
public function getCaption() |
932
|
|
|
{ |
933
|
|
|
return $this->caption; |
934
|
|
|
} |
935
|
|
|
|
936
|
|
|
/** |
937
|
|
|
* @param string $caption |
938
|
|
|
* @return void |
939
|
|
|
*/ |
940
|
|
|
public function setCaption($caption) |
941
|
|
|
{ |
942
|
|
|
$this->caption = $caption; |
943
|
|
|
} |
944
|
|
|
|
945
|
|
|
/** |
946
|
|
|
* @return Contact|null |
947
|
|
|
*/ |
948
|
|
|
public function getContact() |
949
|
|
|
{ |
950
|
|
|
return $this->contact; |
951
|
|
|
} |
952
|
|
|
|
953
|
|
|
/** |
954
|
|
|
* @param Contact $contact |
955
|
|
|
* @return void |
956
|
|
|
*/ |
957
|
1 |
|
public function setContact(Contact $contact) |
958
|
|
|
{ |
959
|
1 |
|
$this->contact = $contact; |
960
|
|
|
} |
961
|
|
|
|
962
|
|
|
/** |
963
|
|
|
* @return Location|null |
964
|
|
|
*/ |
965
|
2 |
|
public function getLocation() |
966
|
|
|
{ |
967
|
2 |
|
return $this->location; |
968
|
2 |
|
} |
969
|
|
|
|
970
|
|
|
/** |
971
|
|
|
* @param Location $location |
972
|
|
|
* @return void |
973
|
1 |
|
*/ |
974
|
|
|
public function setLocation(Location $location) |
975
|
1 |
|
{ |
976
|
|
|
$this->location = $location; |
977
|
|
|
} |
978
|
|
|
|
979
|
|
|
/** |
980
|
|
|
* @return Venue|null |
981
|
2 |
|
*/ |
982
|
|
|
public function getVenue() |
983
|
2 |
|
{ |
984
|
2 |
|
return $this->venue; |
985
|
|
|
} |
986
|
|
|
|
987
|
|
|
/** |
988
|
|
|
* @param Venue $venue |
989
|
1 |
|
* @return void |
990
|
|
|
*/ |
991
|
1 |
|
public function setVenue($venue) |
992
|
|
|
{ |
993
|
|
|
$this->venue = $venue; |
994
|
|
|
} |
995
|
|
|
|
996
|
|
|
/** |
997
|
2 |
|
* @return Poll|null |
998
|
|
|
*/ |
999
|
2 |
|
public function getPoll() |
1000
|
2 |
|
{ |
1001
|
|
|
return $this->poll; |
1002
|
|
|
} |
1003
|
|
|
|
1004
|
|
|
/** |
1005
|
1 |
|
* @param Poll $poll |
1006
|
|
|
* @return void |
1007
|
1 |
|
*/ |
1008
|
|
|
public function setPoll($poll) |
1009
|
|
|
{ |
1010
|
|
|
$this->poll = $poll; |
1011
|
|
|
} |
1012
|
|
|
|
1013
|
2 |
|
/** |
1014
|
|
|
* @return Dice|null |
1015
|
2 |
|
*/ |
1016
|
2 |
|
public function getDice() |
1017
|
|
|
{ |
1018
|
|
|
return $this->dice; |
1019
|
|
|
} |
1020
|
|
|
|
1021
|
1 |
|
/** |
1022
|
|
|
* @param Dice $dice |
1023
|
1 |
|
* @return void |
1024
|
|
|
*/ |
1025
|
|
|
public function setDice(Dice $dice) |
1026
|
|
|
{ |
1027
|
|
|
$this->dice = $dice; |
1028
|
|
|
} |
1029
|
2 |
|
|
1030
|
|
|
/** |
1031
|
2 |
|
* @return \TelegramBot\Api\Types\User[]|null |
1032
|
2 |
|
*/ |
1033
|
|
|
public function getNewChatMembers() |
1034
|
|
|
{ |
1035
|
|
|
return $this->newChatMembers; |
1036
|
|
|
} |
1037
|
1 |
|
|
1038
|
|
|
/** |
1039
|
1 |
|
* @param \TelegramBot\Api\Types\User[]|null $newChatMembers |
1040
|
|
|
* @return void |
1041
|
|
|
*/ |
1042
|
|
|
public function setNewChatMembers($newChatMembers) |
1043
|
|
|
{ |
1044
|
|
|
$this->newChatMembers = $newChatMembers; |
1045
|
2 |
|
} |
1046
|
|
|
|
1047
|
2 |
|
/** |
1048
|
2 |
|
* @return User|null |
1049
|
|
|
*/ |
1050
|
|
|
public function getLeftChatMember() |
1051
|
|
|
{ |
1052
|
|
|
return $this->leftChatMember; |
1053
|
1 |
|
} |
1054
|
|
|
|
1055
|
1 |
|
/** |
1056
|
|
|
* @param User $leftChatMember |
1057
|
|
|
* @return void |
1058
|
|
|
*/ |
1059
|
|
|
public function setLeftChatMember($leftChatMember) |
1060
|
|
|
{ |
1061
|
2 |
|
$this->leftChatMember = $leftChatMember; |
1062
|
|
|
} |
1063
|
2 |
|
|
1064
|
2 |
|
/** |
1065
|
|
|
* @return null|string |
1066
|
|
|
*/ |
1067
|
|
|
public function getNewChatTitle() |
1068
|
|
|
{ |
1069
|
1 |
|
return $this->newChatTitle; |
1070
|
|
|
} |
1071
|
1 |
|
|
1072
|
|
|
/** |
1073
|
|
|
* @param string $newChatTitle |
1074
|
|
|
* @return void |
1075
|
|
|
*/ |
1076
|
|
|
public function setNewChatTitle($newChatTitle) |
1077
|
2 |
|
{ |
1078
|
|
|
$this->newChatTitle = $newChatTitle; |
1079
|
2 |
|
} |
1080
|
2 |
|
|
1081
|
|
|
/** |
1082
|
|
|
* @return PhotoSize[]|null |
1083
|
|
|
*/ |
1084
|
|
|
public function getNewChatPhoto() |
1085
|
1 |
|
{ |
1086
|
|
|
return $this->newChatPhoto; |
1087
|
1 |
|
} |
1088
|
|
|
|
1089
|
|
|
/** |
1090
|
|
|
* @param PhotoSize[]|null $newChatPhoto |
1091
|
|
|
* @return void |
1092
|
|
|
*/ |
1093
|
2 |
|
public function setNewChatPhoto($newChatPhoto) |
1094
|
|
|
{ |
1095
|
2 |
|
$this->newChatPhoto = $newChatPhoto; |
1096
|
2 |
|
} |
1097
|
|
|
|
1098
|
|
|
/** |
1099
|
|
|
* @return bool|null |
1100
|
|
|
*/ |
1101
|
1 |
|
public function isDeleteChatPhoto() |
1102
|
|
|
{ |
1103
|
1 |
|
return $this->deleteChatPhoto; |
1104
|
|
|
} |
1105
|
|
|
|
1106
|
|
|
/** |
1107
|
|
|
* @param mixed $deleteChatPhoto |
1108
|
|
|
* @return void |
1109
|
2 |
|
*/ |
1110
|
|
|
public function setDeleteChatPhoto($deleteChatPhoto) |
1111
|
2 |
|
{ |
1112
|
2 |
|
$this->deleteChatPhoto = (bool) $deleteChatPhoto; |
1113
|
|
|
} |
1114
|
|
|
|
1115
|
|
|
/** |
1116
|
|
|
* @return bool|null |
1117
|
1 |
|
*/ |
1118
|
|
|
public function isGroupChatCreated() |
1119
|
1 |
|
{ |
1120
|
|
|
return $this->groupChatCreated; |
1121
|
|
|
} |
1122
|
|
|
|
1123
|
|
|
/** |
1124
|
|
|
* @param mixed $groupChatCreated |
1125
|
4 |
|
* @return void |
1126
|
|
|
*/ |
1127
|
4 |
|
public function setGroupChatCreated($groupChatCreated) |
1128
|
4 |
|
{ |
1129
|
|
|
$this->groupChatCreated = (bool) $groupChatCreated; |
1130
|
|
|
} |
1131
|
|
|
|
1132
|
|
|
/** |
1133
|
|
|
* @return bool|null |
1134
|
|
|
*/ |
1135
|
|
|
public function isSupergroupChatCreated() |
1136
|
|
|
{ |
1137
|
|
|
return $this->supergroupChatCreated; |
1138
|
|
|
} |
1139
|
|
|
|
1140
|
|
|
/** |
1141
|
|
|
* @param bool $supergroupChatCreated |
1142
|
|
|
* @return void |
1143
|
|
|
*/ |
1144
|
|
|
public function setSupergroupChatCreated($supergroupChatCreated) |
1145
|
|
|
{ |
1146
|
|
|
$this->supergroupChatCreated = $supergroupChatCreated; |
1147
|
|
|
} |
1148
|
|
|
|
1149
|
|
|
/** |
1150
|
|
|
* @return bool|null |
1151
|
|
|
*/ |
1152
|
|
|
public function isChannelChatCreated() |
1153
|
|
|
{ |
1154
|
|
|
return $this->channelChatCreated; |
1155
|
|
|
} |
1156
|
|
|
|
1157
|
|
|
/** |
1158
|
|
|
* @param bool $channelChatCreated |
1159
|
|
|
* @return void |
1160
|
|
|
*/ |
1161
|
|
|
public function setChannelChatCreated($channelChatCreated) |
1162
|
|
|
{ |
1163
|
|
|
$this->channelChatCreated = $channelChatCreated; |
1164
|
|
|
} |
1165
|
|
|
|
1166
|
|
|
/** |
1167
|
|
|
* @return int|null |
1168
|
|
|
*/ |
1169
|
|
|
public function getMigrateToChatId() |
1170
|
|
|
{ |
1171
|
|
|
return $this->migrateToChatId; |
1172
|
|
|
} |
1173
|
|
|
|
1174
|
|
|
/** |
1175
|
|
|
* @param int $migrateToChatId |
1176
|
|
|
* @return void |
1177
|
|
|
*/ |
1178
|
|
|
public function setMigrateToChatId($migrateToChatId) |
1179
|
|
|
{ |
1180
|
|
|
$this->migrateToChatId = $migrateToChatId; |
1181
|
|
|
} |
1182
|
|
|
|
1183
|
|
|
/** |
1184
|
|
|
* @return int|null |
1185
|
|
|
*/ |
1186
|
|
|
public function getMigrateFromChatId() |
1187
|
|
|
{ |
1188
|
|
|
return $this->migrateFromChatId; |
1189
|
|
|
} |
1190
|
|
|
|
1191
|
|
|
/** |
1192
|
|
|
* @param int $migrateFromChatId |
1193
|
|
|
* @return void |
1194
|
|
|
*/ |
1195
|
|
|
public function setMigrateFromChatId($migrateFromChatId) |
1196
|
|
|
{ |
1197
|
|
|
$this->migrateFromChatId = $migrateFromChatId; |
1198
|
|
|
} |
1199
|
|
|
|
1200
|
|
|
/** |
1201
|
|
|
* @return null|self |
1202
|
|
|
*/ |
1203
|
|
|
public function getPinnedMessage() |
1204
|
|
|
{ |
1205
|
|
|
return $this->pinnedMessage; |
1206
|
|
|
} |
1207
|
|
|
|
1208
|
|
|
/** |
1209
|
|
|
* @param Message $pinnedMessage |
1210
|
|
|
* @return void |
1211
|
|
|
*/ |
1212
|
|
|
public function setPinnedMessage($pinnedMessage) |
1213
|
|
|
{ |
1214
|
|
|
$this->pinnedMessage = $pinnedMessage; |
1215
|
|
|
} |
1216
|
|
|
|
1217
|
|
|
/** |
1218
|
|
|
* @author MY |
1219
|
|
|
* |
1220
|
|
|
* @return Invoice|null |
1221
|
|
|
*/ |
1222
|
|
|
public function getInvoice() |
1223
|
|
|
{ |
1224
|
|
|
return $this->invoice; |
1225
|
|
|
} |
1226
|
|
|
|
1227
|
|
|
/** |
1228
|
|
|
* @author MY |
1229
|
|
|
* @param Invoice $invoice |
1230
|
|
|
* @return void |
1231
|
|
|
*/ |
1232
|
|
|
public function setInvoice($invoice) |
1233
|
|
|
{ |
1234
|
|
|
$this->invoice = $invoice; |
1235
|
|
|
} |
1236
|
|
|
|
1237
|
|
|
/** |
1238
|
|
|
* @author MY |
1239
|
|
|
* |
1240
|
|
|
* @return SuccessfulPayment|null |
1241
|
|
|
*/ |
1242
|
|
|
public function getSuccessfulPayment() |
1243
|
|
|
{ |
1244
|
|
|
return $this->successfulPayment; |
1245
|
|
|
} |
1246
|
|
|
|
1247
|
|
|
/** |
1248
|
|
|
* @author MY |
1249
|
|
|
* @param SuccessfulPayment $successfulPayment |
1250
|
|
|
* @return void |
1251
|
|
|
*/ |
1252
|
|
|
public function setSuccessfulPayment($successfulPayment) |
1253
|
|
|
{ |
1254
|
|
|
$this->successfulPayment = $successfulPayment; |
1255
|
|
|
} |
1256
|
|
|
|
1257
|
|
|
/** |
1258
|
|
|
* @return null|string |
1259
|
|
|
*/ |
1260
|
|
|
public function getConnectedWebsite() |
1261
|
|
|
{ |
1262
|
|
|
return $this->connectedWebsite; |
1263
|
|
|
} |
1264
|
|
|
|
1265
|
|
|
/** |
1266
|
|
|
* @param string $connectedWebsite |
1267
|
|
|
* @return void |
1268
|
|
|
*/ |
1269
|
|
|
public function setConnectedWebsite($connectedWebsite) |
1270
|
|
|
{ |
1271
|
|
|
$this->connectedWebsite = $connectedWebsite; |
1272
|
|
|
} |
1273
|
|
|
|
1274
|
|
|
/** |
1275
|
|
|
* @return WebAppData|null |
1276
|
|
|
*/ |
1277
|
|
|
public function getWebAppData() |
1278
|
|
|
{ |
1279
|
|
|
return $this->webAppData; |
1280
|
|
|
} |
1281
|
|
|
|
1282
|
|
|
/** |
1283
|
|
|
* @param WebAppData|null $webAppData |
1284
|
|
|
* @return void |
1285
|
|
|
*/ |
1286
|
|
|
public function setWebAppData($webAppData) |
1287
|
|
|
{ |
1288
|
|
|
$this->webAppData = $webAppData; |
1289
|
|
|
} |
1290
|
|
|
|
1291
|
|
|
/** |
1292
|
|
|
* @return InlineKeyboardMarkup|null |
1293
|
|
|
*/ |
1294
|
|
|
public function getReplyMarkup() |
1295
|
|
|
{ |
1296
|
|
|
return $this->replyMarkup; |
1297
|
|
|
} |
1298
|
|
|
|
1299
|
|
|
/** |
1300
|
|
|
* @param InlineKeyboardMarkup $replyMarkup |
1301
|
|
|
* @return void |
1302
|
|
|
*/ |
1303
|
|
|
public function setReplyMarkup($replyMarkup) |
1304
|
|
|
{ |
1305
|
|
|
$this->replyMarkup = $replyMarkup; |
1306
|
|
|
} |
1307
|
|
|
|
1308
|
|
|
/** |
1309
|
|
|
* @return ForumTopicCreated|null |
1310
|
|
|
*/ |
1311
|
|
|
public function getForumTopicCreated() |
1312
|
|
|
{ |
1313
|
|
|
return $this->forumTopicCreated; |
1314
|
|
|
} |
1315
|
|
|
|
1316
|
|
|
/** |
1317
|
|
|
* @param ForumTopicCreated $forumTopicCreated |
1318
|
|
|
* @return void |
1319
|
|
|
*/ |
1320
|
|
|
public function setForumTopicCreated($forumTopicCreated) |
1321
|
|
|
{ |
1322
|
|
|
$this->forumTopicCreated = $forumTopicCreated; |
1323
|
|
|
} |
1324
|
|
|
|
1325
|
|
|
/** |
1326
|
|
|
* @return ForumTopicClosed|null |
1327
|
|
|
*/ |
1328
|
|
|
public function getForumTopicClosed() |
1329
|
|
|
{ |
1330
|
|
|
return $this->forumTopicClosed; |
1331
|
|
|
} |
1332
|
|
|
|
1333
|
|
|
/** |
1334
|
|
|
* @param ForumTopicClosed $forumTopicClosed |
1335
|
|
|
* @return void |
1336
|
|
|
*/ |
1337
|
|
|
public function setForumTopicClosed($forumTopicClosed) |
1338
|
|
|
{ |
1339
|
|
|
$this->forumTopicClosed = $forumTopicClosed; |
1340
|
|
|
} |
1341
|
|
|
|
1342
|
|
|
/** |
1343
|
|
|
* @return ForumTopicReopened|null |
1344
|
|
|
*/ |
1345
|
|
|
public function getForumTopicReopened() |
1346
|
|
|
{ |
1347
|
|
|
return $this->forumTopicReopened; |
1348
|
|
|
} |
1349
|
|
|
|
1350
|
|
|
/** |
1351
|
|
|
* @param ForumTopicReopened $forumTopicReopened |
1352
|
|
|
* @return void |
1353
|
|
|
*/ |
1354
|
|
|
public function setForumTopicReopened($forumTopicReopened) |
1355
|
|
|
{ |
1356
|
|
|
$this->forumTopicReopened = $forumTopicReopened; |
1357
|
|
|
} |
1358
|
|
|
|
1359
|
|
|
/** |
1360
|
|
|
* @return bool|null |
1361
|
|
|
*/ |
1362
|
|
|
public function getIsTopicMessage() |
1363
|
|
|
{ |
1364
|
|
|
return $this->isTopicMessage; |
1365
|
|
|
} |
1366
|
|
|
|
1367
|
|
|
/** |
1368
|
|
|
* @param bool $isTopicMessage |
1369
|
|
|
* @return void |
1370
|
|
|
*/ |
1371
|
|
|
public function setIsTopicMessage($isTopicMessage) |
1372
|
|
|
{ |
1373
|
|
|
$this->isTopicMessage = $isTopicMessage; |
1374
|
|
|
} |
1375
|
|
|
|
1376
|
|
|
/** |
1377
|
|
|
* @return int|null |
1378
|
|
|
*/ |
1379
|
|
|
public function getMessageThreadId() |
1380
|
|
|
{ |
1381
|
|
|
return $this->messageThreadId; |
1382
|
|
|
} |
1383
|
|
|
|
1384
|
|
|
/** |
1385
|
|
|
* @param int|null $messageThreadId |
1386
|
|
|
* @return void |
1387
|
|
|
*/ |
1388
|
|
|
public function setMessageThreadId($messageThreadId) |
1389
|
|
|
{ |
1390
|
|
|
$this->messageThreadId = $messageThreadId; |
1391
|
|
|
} |
1392
|
|
|
} |
1393
|
|
|
|