@mtkruto/node 0.0.968 → 0.0.969

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/tl/2_types.js CHANGED
@@ -1,7 +1,8 @@
1
- import { flags, id, paramDesc, params, TLObject } from "./1_tl_object.js";
1
+ // deno-fmt-ignore-file
2
+ import { id, params, TLObject, paramDesc, flags } from "./1_tl_object.js";
2
3
  export class Type extends TLObject {
3
4
  }
4
- // Uknown type
5
+ // Unknown type (generic)
5
6
  export class TypeX extends Type {
6
7
  }
7
8
  export class TypeResPQ extends Type {
@@ -3595,10 +3596,10 @@ export class InputChatUploadedPhoto extends TypeInputChatPhoto {
3595
3596
  writable: true,
3596
3597
  value: void 0
3597
3598
  });
3598
- this.file = params.file;
3599
- this.video = params.video;
3600
- this.videoStartTs = params.videoStartTs;
3601
- this.videoEmojiMarkup = params.videoEmojiMarkup;
3599
+ this.file = params?.file;
3600
+ this.video = params?.video;
3601
+ this.videoStartTs = params?.videoStartTs;
3602
+ this.videoEmojiMarkup = params?.videoEmojiMarkup;
3602
3603
  }
3603
3604
  }
3604
3605
  export class InputChatPhoto extends TypeInputChatPhoto {
@@ -6963,9 +6964,9 @@ export class MessageMediaPhoto extends TypeMessageMedia {
6963
6964
  writable: true,
6964
6965
  value: void 0
6965
6966
  });
6966
- this.spoiler = params.spoiler;
6967
- this.photo = params.photo;
6968
- this.ttlSeconds = params.ttlSeconds;
6967
+ this.spoiler = params?.spoiler;
6968
+ this.photo = params?.photo;
6969
+ this.ttlSeconds = params?.ttlSeconds;
6969
6970
  }
6970
6971
  }
6971
6972
  export class MessageMediaGeo extends TypeMessageMedia {
@@ -7124,11 +7125,11 @@ export class MessageMediaDocument extends TypeMessageMedia {
7124
7125
  writable: true,
7125
7126
  value: void 0
7126
7127
  });
7127
- this.nopremium = params.nopremium;
7128
- this.spoiler = params.spoiler;
7129
- this.document = params.document;
7130
- this.altDocument = params.altDocument;
7131
- this.ttlSeconds = params.ttlSeconds;
7128
+ this.nopremium = params?.nopremium;
7129
+ this.spoiler = params?.spoiler;
7130
+ this.document = params?.document;
7131
+ this.altDocument = params?.altDocument;
7132
+ this.ttlSeconds = params?.ttlSeconds;
7132
7133
  }
7133
7134
  }
7134
7135
  export class MessageMediaWebPage extends TypeMessageMedia {
@@ -8154,9 +8155,9 @@ export class MessageActionBotAllowed extends TypeMessageAction {
8154
8155
  writable: true,
8155
8156
  value: void 0
8156
8157
  });
8157
- this.attachMenu = params.attachMenu;
8158
- this.domain = params.domain;
8159
- this.app = params.app;
8158
+ this.attachMenu = params?.attachMenu;
8159
+ this.domain = params?.domain;
8160
+ this.app = params?.app;
8160
8161
  }
8161
8162
  }
8162
8163
  export class MessageActionSecureValuesSentMe extends TypeMessageAction {
@@ -8669,10 +8670,10 @@ export class MessageActionTopicEdit extends TypeMessageAction {
8669
8670
  writable: true,
8670
8671
  value: void 0
8671
8672
  });
8672
- this.title = params.title;
8673
- this.iconEmojiId = params.iconEmojiId;
8674
- this.closed = params.closed;
8675
- this.hidden = params.hidden;
8673
+ this.title = params?.title;
8674
+ this.iconEmojiId = params?.iconEmojiId;
8675
+ this.closed = params?.closed;
8676
+ this.hidden = params?.hidden;
8676
8677
  }
8677
8678
  }
8678
8679
  export class MessageActionSuggestProfilePhoto extends TypeMessageAction {
@@ -9616,7 +9617,7 @@ export class AuthAuthorizationSignUpRequired extends TypeAuthAuthorization {
9616
9617
  writable: true,
9617
9618
  value: void 0
9618
9619
  });
9619
- this.termsOfService = params.termsOfService;
9620
+ this.termsOfService = params?.termsOfService;
9620
9621
  }
9621
9622
  }
