Completed
Push — develop ( f04484...39ae35 )
by Michele
114:31 queued 112:23
created

Message::getViaBot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zanzara\Telegram\Type;
6
7
use Zanzara\Telegram\Type\File\Animation;
8
use Zanzara\Telegram\Type\File\Audio;
9
use Zanzara\Telegram\Type\File\Contact;
10
use Zanzara\Telegram\Type\File\Document;
11
use Zanzara\Telegram\Type\File\Location;
12
use Zanzara\Telegram\Type\File\Sticker;
13
use Zanzara\Telegram\Type\File\Venue;
14
use Zanzara\Telegram\Type\File\Video;
15
use Zanzara\Telegram\Type\File\VideoNote;
16
use Zanzara\Telegram\Type\File\Voice;
17
use Zanzara\Telegram\Type\Game\Game;
18
use Zanzara\Telegram\Type\Keyboard\InlineKeyboardMarkup;
19
use Zanzara\Telegram\Type\Miscellaneous\Dice;
20
use Zanzara\Telegram\Type\Passport\PassportData;
21
use Zanzara\Telegram\Type\Poll\Poll;
22
use Zanzara\Telegram\Type\Shipping\Invoice;
23
use Zanzara\Telegram\Type\Shipping\SuccessfulPayment;
24
25
/**
26
 * This object represents a message.
27
 *
28
 * More on https://core.telegram.org/bots/api#message
29
 */