9622
9623
  export class AuthExportedAuthorization extends TypeAuthExportedAuthorization {
@@ -9826,13 +9827,13 @@ export class InputPeerNotifySettings extends TypeInputPeerNotifySettings {
9826
9827
  writable: true,
9827
9828
  value: void 0
9828
9829
  });
9829
- this.showPreviews = params.showPreviews;
9830
- this.silent = params.silent;
9831
- this.muteUntil = params.muteUntil;
9832
- this.sound = params.sound;
9833
- this.storiesMuted = params.storiesMuted;
9834
- this.storiesHideSender = params.storiesHideSender;
9835
- this.storiesSound = params.storiesSound;
9830
+ this.showPreviews = params?.showPreviews;
9831
+ this.silent = params?.silent;
9832
+ this.muteUntil = params?.muteUntil;
9833
+ this.sound = params?.sound;
9834
+ this.storiesMuted = params?.storiesMuted;
9835
+ this.storiesHideSender = params?.storiesHideSender;
9836
+ this.storiesSound = params?.storiesSound;
9836
9837
  }
9837
9838
  }
9838
9839
  export class PeerNotifySettings extends TypePeerNotifySettings {
@@ -9939,17 +9940,17 @@ export class PeerNotifySettings extends TypePeerNotifySettings {
9939
9940
  writable: true,
9940
9941
  value: void 0
9941
9942
  });
9942
- this.showPreviews = params.showPreviews;
9943
- this.silent = params.silent;
9944
- this.muteUntil = params.muteUntil;
9945
- this.iosSound = params.iosSound;
9946
- this.androidSound = params.androidSound;
9947
- this.otherSound = params.otherSound;
9948
- this.storiesMuted = params.storiesMuted;
9949
- this.storiesHideSender = params.storiesHideSender;
9950
- this.storiesIosSound = params.storiesIosSound;
9951
- this.storiesAndroidSound = params.storiesAndroidSound;
9952
- this.storiesOtherSound = params.storiesOtherSound;
9943
+ this.showPreviews = params?.showPreviews;
9944
+ this.silent = params?.silent;
9945
+ this.muteUntil = params?.muteUntil;
9946
+ this.iosSound = params?.iosSound;
9947
+ this.androidSound = params?.androidSound;
9948
+ this.otherSound = params?.otherSound;
9949
+ this.storiesMuted = params?.storiesMuted;
9950
+ this.storiesHideSender = params?.storiesHideSender;
9951
+ this.storiesIosSound = params?.storiesIosSound;
9952
+ this.storiesAndroidSound = params?.storiesAndroidSound;
9953
+ this.storiesOtherSound = params?.storiesOtherSound;
9953
9954
  }
9954
9955
  }
9955
9956
  export class PeerSettings extends TypePeerSettings {
@@ -10064,18 +10065,18 @@ export class PeerSettings extends TypePeerSettings {
10064
10065
  writable: true,
10065
10066
  value: void 0
10066
10067
  });
10067
- this.reportSpam = params.reportSpam;
10068
- this.addContact = params.addContact;
10069
- this.blockContact = params.blockContact;
10070
- this.shareContact = params.shareContact;
10071
- this.needContactsException = params.needContactsException;
10072
- this.reportGeo = params.reportGeo;
10073
- this.autoarchived = params.autoarchived;
10074
- this.inviteMembers = params.inviteMembers;
10075
- this.requestChatBroadcast = params.requestChatBroadcast;
10076
- this.geoDistance = params.geoDistance;
10077
- this.requestChatTitle = params.requestChatTitle;
10078
- this.requestChatDate = params.requestChatDate;
10068
+ this.reportSpam = params?.reportSpam;
10069
+ this.addContact = params?.addContact;
10070
+ this.blockContact = params?.blockContact;
10071
+ this.shareContact = params?.shareContact;
10072
+ this.needContactsException = params?.needContactsException;
10073
+ this.reportGeo = params?.reportGeo;
10074
+ this.autoarchived = params?.autoarchived;
10075
+ this.inviteMembers = params?.inviteMembers;
10076
+ this.requestChatBroadcast = params?.requestChatBroadcast;
10077
+ this.geoDistance = params?.geoDistance;
10078
+ this.requestChatTitle = params?.requestChatTitle;
10079
+ this.requestChatDate = params?.requestChatDate;
10079
10080
  }
10080
10081
  }
10081
10082
  export class WallPaper extends TypeWallPaper {
@@ -11633,7 +11634,7 @@ export class InputMessagesFilterPhoneCalls extends TypeMessagesFilter {
11633
11634
  writable: true,
11634
11635
  value: void 0
11635
11636
  });
11636
- this.missed = params.missed;
11637
+ this.missed = params?.missed;
11637
11638
  }
11638
11639
  }
11639
11640
  export class InputMessagesFilterRoundVoice extends TypeMessagesFilter {
@@ -13093,8 +13094,8 @@ export class UpdateStickerSets extends TypeUpdate {
13093
13094
  writable: true,
13094
13095
  value: void 0
13095
13096
  });
13096
- this.masks = params.masks;
13097
- this.emojis = params.emojis;
13097
+ this.masks = params?.masks;
13098
+ this.emojis = params?.emojis;
13098
13099
  }
13099
13100
  }
13100
13101
  export class UpdateSavedGifs extends TypeUpdate {
@@ -13749,8 +13750,8 @@ export class UpdatePinnedDialogs extends TypeUpdate {
13749
13750
  writable: true,
13750
13751
  value: void 0
13751
13752
  });
13752
- this.folderId = params.folderId;
13753
- this.order = params.order;
13753
+ this.folderId = params?.folderId;
13754
+ this.order = params?.order;
13754
13755
  }
13755
13756
  }
13756
13757
  export class UpdateBotWebhookJSON extends TypeUpdate {
@@ -20956,7 +20957,7 @@ export class WebPageNotModified extends TypeWebPage {
20956
20957
  writable: true,
20957
20958
  value: void 0
20958
20959
  });
20959
- this.cachedPageViews = params.cachedPageViews;
20960
+ this.cachedPageViews = params?.cachedPageViews;
20960
20961
  }
20961
20962
  }
20962
20963
  export class Authorization extends TypeAuthorization {
@@ -21331,8 +21332,8 @@ export class AccountPasswordSettings extends TypeAccountPasswordSettings {
21331
21332
  writable: true,
21332
21333
  value: void 0
21333
21334
  });
21334
- this.email = params.email;
21335
- this.secureSettings = params.secureSettings;
21335
+ this.email = params?.email;
21336
+ this.secureSettings = params?.secureSettings;
21336
21337
  }
21337
21338
  }
21338
21339
  export class AccountPasswordInputSettings extends TypeAccountPasswordInputSettings {
@@ -21391,11 +21392,11 @@ export class AccountPasswordInputSettings extends TypeAccountPasswordInputSettin
21391
21392
  writable: true,
21392
21393
  value: void 0
21393
21394
  });
21394
- this.newAlgo = params.newAlgo;
21395
- this.newPasswordHash = params.newPasswordHash;
21396
- this.hint = params.hint;
21397
- this.email = params.email;
21398
- this.newSecureSettings = params.newSecureSettings;
21395
+ this.newAlgo = params?.newAlgo;
21396
+ this.newPasswordHash = params?.newPasswordHash;
21397
+ this.hint = params?.hint;
21398
+ this.email = params?.email;
21399
+ this.newSecureSettings = params?.newSecureSettings;
21399
21400
  }
21400
21401
  }
21401
21402
  export class AuthPasswordRecovery extends TypeAuthPasswordRecovery {
@@ -22281,12 +22282,12 @@ export class BotInfo extends TypeBotInfo {
22281
22282
  writable: true,
22282
22283
  value: void 0
22283
22284
  });
22284
- this.userId = params.userId;
22285
- this.description = params.description;
22286
- this.descriptionPhoto = params.descriptionPhoto;
22287
- this.descriptionDocument = params.descriptionDocument;
22288
- this.commands = params.commands;
22289
- this.menuButton = params.menuButton;
22285
+ this.userId = params?.userId;
22286
+ this.description = params?.description;
22287
+ this.descriptionPhoto = params?.descriptionPhoto;
22288
+ this.descriptionDocument = params?.descriptionDocument;
22289
+ this.commands = params?.commands;
22290
+ this.menuButton = params?.menuButton;
22290
22291
  }
22291
22292
  }
22292
22293
  export class KeyboardButton extends TypeKeyboardButton {
@@ -22928,7 +22929,7 @@ export class ReplyKeyboardHide extends TypeReplyMarkup {
22928
22929
  writable: true,
22929
22930
  value: void 0
22930
22931
  });
22931
- this.selective = params.selective;
22932
+ this.selective = params?.selective;
22932
22933
  }
22933
22934
  }