30
class Message
31
{
32
33
    /**
34
     * Unique message identifier inside this chat
35
     *
36
     * @var int
37
     */
38
    private $message_id;
39
40
    /**
41
     * Optional. Sender, empty for messages sent to channels
42
     *
43
     * @var User|null
44
     */
45
    private $from;
46
47
    /**
48
     * Date the message was sent in Unix time
49
     *
50
     * @var int
51
     */
52
    private $date;
53
54
    /**
55
     * Conversation the message belongs to
56
     *
57
     * @var Chat
58
     */
59
    private $chat;
60
61
    /**
62
     * Optional. For forwarded messages, sender of the original message
63
     *
64
     * @var User|null
65
     */
66
    private $forward_from;
67
68
    /**
69
     * Optional. For messages forwarded from channels, information about the original channel
70
     *
71
     * @var Chat|null
72
     */
73
    private $forward_from_chat;
74
75
    /**
76
     * Optional. For messages forwarded from channels, identifier of the original message in the channel
77
     *
78
     * @var int|null
79
     */
80
    private $forward_from_message_id;
81
82
    /**
83
     * Optional. For messages forwarded from channels, signature of the post author if present
84
     *
85
     * @var string|null
86
     */
87
    private $forward_signature;
88
89
    /**
90
     * Optional. Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded
91
     * messages
92
     *
93
     * @var string|null
94
     */
95
    private $forward_sender_name;
96
97
    /**
98
     * Optional. For forwarded messages, date the original message was sent in Unix time
99
     *
100
     * @var int|null
101
     */
102
    private $forward_date;
103
104
    /**
105
     * Optional. For replies, the original message. Note that the Message object in this field will not contain further
106
     * reply_to_message fields even if it itself is a reply.
107
     *
108
     * @var Message|null
109
     */
110
    private $reply_to_message;
111
112
    /**
113
     * Optional. Date the message was last edited in Unix time
114
     *
115
     * @var int|null
116
     */
117
    private $edit_date;
118
119
    /**
120
     * Optional. The unique identifier of a media message group this message belongs to
121
     *
122
     * @var string|null
123
     */
124
    private $media_group_id;
125
126
    /**
127
     * Optional. Signature of the post author for messages in channels
128
     *
129
     * @var string|null
130
     */
131
    private $author_signature;
132
133
    /**
134
     * Optional. For text messages, the actual UTF-8 text of the message, 0-4096 characters
135
     *
136
     * @var string|null
137
     */
138
    private $text;
139
140
    /**
141
     * Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text
142
     *
143
     * @var MessageEntity[]|null
144
     */
145
    private $entities;
146
147
    /**
148
     * Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the
149
     * caption
150
     *
151
     * @var MessageEntity[]|null
152
     */
153
    private $caption_entities;
154
155
    /**
156
     * Optional. Message is an audio file, information about the file
157
     *
158
     * @var Audio|null
159
     */
160
    private $audio;
161
162
    /**
163
     * Optional. Message is a general file, information about the file
164
     *
165
     * @var Document|null
166
     */
167
    private $document;
168
169
    /**
170
     * Optional. Message is an animation, information about the animation. For backward compatibility, when this field is
171
     * set, the document field will also be set
172
     *
173
     * @var Animation|null
174
     */
175
    private $animation;
176
177
    /**
178
     * Optional. Message is a game, information about the game. More about games >>
179
     *
180
     * @var Game|null
181
     */
182
    private $game;
183
184
    /**
185
     * Optional. Message is a photo, available sizes of the photo
186
     *
187
     * @var File\PhotoSize[]|null
188
     */
189
    private $photo;
190
191
    /**
192
     * Optional. Message is a sticker, information about the sticker
193
     *
194
     * @var Sticker|null
195
     */
196
    private $sticker;
197
198
    /**
199
     * Optional. Message is a video, information about the video
200
     *
201
     * @var Video|null
202
     */
203
    private $video;
204
205
    /**
206
     * Optional. Message is a voice message, information about the file
207
     *
208
     * @var Voice|null
209
     */
210
    private $voice;
211
212
    /**
213
     * Optional. Message is a video note, information about the video message
214
     *
215
     * @var VideoNote|null
216
     */
217
    private $video_note;
218
219
    /**
220
     * Optional. Caption for the animation, audio, document, photo, video or voice, 0-1024 characters
221
     *
222
     * @var string|null
223
     */
224
    private $caption;
225
226
    /**
227
     * Optional. Message is a shared contact, information about the contact
228
     *
229
     * @var Contact|null
230
     */
231
    private $contact;
232
233
    /**
234
     * Optional. Message is a shared location, information about the location
235
     *
236
     * @var Location|null
237
     */
238
    private $location;
239
240
    /**
241
     * Optional. Message is a venue, information about the venue
242
     *
243
     * @var Venue|null
244
     */
245
    private $venue;
246
247
    /**
248
     * Optional. Message is a native poll, information about the poll
249
     *
250
     * @var Poll|null
251
     */
252
    private $poll;
253
254
    /**
255
     * Optional. Message is a dice with random value from 1 to 6
256
     *
257
     * @var Dice|null
258
     */
259
    private $dice;
260
261
    /**
262
     * Optional. New members that were added to the group or supergroup and information about them (the bot itself may be
263
     * one of these members)
264
     *
265
     * @var User[]|null
266
     */
267
    private $new_chat_members;
268
269
    /**
270
     * Optional. A member was removed from the group, information about them (this member may be the bot itself)
271
     *
272
     * @var User|null
273
     */
274
    private $left_chat_member;
275
276
    /**
277
     * Optional. A chat title was changed to this value
278
     *
279
     * @var string|null
280
     */
281
    private $new_chat_title;
282
283
    /**
284
     * Optional. A chat photo was change to this value
285
     *
286
     * @var File\PhotoSize[]|null
287
     */
288
    private $new_chat_photo;
289
290
    /**
291
     * Optional. Service message: the chat photo was deleted
292
     *
293
     * @var bool|null
294
     */
295
    private $delete_chat_photo;
296
297
    /**
298
     * Optional. Service message: the group has been created
299
     *
300
     * @var bool|null
301
     */
302
    private $group_chat_created;
303
304
    /**
305
     * Optional. Service message: the supergroup has been created. This field can't be received in a message coming through
306
     * updates, because bot can't be a member of a supergroup when it is created. It can only be found in
307
     * reply_to_message if someone replies to a very first message in a directly created supergroup.
308
     *
309
     * @var bool|null
310
     */
311
    private $supergroup_chat_created;
312
313
    /**
314
     * Optional. Service message: the channel has been created. This field can't be received in a message coming through
315
     * updates, because bot can't be a member of a channel when it is created. It can only be found in reply_to_message
316
     * if someone replies to a very first message in a channel.
317
     *
318
     * @var bool|null
319
     */
320
    private $channel_chat_created;
321
322
    /**
323
     * Optional. The group has been migrated to a supergroup with the specified identifier. This number may be greater than
324
     * 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller
325
     * than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
326
     *
327
     * @var int|null
328
     */
329
    private $migrate_to_chat_id;
330
331
    /**
332
     * Optional. The supergroup has been migrated from a group with the specified identifier. This number may be greater
333
     * than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is
334
     * smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this
335
     * identifier.
336
     *
337
     * @var int|null
338
     */
339
    private $migrate_from_chat_id;
340
341
    /**
342
     * Optional. Specified message was pinned. Note that the Message object in this field will not contain further
343
     * reply_to_message fields even if it is itself a reply.
344
     *
345
     * @var Message|null
346
     */
347
    private $pinned_message;
348
349
    /**
350
     * Optional. Message is an invoice for a payment, information about the invoice. More about payments >>
351
     *
352
     * @var Invoice|null
353
     */
354
    private $invoice;
355
356
    /**
357
     * Optional. Message is a service message about a successful payment, information about the payment. More about payments >>
358
     *
359
     * @var SuccessfulPayment|null
360
     */
361
    private $successful_payment;
362
363
    /**
364
     * Optional. The domain name of the website on which the user has logged in. More about Telegram Login >>
365
     *
366
     * @var string|null
367
     */
368
    private $connected_website;
369
370
    /**
371
     * Optional. Telegram Passport data
372
     *
373
     * @var PassportData|null
374
     */
375
    private $passport_data;
376
377
    /**
378
     * Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.
379
     *
380
     * @var InlineKeyboardMarkup|null
381
     */
382
    private $reply_markup;
383
384
    /**
385
     * Optional. Bot through which the message was sent.
386
     *
387
     * @var User|null
388
     */
389
    private $via_bot;
390
391
    /**
392
     * @return int
393
     */
394
    public function getMessageId(): int
395
    {
396
        return $this->message_id;
397
    }
398
399
    /**
400
     * @param int $message_id
401
     */
402
    public function setMessageId(int $message_id): void
403
    {
404
        $this->message_id = $message_id;
405
    }
406
407
    /**
408
     * @return User|null
409
     */
410
    public function getFrom(): ?User
411
    {
412
        return $this->from;
413
    }
414
415
    /**
416
     * @param User|null $from
417
     */
418
    public function setFrom(?User $from): void
419
    {
420
        $this->from = $from;
421
    }
422
423
    /**
424
     * @return int
425
     */
426
    public function getDate(): int
427
    {
428
        return $this->date;
429
    }
430
431
    /**
432
     * @param int $date
433
     */
434
    public function setDate(int $date): void
435
    {
436
        $this->date = $date;
437
    }
438
439
    /**
440
     * @return Chat
441
     */
442
    public function getChat(): Chat
443
    {
444
        return $this->chat;
445
    }
446
447
    /**
448
     * @param Chat $chat
449
     */
450
    public function setChat(Chat $chat): void
451
    {
452
        $this->chat = $chat;
453
    }
454
455
    /**
456
     * @return User|null
457
     */
458
    public function getForwardFrom(): ?User
459
    {
460
        return $this->forward_from;
461
    }
462
463
    /**
464
     * @param User|null $forward_from
465
     */
466
    public function setForwardFrom(?User $forward_from): void
467
    {
468
        $this->forward_from = $forward_from;
469
    }
470
471
    /**
472
     * @return Chat|null
473
     */
474
    public function getForwardFromChat(): ?Chat
475
    {
476
        return $this->forward_from_chat;
477
    }
478
479
    /**
480
     * @param Chat|null $forward_from_chat
481
     */
482
    public function setForwardFromChat(?Chat $forward_from_chat): void
483
    {
484
        $this->forward_from_chat = $forward_from_chat;
485
    }
486
487
    /**
488
     * @return int|null
489
     */
490
    public function getForwardFromMessageId(): ?int
491
    {
492
        return $this->forward_from_message_id;
493
    }
494
495
    /**
496
     * @param int|null $forward_from_message_id
497
     */
498
    public function setForwardFromMessageId(?int $forward_from_message_id): void
499
    {
500
        $this->forward_from_message_id = $forward_from_message_id;
501
    }
502
503
    /**
504
     * @return string|null
505
     */
506
    public function getForwardSignature(): ?string
507
    {
508
        return $this->forward_signature;
509
    }
510
511
    /**
512
     * @param string|null $forward_signature
513
     */
514
    public function setForwardSignature(?string $forward_signature): void
515
    {
516
        $this->forward_signature = $forward_signature;
517
    }
518
519
    /**
520
     * @return string|null
521
     */
522
    public function getForwardSenderName(): ?string
523
    {
524
        return $this->forward_sender_name;
525
    }
526
527
    /**
528
     * @param string|null $forward_sender_name
529
     */
530
    public function setForwardSenderName(?string $forward_sender_name): void
531
    {
532
        $this->forward_sender_name = $forward_sender_name;
533
    }
534
535
    /**
536
     * @return int|null
537
     */
538
    public function getForwardDate(): ?int
539
    {
540
        return $this->forward_date;
541
    }
542
543
    /**
544
     * @param int|null $forward_date
545
     */
546
    public function setForwardDate(?int $forward_date): void
547
    {
548
        $this->forward_date = $forward_date;
549
    }
550
551
    /**
552
     * @return Message|null
553
     */
554
    public function getReplyToMessage(): ?Message
555
    {
556
        return $this->reply_to_message;
557
    }
558
559
    /**
560
     * @param Message|null $reply_to_message
561
     */
562
    public function setReplyToMessage(?Message $reply_to_message): void
563
    {
564
        $this->reply_to_message = $reply_to_message;
565
    }
566
567
    /**
568
     * @return int|null
569
     */
570
    public function getEditDate(): ?int
571
    {
572
        return $this->edit_date;
573
    }
574
575
    /**
576
     * @param int|null $edit_date
577
     */
578
    public function setEditDate(?int $edit_date): void
579
    {
580
        $this->edit_date = $edit_date;
581
    }
582
583
    /**
584
     * @return string|null
585
     */
586
    public function getMediaGroupId(): ?string
587
    {
588
        return $this->media_group_id;
589
    }
590
591
    /**
592
     * @param string|null $media_group_id
593
     */
594
    public function setMediaGroupId(?string $media_group_id): void
595
    {
596
        $this->media_group_id = $media_group_id;
597
    }
598
599
    /**
600
     * @return string|null
601
     */
602
    public function getAuthorSignature(): ?string
603
    {
604
        return $this->author_signature;
605
    }
606
607
    /**
608
     * @param string|null $author_signature
609
     */
610
    public function setAuthorSignature(?string $author_signature): void
611
    {
612
        $this->author_signature = $author_signature;
613
    }
614
615
    /**
616
     * @return string|null
617
     */
618
    public function getText(): ?string
619
    {
620
        return $this->text;
621
    }
622
623
    /**
624
     * @param string|null $text
625
     */
626
    public function setText(?string $text): void
627
    {
628
        $this->text = $text;
629
    }
630
631
    /**
632
     * @return MessageEntity[]|null
633
     */
634
    public function getEntities(): ?array
635
    {
636
        return $this->entities;
637
    }
638
639
    /**
640
     * @param MessageEntity[]|null $entities
641
     */
642
    public function setEntities(?array $entities): void
643
    {
644
        $this->entities = $entities;
645
    }
646
647
    /**
648
     * @return MessageEntity[]|null
649
     */
650
    public function getCaptionEntities(): ?array
651
    {
652
        return $this->caption_entities;
653
    }
654
655
    /**
656
     * @param MessageEntity[]|null $caption_entities
657
     */
658
    public function setCaptionEntities(?array $caption_entities): void
659
    {
660
        $this->caption_entities = $caption_entities;
661
    }
662
663
    /**
664
     * @return Audio|null
665
     */
666
    public function getAudio(): ?Audio
667
    {
668
        return $this->audio;
669
    }
670
671
    /**
672
     * @param Audio|null $audio
673
     */
674
    public function setAudio(?Audio $audio): void
675
    {
676
        $this->audio = $audio;
677
    }
678
679
    /**
680
     * @return Document|null
681
     */
682
    public function getDocument(): ?Document
683
    {
684
        return $this->document;
685
    }
686
687
    /**
688
     * @param Document|null $document
689
     */
690
    public function setDocument(?Document $document): void
691
    {
692
        $this->document = $document;
693
    }
694
695
    /**
696
     * @return Animation|null
697
     */
698
    public function getAnimation(): ?Animation
699
    {
700
        return $this->animation;
701
    }
702
703
    /**
704
     * @param Animation|null $animation
705
     */
706
    public function setAnimation(?Animation $animation): void
707
    {
708
        $this->animation = $animation;
709
    }
710
711
    /**
712
     * @return Game|null
713
     */
714
    public function getGame(): ?Game
715
    {
716
        return $this->game;
717
    }
718
719
    /**
720
     * @param Game|null $game
721
     */
722
    public function setGame(?Game $game): void
723
    {
724
        $this->game = $game;
725
    }
726
727
    /**
728
     * @return File\PhotoSize[]|null
729
     */
730
    public function getPhoto(): ?array
731
    {
732
        return $this->photo;
733
    }
734
735
    /**
736
     * @param File\PhotoSize[]|null $photo
737
     */
738
    public function setPhoto(?array $photo): void
739
    {
740
        $this->photo = $photo;
741
    }
742
743
    /**
744
     * @return Sticker|null
745
     */
746
    public function getSticker(): ?Sticker
747
    {
748
        return $this->sticker;
749
    }
750
751
    /**
752
     * @param Sticker|null $sticker
753
     */
754
    public function setSticker(?Sticker $sticker): void
755
    {
756
        $this->sticker = $sticker;
757
    }
758
759
    /**
760
     * @return Video|null
761
     */
762
    public function getVideo(): ?Video
763
    {
764
        return $this->video;
765
    }
766
767
    /**
768
     * @param Video|null $video
769
     */
770
    public function setVideo(?Video $video): void
771
    {
772
        $this->video = $video;
773
    }
774
775
    /**
776
     * @return Voice|null
777
     */
778
    public function getVoice(): ?Voice
779
    {
780
        return $this->voice;
781
    }
782
783
    /**
784
     * @param Voice|null $voice
785
     */
786
    public function setVoice(?Voice $voice): void
787
    {
788
        $this->voice = $voice;
789
    }
790
791
    /**
792
     * @return VideoNote|null
793
     */
794
    public function getVideoNote(): ?VideoNote
795
    {
796
        return $this->video_note;
797
    }
798
799
    /**
800
     * @param VideoNote|null $video_note
801
     */
802
    public function setVideoNote(?VideoNote $video_note): void
803
    {
804
        $this->video_note = $video_note;
805
    }
806
807
    /**
808
     * @return string|null
809
     */
810
    public function getCaption(): ?string
811
    {
812
        return $this->caption;
813
    }
814
815
    /**
816
     * @param string|null $caption
817
     */
818
    public function setCaption(?string $caption): void
819
    {
820
        $this->caption = $caption;
821
    }
822
823
    /**
824
     * @return Contact|null
825
     */
826
    public function getContact(): ?Contact
827
    {
828
        return $this->contact;
829
    }
830
831
    /**
832
     * @param Contact|null $contact
833
     */
834
    public function setContact(?Contact $contact): void
835
    {
836
        $this->contact = $contact;
837
    }
838
839
    /**
840
     * @return Location|null
841
     */
842
    public function getLocation(): ?Location
843
    {
844
        return $this->location;
845
    }
846
847
    /**
848
     * @param Location|null $location
849
     */
850
    public function setLocation(?Location $location): void
851
    {
852
        $this->location = $location;
853
    }
854
855
    /**
856
     * @return Venue|null
857
     */
858
    public function getVenue(): ?Venue
859
    {
860
        return $this->venue;
861
    }
862
863
    /**
864
     * @param Venue|null $venue
865
     */
866
    public function setVenue(?Venue $venue): void
867
    {
868
        $this->venue = $venue;
869
    }
870
871
    /**
872
     * @return Poll|null
873
     */
874
    public function getPoll(): ?Poll
875
    {
876
        return $this->poll;
877
    }
878
879
    /**
880
     * @param Poll|null $poll
881
     */
882
    public function setPoll(?Poll $poll): void
883
    {
884
        $this->poll = $poll;
885
    }
886
887
    /**
888
     * @return Dice|null
889
     */
890
    public function getDice(): ?Dice
891
    {
892
        return $this->dice;
893
    }
894
895
    /**
896
     * @param Dice|null $dice
897
     */
898
    public function setDice(?Dice $dice): void
899
    {
900
        $this->dice = $dice;
901
    }
902
903
    /**
904
     * @return User[]|null
905
     */
906
    public function getNewChatMembers(): ?array
907
    {
908
        return $this->new_chat_members;
909
    }
910
911
    /**
912
     * @param User[]|null $new_chat_members
913
     */
914
    public function setNewChatMembers(?array $new_chat_members): void
915
    {
916
        $this->new_chat_members = $new_chat_members;
917
    }
918
919
    /**
920
     * @return User|null
921
     */
922
    public function getLeftChatMember(): ?User
923
    {
924
        return $this->left_chat_member;
925
    }
926
927
    /**
928
     * @param User|null $left_chat_member
929
     */
930
    public function setLeftChatMember(?User $left_chat_member): void
931
    {
932
        $this->left_chat_member = $left_chat_member;
933
    }
934
935
    /**
936
     * @return string|null
937
     */
938
    public function getNewChatTitle(): ?string
939
    {
940
        return $this->new_chat_title;
941
    }
942
943
    /**
944
     * @param string|null $new_chat_title
945
     */
946
    public function setNewChatTitle(?string $new_chat_title): void
947
    {
948
        $this->new_chat_title = $new_chat_title;
949
    }
950
951
    /**
952
     * @return File\PhotoSize[]|null
953
     */
954
    public function getNewChatPhoto(): ?array
955
    {
956
        return $this->new_chat_photo;
957
    }
958
959
    /**
960
     * @param File\PhotoSize[]|null $new_chat_photo
961
     */
962
    public function setNewChatPhoto(?array $new_chat_photo): void
963
    {
964
        $this->new_chat_photo = $new_chat_photo;
965
    }
966
967
    /**
968
     * @return bool|null
969
     */
970
    public function getDeleteChatPhoto(): ?bool
971
    {
972
        return $this->delete_chat_photo;
973
    }
974
975
    /**
976
     * @param bool|null $delete_chat_photo
977
     */
978
    public function setDeleteChatPhoto(?bool $delete_chat_photo): void
979
    {
980
        $this->delete_chat_photo = $delete_chat_photo;
981
    }
982
983
    /**
984
     * @return bool|null
985
     */
986
    public function getGroupChatCreated(): ?bool
987
    {
988
        return $this->group_chat_created;
989
    }
990
991
    /**
992
     * @param bool|null $group_chat_created
993
     */
994
    public function setGroupChatCreated(?bool $group_chat_created): void
995
    {
996
        $this->group_chat_created = $group_chat_created;
997
    }
998
999
    /**
1000
     * @return bool|null
1001
     */
1002
    public function getSupergroupChatCreated(): ?bool
1003
    {
1004
        return $this->supergroup_chat_created;
1005
    }
1006
1007
    /**
1008
     * @param bool|null $supergroup_chat_created
1009
     */
1010
    public function setSupergroupChatCreated(?bool $supergroup_chat_created): void
1011
    {
1012
        $this->supergroup_chat_created = $supergroup_chat_created;
1013
    }
1014
1015
    /**
1016
     * @return bool|null
1017
     */
1018
    public function getChannelChatCreated(): ?bool
1019
    {
1020
        return $this->channel_chat_created;
1021
    }
1022
1023
    /**
1024
     * @param bool|null $channel_chat_created
1025
     */
1026
    public function setChannelChatCreated(?bool $channel_chat_created): void
1027
    {
1028
        $this->channel_chat_created = $channel_chat_created;
1029
    }
1030
1031
    /**
1032
     * @return int|null
1033
     */
1034
    public function getMigrateToChatId(): ?int
1035
    {
1036
        return $this->migrate_to_chat_id;
1037
    }
1038
1039
    /**
1040
     * @param int|null $migrate_to_chat_id
1041
     */
1042
    public function setMigrateToChatId(?int $migrate_to_chat_id): void
1043
    {
1044
        $this->migrate_to_chat_id = $migrate_to_chat_id;
1045
    }
1046
1047
    /**
1048
     * @return int|null
1049
     */
1050
    public function getMigrateFromChatId(): ?int
1051
    {
1052
        return $this->migrate_from_chat_id;
1053
    }
1054
1055
    /**
1056
     * @param int|null $migrate_from_chat_id
1057
     */
1058
    public function setMigrateFromChatId(?int $migrate_from_chat_id): void
1059
    {
1060
        $this->migrate_from_chat_id = $migrate_from_chat_id;
1061
    }
1062
1063
    /**
1064
     * @return Message|null
1065
     */
1066
    public function getPinnedMessage(): ?Message
1067
    {
1068
        return $this->pinned_message;
1069
    }
1070
1071
    /**
1072
     * @param Message|null $pinned_message
1073
     */
1074
    public function setPinnedMessage(?Message $pinned_message): void
1075
    {
1076
        $this->pinned_message = $pinned_message;
1077
    }
1078
1079
    /**
1080
     * @return Invoice|null
1081
     */
1082
    public function getInvoice(): ?Invoice
1083
    {
1084
        return $this->invoice;
1085
    }
1086
1087
    /**
1088
     * @param Invoice|null $invoice
1089
     */
1090
    public function setInvoice(?Invoice $invoice): void
1091
    {
1092
        $this->invoice = $invoice;
1093
    }
1094
1095
    /**
1096
     * @return SuccessfulPayment|null
1097
     */
1098
    public function getSuccessfulPayment(): ?SuccessfulPayment
1099
    {
1100
        return $this->successful_payment;
1101
    }
1102
1103
    /**
1104
     * @param SuccessfulPayment|null $successful_payment
1105
     */
1106
    public function setSuccessfulPayment(?SuccessfulPayment $successful_payment): void
1107
    {
1108
        $this->successful_payment = $successful_payment;
1109
    }
1110
1111
    /**
1112
     * @return string|null
1113
     */
1114
    public function getConnectedWebsite(): ?string
1115
    {
1116
        return $this->connected_website;
1117
    }
1118
1119
    /**
1120
     * @param string|null $connected_website
1121
     */
1122
    public function setConnectedWebsite(?string $connected_website): void
1123
    {
1124
        $this->connected_website = $connected_website;
1125
    }
1126
1127
    /**
1128
     * @return PassportData|null
1129
     */
1130
    public function getPassportData(): ?PassportData
1131
    {
1132
        return $this->passport_data;
1133
    }
1134
1135
    /**
1136
     * @param PassportData|null $passport_data
1137
     */
1138
    public function setPassportData(?PassportData $passport_data): void
1139
    {
1140
        $this->passport_data = $passport_data;
1141
    }
1142
1143
    /**
1144
     * @return InlineKeyboardMarkup|null
1145
     */
1146
    public function getReplyMarkup(): ?InlineKeyboardMarkup
1147
    {
1148
        return $this->reply_markup;
1149
    }
1150
1151
    /**
1152
     * @param InlineKeyboardMarkup|null $reply_markup
1153
     */
1154
    public function setReplyMarkup(?InlineKeyboardMarkup $reply_markup): void
1155
    {
1156
        $this->reply_markup = $reply_markup;
1157
    }
1158
1159
    /**
1160
     * @return User|null
1161
     */
1162
    public function getViaBot(): ?User
1163
    {
1164
        return $this->via_bot;
1165
    }
1166
1167
    /**
1168
     * @param User|null $via_bot
1169
     */
1170
    public function setViaBot(?User $via_bot): void
1171
    {
1172
        $this->via_bot = $via_bot;
1173
    }
1174
1175
}