22934
22935
  export class ReplyKeyboardForceReply extends TypeReplyMarkup {
@@ -22971,9 +22972,9 @@ export class ReplyKeyboardForceReply extends TypeReplyMarkup {
22971
22972
  writable: true,
22972
22973
  value: void 0
22973
22974
  });
22974
- this.singleUse = params.singleUse;
22975
- this.selective = params.selective;
22976
- this.placeholder = params.placeholder;
22975
+ this.singleUse = params?.singleUse;
22976
+ this.selective = params?.selective;
22977
+ this.placeholder = params?.placeholder;
22977
22978
  }
22978
22979
  }
22979
22980
  export class ReplyKeyboardMarkup extends TypeReplyMarkup {
@@ -24733,8 +24734,8 @@ export class ChannelParticipantsMentions extends TypeChannelParticipantsFilter {
24733
24734
  writable: true,
24734
24735
  value: void 0
24735
24736
  });
24736
- this.q = params.q;
24737
- this.topMsgId = params.topMsgId;
24737
+ this.q = params?.q;
24738
+ this.topMsgId = params?.topMsgId;
24738
24739
  }
24739
24740
  }
24740
24741
  export class ChannelsChannelParticipants extends TypeChannelsChannelParticipants {
@@ -25287,7 +25288,7 @@ export class InputBotInlineMessageGame extends TypeInputBotInlineMessage {
25287
25288
  writable: true,
25288
25289
  value: void 0
25289
25290
  });
25290
- this.replyMarkup = params.replyMarkup;
25291
+ this.replyMarkup = params?.replyMarkup;
25291
25292
  }
25292
25293
  }
25293
25294
  export class InputBotInlineMessageMediaInvoice extends TypeInputBotInlineMessage {
@@ -26735,8 +26736,8 @@ export class AuthSentCodeTypeSetUpEmailRequired extends TypeAuthSentCodeType {
26735
26736
  writable: true,
26736
26737
  value: void 0
26737
26738
  });
26738
- this.appleSigninAllowed = params.appleSigninAllowed;
26739
- this.googleSigninAllowed = params.googleSigninAllowed;
26739
+ this.appleSigninAllowed = params?.appleSigninAllowed;
26740
+ this.googleSigninAllowed = params?.googleSigninAllowed;
26740
26741
  }
26741
26742
  }
26742
26743
  export class AuthSentCodeTypeFragmentSms extends TypeAuthSentCodeType {
@@ -26923,7 +26924,7 @@ export class MessagesMessageEditData extends TypeMessagesMessageEditData {
26923
26924
  writable: true,
26924
26925
  value: void 0
26925
26926
  });
26926
- this.caption = params.caption;
26927
+ this.caption = params?.caption;
26927
26928
  }
26928
26929
  }
26929
26930
  export class InputBotInlineMessageID extends TypeInputBotInlineMessageID {
@@ -27400,7 +27401,7 @@ export class DraftMessageEmpty extends TypeDraftMessage {
27400
27401
  writable: true,
27401
27402
  value: void 0
27402
27403
  });
27403
- this.date = params.date;
27404
+ this.date = params?.date;
27404
27405
  }
27405
27406
  }
27406
27407
  export class DraftMessage extends TypeDraftMessage {
@@ -30066,10 +30067,10 @@ export class PaymentRequestedInfo extends TypePaymentRequestedInfo {
30066
30067
  writable: true,
30067
30068
  value: void 0
30068
30069
  });
30069
- this.name = params.name;
30070
- this.phone = params.phone;
30071
- this.email = params.email;
30072
- this.shippingAddress = params.shippingAddress;
30070
+ this.name = params?.name;
30071
+ this.phone = params?.phone;
30072
+ this.email = params?.email;
30073
+ this.shippingAddress = params?.shippingAddress;
30073
30074
  }
30074
30075
  }
30075
30076
  export class PaymentSavedCredentialsCard extends TypePaymentSavedCredentials {
@@ -30423,10 +30424,10 @@ export class InputWebFileAudioAlbumThumbLocation extends TypeInputWebFileLocatio
30423
30424
  writable: true,
30424
30425
  value: void 0
30425
30426
  });
30426
- this.small = params.small;
30427
- this.document = params.document;
30428
- this.title = params.title;
30429
- this.performer = params.performer;
30427
+ this.small = params?.small;
30428
+ this.document = params?.document;
30429
+ this.title = params?.title;
30430
+ this.performer = params?.performer;
30430
30431
  }
30431
30432
  }
30432
30433
  export class UploadWebFile extends TypeUploadWebFile {
@@ -30684,8 +30685,8 @@ export class PaymentsValidatedRequestedInfo extends TypePaymentsValidatedRequest
30684
30685
  writable: true,
30685
30686
  value: void 0
30686
30687
  });
30687
- this.id = params.id;
30688
- this.shippingOptions = params.shippingOptions;
30688
+ this.id = params?.id;
30689
+ this.shippingOptions = params?.shippingOptions;
30689
30690
  }
30690
30691
  }
30691
30692
  export class PaymentsPaymentResult extends TypePaymentsPaymentResult {
@@ -30914,8 +30915,8 @@ export class PaymentsSavedInfo extends TypePaymentsSavedInfo {
30914
30915
  writable: true,
30915
30916
  value: void 0
30916
30917
  });
30917
- this.hasSavedCredentials = params.hasSavedCredentials;
30918
- this.savedInfo = params.savedInfo;
30918
+ this.hasSavedCredentials = params?.hasSavedCredentials;
30919
+ this.savedInfo = params?.savedInfo;
30919
30920
  }
30920
30921
  }
30921
30922
  export class InputPaymentCredentialsSaved extends TypeInputPaymentCredentials {
@@ -33581,8 +33582,8 @@ export class ChannelAdminLogEventActionPinTopic extends TypeChannelAdminLogEvent
33581
33582
  writable: true,
33582
33583
  value: void 0
33583
33584
  });
33584
- this.prevTopic = params.prevTopic;
33585
- this.newTopic = params.newTopic;
33585
+ this.prevTopic = params?.prevTopic;
33586
+ this.newTopic = params?.newTopic;
33586
33587
  }
33587
33588
  }
33588
33589
  export class ChannelAdminLogEventActionToggleAntiSpam extends TypeChannelAdminLogEventAction {
@@ -33865,24 +33866,24 @@ export class ChannelAdminLogEventsFilter extends TypeChannelAdminLogEventsFilter
33865
33866
  writable: true,
33866
33867
  value: void 0
33867
33868
  });
33868
- this.join = params.join;
33869
- this.leave = params.leave;
33870
- this.invite = params.invite;
33871
- this.ban = params.ban;
33872
- this.unban = params.unban;
33873
- this.kick = params.kick;
33874
- this.unkick = params.unkick;
33875
- this.promote = params.promote;
33876
- this.demote = params.demote;
33877
- this.info = params.info;
33878
- this.settings = params.settings;
33879
- this.pinned = params.pinned;
33880
- this.edit = params.edit;
33881
- this.delete = params.delete;
33882
- this.groupCall = params.groupCall;
33883
- this.invites = params.invites;
33884
- this.send = params.send;
33885
- this.forums = params.forums;
33869
+ this.join = params?.join;
33870
+ this.leave = params?.leave;
33871
+ this.invite = params?.invite;
33872
+ this.ban = params?.ban;
33873
+ this.unban = params?.unban;
33874
+ this.kick = params?.kick;
33875
+ this.unkick = params?.unkick;
33876
+ this.promote = params?.promote;
33877
+ this.demote = params?.demote;
33878
+ this.info = params?.info;
33879
+ this.settings = params?.settings;
33880
+ this.pinned = params?.pinned;
33881
+ this.edit = params?.edit;
33882
+ this.delete = params?.delete;
33883
+ this.groupCall = params?.groupCall;
33884
+ this.invites = params?.invites;
33885
+ this.send = params?.send;
33886
+ this.forums = params?.forums;
33886
33887
  }
33887
33888
  }
33888
33889
  export class PopularContact extends TypePopularContact {
@@ -36767,14 +36768,14 @@ export class PageTableCell extends TypePageTableCell {
36767
36768
  writable: true,
36768
36769
  value: void 0
36769
36770
  });
36770
- this.header = params.header;
36771
- this.alignCenter = params.alignCenter;
36772
- this.alignRight = params.alignRight;
36773
- this.valignMiddle = params.valignMiddle;
36774
- this.valignBottom = params.valignBottom;
36775
- this.text = params.text;
36776
- this.colspan = params.colspan;
36777
- this.rowspan = params.rowspan;
36771
+ this.header = params?.header;
36772
+ this.alignCenter = params?.alignCenter;
36773
+ this.alignRight = params?.alignRight;
36774
+ this.valignMiddle = params?.valignMiddle;
36775
+ this.valignBottom = params?.valignBottom;
36776
+ this.text = params?.text;
36777
+ this.colspan = params?.colspan;
36778
+ this.rowspan = params?.rowspan;
36778
36779
  }
36779
36780
  }
36780
36781
  export class PageTableRow extends TypePageTableRow {
@@ -37467,12 +37468,12 @@ export class PollResults extends TypePollResults {
37467
37468
  writable: true,
37468
37469
  value: void 0
37469
37470
  });
37470
- this.min = params.min;
37471
- this.results = params.results;
37472
- this.totalVoters = params.totalVoters;
37473
- this.recentVoters = params.recentVoters;
37474
- this.solution = params.solution;
37475
- this.solutionEntities = params.solutionEntities;
37471
+ this.min = params?.min;
37472
+ this.results = params?.results;
37473
+ this.totalVoters = params?.totalVoters;
37474
+ this.recentVoters = params?.recentVoters;
37475
+ this.solution = params?.solution;
37476
+ this.solutionEntities = params?.solutionEntities;
37476
37477
  }
37477
37478
  }
37478
37479
  export class ChatOnlines extends TypeChatOnlines {
@@ -37637,18 +37638,18 @@ export class ChatAdminRights extends TypeChatAdminRights {
37637
37638
  writable: true,
37638
37639
  value: void 0
37639
37640
  });
37640
- this.changeInfo = params.changeInfo;
37641
- this.postMessages = params.postMessages;
37642
- this.editMessages = params.editMessages;
37643
- this.deleteMessages = params.deleteMessages;
37644
- this.banUsers = params.banUsers;
37645
- this.inviteUsers = params.inviteUsers;
37646
- this.pinMessages = params.pinMessages;
37647
- this.addAdmins = params.addAdmins;
37648
- this.anonymous = params.anonymous;
37649
- this.manageCall = params.manageCall;
37650
- this.other = params.other;
37651
- this.manageTopics = params.manageTopics;
37641
+ this.changeInfo = params?.changeInfo;
37642
+ this.postMessages = params?.postMessages;
37643
+ this.editMessages = params?.editMessages;
37644
+ this.deleteMessages = params?.deleteMessages;
37645
+ this.banUsers = params?.banUsers;
37646
+ this.inviteUsers = params?.inviteUsers;
37647
+ this.pinMessages = params?.pinMessages;
37648
+ this.addAdmins = params?.addAdmins;
37649
+ this.anonymous = params?.anonymous;
37650
+ this.manageCall = params?.manageCall;
37651
+ this.other = params?.other;
37652
+ this.manageTopics = params?.manageTopics;
37652
37653
  }
37653
37654
  }
37654
37655
  export class ChatBannedRights extends TypeChatBannedRights {
@@ -38070,14 +38071,14 @@ export class CodeSettings extends TypeCodeSettings {
38070
38071
  writable: true,
38071
38072
  value: void 0
38072
38073
  });
38073
- this.allowFlashcall = params.allowFlashcall;
38074
- this.currentNumber = params.currentNumber;
38075
- this.allowAppHash = params.allowAppHash;
38076
- this.allowMissedCall = params.allowMissedCall;
38077
- this.allowFirebase = params.allowFirebase;
38078
- this.logoutTokens = params.logoutTokens;
38079
- this.token = params.token;
38080
- this.appSandbox = params.appSandbox;
38074
+ this.allowFlashcall = params?.allowFlashcall;
38075
+ this.currentNumber = params?.currentNumber;
38076
+ this.allowAppHash = params?.allowAppHash;
38077
+ this.allowMissedCall = params?.allowMissedCall;
38078
+ this.allowFirebase = params?.allowFirebase;
38079
+ this.logoutTokens = params?.logoutTokens;
38080
+ this.token = params?.token;
38081
+ this.appSandbox = params?.appSandbox;
38081
38082
  }
38082
38083
  }
38083
38084
  export class WallPaperSettings extends TypeWallPaperSettings {
@@ -38160,14 +38161,14 @@ export class WallPaperSettings extends TypeWallPaperSettings {
38160
38161
  writable: true,
38161
38162
  value: void 0
38162
38163
  });
38163
- this.blur = params.blur;
38164
- this.motion = params.motion;
38165
- this.backgroundColor = params.backgroundColor;
38166
- this.secondBackgroundColor = params.secondBackgroundColor;
38167
- this.thirdBackgroundColor = params.thirdBackgroundColor;
38168
- this.fourthBackgroundColor = params.fourthBackgroundColor;
38169
- this.intensity = params.intensity;
38170
- this.rotation = params.rotation;
38164
+ this.blur = params?.blur;
38165
+ this.motion = params?.motion;
38166
+ this.backgroundColor = params?.backgroundColor;
38167
+ this.secondBackgroundColor = params?.secondBackgroundColor;
38168
+ this.thirdBackgroundColor = params?.thirdBackgroundColor;
38169
+ this.fourthBackgroundColor = params?.fourthBackgroundColor;
38170
+ this.intensity = params?.intensity;
38171
+ this.rotation = params?.rotation;
38171
38172
  }
38172
38173
  }
38173
38174
  export class AutoDownloadSettings extends TypeAutoDownloadSettings {
@@ -39277,8 +39278,8 @@ export class AccountContentSettings extends TypeAccountContentSettings {
39277
39278
  writable: true,
39278
39279
  value: void 0
39279
39280
  });
39280
- this.sensitiveEnabled = params.sensitiveEnabled;
39281
- this.sensitiveCanChange = params.sensitiveCanChange;
39281
+ this.sensitiveEnabled = params?.sensitiveEnabled;
39282
+ this.sensitiveCanChange = params?.sensitiveCanChange;
39282
39283
  }
39283
39284
  }
39284
39285
  export class MessagesInactiveChats extends TypeMessagesInactiveChats {
@@ -39579,8 +39580,8 @@ export class WebPageAttributeTheme extends TypeWebPageAttribute {
39579
39580
  writable: true,
39580
39581
  value: void 0
39581
39582
  });
39582
- this.documents = params.documents;
39583
- this.settings = params.settings;
39583
+ this.documents = params?.documents;
39584
+ this.settings = params?.settings;
39584
39585
  }
39585
39586
  }
39586
39587
  export class WebPageAttributeStory extends TypeWebPageAttribute {
@@ -40989,9 +40990,9 @@ export class GlobalPrivacySettings extends TypeGlobalPrivacySettings {
40989
40990
  writable: true,
40990
40991
  value: void 0
40991
40992
  });
40992
- this.archiveAndMuteNewNoncontactPeers = params.archiveAndMuteNewNoncontactPeers;
40993
- this.keepArchivedUnmuted = params.keepArchivedUnmuted;
40994
- this.keepArchivedFolders = params.keepArchivedFolders;
40993
+ this.archiveAndMuteNewNoncontactPeers = params?.archiveAndMuteNewNoncontactPeers;
40994
+ this.keepArchivedUnmuted = params?.keepArchivedUnmuted;
40995
+ this.keepArchivedFolders = params?.keepArchivedFolders;
40995
40996
  }
40996
40997
  }
40997
40998
  export class HelpCountryCode extends TypeHelpCountryCode {
@@ -41190,9 +41191,9 @@ export class MessageViews extends TypeMessageViews {
41190
41191
  writable: true,
41191
41192
  value: void 0
41192
41193
  });
41193
- this.views = params.views;
41194
- this.forwards = params.forwards;
41195
- this.replies = params.replies;
41194
+ this.views = params?.views;
41195
+ this.forwards = params?.forwards;
41196
+ this.replies = params?.replies;
41196
41197
  }
41197
41198
  }
41198
41199
  export class MessagesMessageViews extends TypeMessagesMessageViews {
@@ -42282,9 +42283,9 @@ export class MessagesHistoryImportParsed extends TypeMessagesHistoryImportParsed
42282
42283
  writable: true,
42283
42284
  value: void 0
42284
42285
  });
42285
- this.pm = params.pm;
42286
- this.group = params.group;
42287
- this.title = params.title;
42286
+ this.pm = params?.pm;
42287
+ this.group = params?.group;
42288
+ this.title = params?.title;
42288
42289
  }
42289
42290
  }
42290
42291
  export class MessagesAffectedFoundMessages extends TypeMessagesAffectedFoundMessages {
@@ -43645,7 +43646,7 @@ export class AuthLoggedOut extends TypeAuthLoggedOut {
43645
43646
  writable: true,
43646
43647
  value: void 0
43647
43648
  });
43648
- this.futureAuthToken = params.futureAuthToken;
43649
+ this.futureAuthToken = params?.futureAuthToken;
43649
43650
  }
43650
43651
  }
43651
43652
  export class ReactionCount extends TypeReactionCount {
@@ -44483,7 +44484,7 @@ export class WebViewMessageSent extends TypeWebViewMessageSent {
44483
44484
  writable: true,
44484
44485
  value: void 0
44485
44486
  });
44486
- this.msgId = params.msgId;
44487
+ this.msgId = params?.msgId;
44487
44488
  }
44488
44489
  }
44489
44490
  export class BotMenuButtonDefault extends TypeBotMenuButton {
@@ -45023,8 +45024,8 @@ export class InputStorePaymentPremiumSubscription extends TypeInputStorePaymentP
45023
45024
  writable: true,
45024
45025
  value: void 0
45025
45026
  });
45026
- this.restore = params.restore;
45027
- this.upgrade = params.upgrade;
45027
+ this.restore = params?.restore;
45028
+ this.upgrade = params?.upgrade;
45028
45029
  }
45029
45030
  }
45030
45031
  export class InputStorePaymentGiftPremium extends TypeInputStorePaymentPurpose {
@@ -45390,7 +45391,7 @@ export class ChatReactionsAll extends TypeChatReactions {
45390
45391
  writable: true,
45391
45392
  value: void 0
45392
45393
  });
45393
- this.allowCustom = params.allowCustom;
45394
+ this.allowCustom = params?.allowCustom;
45394
45395
  }
45395
45396
  }
45396
45397
  export class ChatReactionsSome extends TypeChatReactions {
@@ -45836,10 +45837,10 @@ export class MessageExtendedMediaPreview extends TypeMessageExtendedMedia {
45836
45837
  writable: true,
45837
45838
  value: void 0
45838
45839
  });
45839
- this.w = params.w;
45840
- this.h = params.h;
45841
- this.thumb = params.thumb;
45842
- this.videoDuration = params.videoDuration;
45840
+ this.w = params?.w;
45841
+ this.h = params?.h;
45842
+ this.thumb = params?.thumb;
45843
+ this.videoDuration = params?.videoDuration;
45843
45844
  }
45844
45845
  }
45845
45846
  export class MessageExtendedMedia extends TypeMessageExtendedMedia {
@@ -46332,8 +46333,8 @@ export class RequestPeerTypeUser extends TypeRequestPeerType {
46332
46333
  writable: true,
46333
46334
  value: void 0
46334
46335
  });
46335
- this.bot = params.bot;
46336
- this.premium = params.premium;
46336
+ this.bot = params?.bot;
46337
+ this.premium = params?.premium;
46337
46338
  }
46338
46339
  }
46339
46340
  export class RequestPeerTypeChat extends TypeRequestPeerType {
@@ -46400,12 +46401,12 @@ export class RequestPeerTypeChat extends TypeRequestPeerType {
46400
46401
  writable: true,
46401
46402
  value: void 0
46402
46403
  });
46403
- this.creator = params.creator;
46404
- this.botParticipant = params.botParticipant;
46405
- this.hasUsername = params.hasUsername;
46406
- this.forum = params.forum;
46407
- this.userAdminRights = params.userAdminRights;
46408
- this.botAdminRights = params.botAdminRights;
46404
+ this.creator = params?.creator;
46405
+ this.botParticipant = params?.botParticipant;
46406
+ this.hasUsername = params?.hasUsername;
46407
+ this.forum = params?.forum;
46408
+ this.userAdminRights = params?.userAdminRights;
46409
+ this.botAdminRights = params?.botAdminRights;
46409
46410
  }
46410
46411
  }
46411
46412
  export class RequestPeerTypeBroadcast extends TypeRequestPeerType {
@@ -46456,10 +46457,10 @@ export class RequestPeerTypeBroadcast extends TypeRequestPeerType {
46456
46457
  writable: true,
46457
46458
  value: void 0
46458
46459
  });
46459
- this.creator = params.creator;
46460
- this.hasUsername = params.hasUsername;
46461
- this.userAdminRights = params.userAdminRights;
46462
- this.botAdminRights = params.botAdminRights;
46460
+ this.creator = params?.creator;
46461
+ this.hasUsername = params?.hasUsername;
46462
+ this.userAdminRights = params?.userAdminRights;
46463
+ this.botAdminRights = params?.botAdminRights;
46463
46464
  }
46464
46465
  }
46465
46466
  export class EmojiListNotModified extends TypeEmojiList {
@@ -46700,9 +46701,9 @@ export class AutoSaveSettings extends TypeAutoSaveSettings {
46700
46701
  writable: true,
46701
46702
  value: void 0
46702
46703
  });
46703
- this.photos = params.photos;
46704
- this.videos = params.videos;
46705
- this.videoMaxSize = params.videoMaxSize;
46704
+ this.photos = params?.photos;
46705
+ this.videos = params?.videos;
46706
+ this.videoMaxSize = params?.videoMaxSize;
46706
46707
  }
46707
46708
  }
46708
46709
  export class AutoSaveException extends TypeAutoSaveException {