@inline-openclaw/inline 0.0.45 → 0.0.46
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/README.md +2 -0
- package/dist/approval-handler.runtime.js +1244 -262
- package/dist/approval-handler.runtime.js.map +8 -8
- package/dist/channel-plugin-api.js +1519 -219
- package/dist/channel-plugin-api.js.map +9 -9
- package/dist/inline/actions.d.ts.map +1 -1
- package/dist/inline/approval-handler.runtime.d.ts +1 -0
- package/dist/inline/approval-handler.runtime.d.ts.map +1 -1
- package/dist/inline/bot-avatar-tool.d.ts +12 -0
- package/dist/inline/bot-avatar-tool.d.ts.map +1 -0
- package/dist/inline/channel.d.ts.map +1 -1
- package/dist/inline/message-content.d.ts +5 -1
- package/dist/inline/message-content.d.ts.map +1 -1
- package/dist/inline/message-formatting.d.ts +18 -0
- package/dist/inline/message-formatting.d.ts.map +1 -1
- package/dist/inline/message-tools.d.ts.map +1 -1
- package/dist/inline/monitor.d.ts.map +1 -1
- package/dist/inline/parent-context-tool.d.ts.map +1 -1
- package/dist/runtime-register-api.d.ts.map +1 -1
- package/dist/runtime-register-api.js +1488 -71
- package/dist/runtime-register-api.js.map +10 -9
- package/openclaw.plugin.json +2 -0
- package/package.json +1 -1
|
@@ -5600,6 +5600,24 @@ var ConnectionError_Reason;
|
|
|
5600
5600
|
ConnectionError_Reason2[ConnectionError_Reason2["INVALID_AUTH"] = 2] = "INVALID_AUTH";
|
|
5601
5601
|
ConnectionError_Reason2[ConnectionError_Reason2["SESSION_REVOKED"] = 3] = "SESSION_REVOKED";
|
|
5602
5602
|
})(ConnectionError_Reason || (ConnectionError_Reason = {}));
|
|
5603
|
+
var BotAvatar_Kind;
|
|
5604
|
+
(function(BotAvatar_Kind2) {
|
|
5605
|
+
BotAvatar_Kind2[BotAvatar_Kind2["KIND_UNSPECIFIED"] = 0] = "KIND_UNSPECIFIED";
|
|
5606
|
+
BotAvatar_Kind2[BotAvatar_Kind2["CODEX_ATLAS"] = 1] = "CODEX_ATLAS";
|
|
5607
|
+
})(BotAvatar_Kind || (BotAvatar_Kind = {}));
|
|
5608
|
+
var BotPresenceState_Kind;
|
|
5609
|
+
(function(BotPresenceState_Kind2) {
|
|
5610
|
+
BotPresenceState_Kind2[BotPresenceState_Kind2["KIND_UNSPECIFIED"] = 0] = "KIND_UNSPECIFIED";
|
|
5611
|
+
BotPresenceState_Kind2[BotPresenceState_Kind2["HIDDEN"] = 1] = "HIDDEN";
|
|
5612
|
+
BotPresenceState_Kind2[BotPresenceState_Kind2["IDLE"] = 2] = "IDLE";
|
|
5613
|
+
BotPresenceState_Kind2[BotPresenceState_Kind2["HAPPY"] = 3] = "HAPPY";
|
|
5614
|
+
BotPresenceState_Kind2[BotPresenceState_Kind2["WAVING"] = 4] = "WAVING";
|
|
5615
|
+
BotPresenceState_Kind2[BotPresenceState_Kind2["JUMPING"] = 5] = "JUMPING";
|
|
5616
|
+
BotPresenceState_Kind2[BotPresenceState_Kind2["FAILED"] = 6] = "FAILED";
|
|
5617
|
+
BotPresenceState_Kind2[BotPresenceState_Kind2["WAITING"] = 7] = "WAITING";
|
|
5618
|
+
BotPresenceState_Kind2[BotPresenceState_Kind2["RUNNING"] = 8] = "RUNNING";
|
|
5619
|
+
BotPresenceState_Kind2[BotPresenceState_Kind2["REVIEW"] = 9] = "REVIEW";
|
|
5620
|
+
})(BotPresenceState_Kind || (BotPresenceState_Kind = {}));
|
|
5603
5621
|
var MessageEntity_Type;
|
|
5604
5622
|
(function(MessageEntity_Type2) {
|
|
5605
5623
|
MessageEntity_Type2[MessageEntity_Type2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
@@ -5713,6 +5731,11 @@ var UserStatus_Status;
|
|
|
5713
5731
|
UserStatus_Status2[UserStatus_Status2["ONLINE"] = 1] = "ONLINE";
|
|
5714
5732
|
UserStatus_Status2[UserStatus_Status2["OFFLINE"] = 2] = "OFFLINE";
|
|
5715
5733
|
})(UserStatus_Status || (UserStatus_Status = {}));
|
|
5734
|
+
var DialogFollowMode;
|
|
5735
|
+
(function(DialogFollowMode2) {
|
|
5736
|
+
DialogFollowMode2[DialogFollowMode2["DIALOG_FOLLOW_MODE_UNSPECIFIED"] = 0] = "DIALOG_FOLLOW_MODE_UNSPECIFIED";
|
|
5737
|
+
DialogFollowMode2[DialogFollowMode2["FOLLOWING"] = 1] = "FOLLOWING";
|
|
5738
|
+
})(DialogFollowMode || (DialogFollowMode = {}));
|
|
5716
5739
|
var MessageSendMode;
|
|
5717
5740
|
(function(MessageSendMode2) {
|
|
5718
5741
|
MessageSendMode2[MessageSendMode2["MODE_UNSPECIFIED"] = 0] = "MODE_UNSPECIFIED";
|
|
@@ -5776,6 +5799,11 @@ var Method;
|
|
|
5776
5799
|
Method2[Method2["CLEAR_CHAT_HISTORY"] = 53] = "CLEAR_CHAT_HISTORY";
|
|
5777
5800
|
Method2[Method2["DELETE_BOT"] = 54] = "DELETE_BOT";
|
|
5778
5801
|
Method2[Method2["DELETE_MESSAGE_ATTACHMENT"] = 55] = "DELETE_MESSAGE_ATTACHMENT";
|
|
5802
|
+
Method2[Method2["SET_BOT_AVATAR"] = 56] = "SET_BOT_AVATAR";
|
|
5803
|
+
Method2[Method2["CLEAR_BOT_AVATAR"] = 57] = "CLEAR_BOT_AVATAR";
|
|
5804
|
+
Method2[Method2["GET_BOT_PRESENCE"] = 58] = "GET_BOT_PRESENCE";
|
|
5805
|
+
Method2[Method2["SET_BOT_PRESENCE_STATE"] = 59] = "SET_BOT_PRESENCE_STATE";
|
|
5806
|
+
Method2[Method2["UPDATE_DIALOG_FOLLOW_MODE"] = 60] = "UPDATE_DIALOG_FOLLOW_MODE";
|
|
5779
5807
|
})(Method || (Method = {}));
|
|
5780
5808
|
var PushNotificationProvider;
|
|
5781
5809
|
(function(PushNotificationProvider2) {
|
|
@@ -6658,6 +6686,123 @@ class PeerUser$Type extends import_runtime4.MessageType {
|
|
|
6658
6686
|
}
|
|
6659
6687
|
var PeerUser = new PeerUser$Type;
|
|
6660
6688
|
|
|
6689
|
+
class BotAvatar$Type extends import_runtime4.MessageType {
|
|
6690
|
+
constructor() {
|
|
6691
|
+
super("BotAvatar", [
|
|
6692
|
+
{ no: 1, name: "kind", kind: "enum", T: () => ["BotAvatar.Kind", BotAvatar_Kind] },
|
|
6693
|
+
{ no: 2, name: "display_name", kind: "scalar", T: 9 },
|
|
6694
|
+
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 },
|
|
6695
|
+
{ no: 4, name: "cdn_url", kind: "scalar", opt: true, T: 9 },
|
|
6696
|
+
{ no: 5, name: "file_unique_id", kind: "scalar", opt: true, T: 9 }
|
|
6697
|
+
]);
|
|
6698
|
+
}
|
|
6699
|
+
create(value) {
|
|
6700
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
6701
|
+
message.kind = 0;
|
|
6702
|
+
message.displayName = "";
|
|
6703
|
+
if (value !== undefined)
|
|
6704
|
+
import_runtime3.reflectionMergePartial(this, message, value);
|
|
6705
|
+
return message;
|
|
6706
|
+
}
|
|
6707
|
+
internalBinaryRead(reader, length, options, target) {
|
|
6708
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
6709
|
+
while (reader.pos < end) {
|
|
6710
|
+
let [fieldNo, wireType] = reader.tag();
|
|
6711
|
+
switch (fieldNo) {
|
|
6712
|
+
case 1:
|
|
6713
|
+
message.kind = reader.int32();
|
|
6714
|
+
break;
|
|
6715
|
+
case 2:
|
|
6716
|
+
message.displayName = reader.string();
|
|
6717
|
+
break;
|
|
6718
|
+
case 3:
|
|
6719
|
+
message.description = reader.string();
|
|
6720
|
+
break;
|
|
6721
|
+
case 4:
|
|
6722
|
+
message.cdnUrl = reader.string();
|
|
6723
|
+
break;
|
|
6724
|
+
case 5:
|
|
6725
|
+
message.fileUniqueId = reader.string();
|
|
6726
|
+
break;
|
|
6727
|
+
default:
|
|
6728
|
+
let u = options.readUnknownField;
|
|
6729
|
+
if (u === "throw")
|
|
6730
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
6731
|
+
let d = reader.skip(wireType);
|
|
6732
|
+
if (u !== false)
|
|
6733
|
+
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
6734
|
+
}
|
|
6735
|
+
}
|
|
6736
|
+
return message;
|
|
6737
|
+
}
|
|
6738
|
+
internalBinaryWrite(message, writer, options) {
|
|
6739
|
+
if (message.kind !== 0)
|
|
6740
|
+
writer.tag(1, import_runtime.WireType.Varint).int32(message.kind);
|
|
6741
|
+
if (message.displayName !== "")
|
|
6742
|
+
writer.tag(2, import_runtime.WireType.LengthDelimited).string(message.displayName);
|
|
6743
|
+
if (message.description !== undefined)
|
|
6744
|
+
writer.tag(3, import_runtime.WireType.LengthDelimited).string(message.description);
|
|
6745
|
+
if (message.cdnUrl !== undefined)
|
|
6746
|
+
writer.tag(4, import_runtime.WireType.LengthDelimited).string(message.cdnUrl);
|
|
6747
|
+
if (message.fileUniqueId !== undefined)
|
|
6748
|
+
writer.tag(5, import_runtime.WireType.LengthDelimited).string(message.fileUniqueId);
|
|
6749
|
+
let u = options.writeUnknownFields;
|
|
6750
|
+
if (u !== false)
|
|
6751
|
+
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
6752
|
+
return writer;
|
|
6753
|
+
}
|
|
6754
|
+
}
|
|
6755
|
+
var BotAvatar = new BotAvatar$Type;
|
|
6756
|
+
|
|
6757
|
+
class BotPresenceState$Type extends import_runtime4.MessageType {
|
|
6758
|
+
constructor() {
|
|
6759
|
+
super("BotPresenceState", [
|
|
6760
|
+
{ no: 1, name: "kind", kind: "enum", T: () => ["BotPresenceState.Kind", BotPresenceState_Kind] },
|
|
6761
|
+
{ no: 2, name: "comment", kind: "scalar", opt: true, T: 9 }
|
|
6762
|
+
]);
|
|
6763
|
+
}
|
|
6764
|
+
create(value) {
|
|
6765
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
6766
|
+
message.kind = 0;
|
|
6767
|
+
if (value !== undefined)
|
|
6768
|
+
import_runtime3.reflectionMergePartial(this, message, value);
|
|
6769
|
+
return message;
|
|
6770
|
+
}
|
|
6771
|
+
internalBinaryRead(reader, length, options, target) {
|
|
6772
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
6773
|
+
while (reader.pos < end) {
|
|
6774
|
+
let [fieldNo, wireType] = reader.tag();
|
|
6775
|
+
switch (fieldNo) {
|
|
6776
|
+
case 1:
|
|
6777
|
+
message.kind = reader.int32();
|
|
6778
|
+
break;
|
|
6779
|
+
case 2:
|
|
6780
|
+
message.comment = reader.string();
|
|
6781
|
+
break;
|
|
6782
|
+
default:
|
|
6783
|
+
let u = options.readUnknownField;
|
|
6784
|
+
if (u === "throw")
|
|
6785
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
6786
|
+
let d = reader.skip(wireType);
|
|
6787
|
+
if (u !== false)
|
|
6788
|
+
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
6789
|
+
}
|
|
6790
|
+
}
|
|
6791
|
+
return message;
|
|
6792
|
+
}
|
|
6793
|
+
internalBinaryWrite(message, writer, options) {
|
|
6794
|
+
if (message.kind !== 0)
|
|
6795
|
+
writer.tag(1, import_runtime.WireType.Varint).int32(message.kind);
|
|
6796
|
+
if (message.comment !== undefined)
|
|
6797
|
+
writer.tag(2, import_runtime.WireType.LengthDelimited).string(message.comment);
|
|
6798
|
+
let u = options.writeUnknownFields;
|
|
6799
|
+
if (u !== false)
|
|
6800
|
+
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
6801
|
+
return writer;
|
|
6802
|
+
}
|
|
6803
|
+
}
|
|
6804
|
+
var BotPresenceState = new BotPresenceState$Type;
|
|
6805
|
+
|
|
6661
6806
|
class User$Type extends import_runtime4.MessageType {
|
|
6662
6807
|
constructor() {
|
|
6663
6808
|
super("User", [
|
|
@@ -6672,7 +6817,8 @@ class User$Type extends import_runtime4.MessageType {
|
|
|
6672
6817
|
{ no: 9, name: "profile_photo", kind: "message", T: () => UserProfilePhoto },
|
|
6673
6818
|
{ no: 11, name: "pending_setup", kind: "scalar", opt: true, T: 8 },
|
|
6674
6819
|
{ no: 12, name: "time_zone", kind: "scalar", opt: true, T: 9 },
|
|
6675
|
-
{ no: 13, name: "bot", kind: "scalar", opt: true, T: 8 }
|
|
6820
|
+
{ no: 13, name: "bot", kind: "scalar", opt: true, T: 8 },
|
|
6821
|
+
{ no: 14, name: "bot_avatar", kind: "message", T: () => BotAvatar }
|
|
6676
6822
|
]);
|
|
6677
6823
|
}
|
|
6678
6824
|
create(value) {
|
|
@@ -6723,6 +6869,9 @@ class User$Type extends import_runtime4.MessageType {
|
|
|
6723
6869
|
case 13:
|
|
6724
6870
|
message.bot = reader.bool();
|
|
6725
6871
|
break;
|
|
6872
|
+
case 14:
|
|
6873
|
+
message.botAvatar = BotAvatar.internalBinaryRead(reader, reader.uint32(), options, message.botAvatar);
|
|
6874
|
+
break;
|
|
6726
6875
|
default:
|
|
6727
6876
|
let u = options.readUnknownField;
|
|
6728
6877
|
if (u === "throw")
|
|
@@ -6759,6 +6908,8 @@ class User$Type extends import_runtime4.MessageType {
|
|
|
6759
6908
|
writer.tag(12, import_runtime.WireType.LengthDelimited).string(message.timeZone);
|
|
6760
6909
|
if (message.bot !== undefined)
|
|
6761
6910
|
writer.tag(13, import_runtime.WireType.Varint).bool(message.bot);
|
|
6911
|
+
if (message.botAvatar)
|
|
6912
|
+
BotAvatar.internalBinaryWrite(message.botAvatar, writer.tag(14, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
6762
6913
|
let u = options.writeUnknownFields;
|
|
6763
6914
|
if (u !== false)
|
|
6764
6915
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6844,7 +6995,8 @@ class Dialog$Type extends import_runtime4.MessageType {
|
|
|
6844
6995
|
{ no: 11, name: "open", kind: "scalar", opt: true, T: 8 },
|
|
6845
6996
|
{ no: 12, name: "opened_date", kind: "scalar", opt: true, T: 3, L: 0 },
|
|
6846
6997
|
{ no: 14, name: "order", kind: "scalar", opt: true, T: 9 },
|
|
6847
|
-
{ no: 15, name: "pinned_order", kind: "scalar", opt: true, T: 9 }
|
|
6998
|
+
{ no: 15, name: "pinned_order", kind: "scalar", opt: true, T: 9 },
|
|
6999
|
+
{ no: 16, name: "follow_mode", kind: "enum", opt: true, T: () => ["DialogFollowMode", DialogFollowMode] }
|
|
6848
7000
|
]);
|
|
6849
7001
|
}
|
|
6850
7002
|
create(value) {
|
|
@@ -6903,6 +7055,9 @@ class Dialog$Type extends import_runtime4.MessageType {
|
|
|
6903
7055
|
case 15:
|
|
6904
7056
|
message.pinnedOrder = reader.string();
|
|
6905
7057
|
break;
|
|
7058
|
+
case 16:
|
|
7059
|
+
message.followMode = reader.int32();
|
|
7060
|
+
break;
|
|
6906
7061
|
default:
|
|
6907
7062
|
let u = options.readUnknownField;
|
|
6908
7063
|
if (u === "throw")
|
|
@@ -6945,6 +7100,8 @@ class Dialog$Type extends import_runtime4.MessageType {
|
|
|
6945
7100
|
writer.tag(14, import_runtime.WireType.LengthDelimited).string(message.order);
|
|
6946
7101
|
if (message.pinnedOrder !== undefined)
|
|
6947
7102
|
writer.tag(15, import_runtime.WireType.LengthDelimited).string(message.pinnedOrder);
|
|
7103
|
+
if (message.followMode !== undefined)
|
|
7104
|
+
writer.tag(16, import_runtime.WireType.Varint).int32(message.followMode);
|
|
6948
7105
|
let u = options.writeUnknownFields;
|
|
6949
7106
|
if (u !== false)
|
|
6950
7107
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6968,7 +7125,8 @@ class Chat$Type extends import_runtime4.MessageType {
|
|
|
6968
7125
|
{ no: 10, name: "created_by", kind: "scalar", opt: true, T: 3, L: 0 },
|
|
6969
7126
|
{ no: 11, name: "parent_chat_id", kind: "scalar", opt: true, T: 3, L: 0 },
|
|
6970
7127
|
{ no: 12, name: "parent_message_id", kind: "scalar", opt: true, T: 3, L: 0 },
|
|
6971
|
-
{ no: 13, name: "untitled", kind: "scalar", opt: true, T: 8 }
|
|
7128
|
+
{ no: 13, name: "untitled", kind: "scalar", opt: true, T: 8 },
|
|
7129
|
+
{ no: 14, name: "number", kind: "scalar", opt: true, T: 5 }
|
|
6972
7130
|
]);
|
|
6973
7131
|
}
|
|
6974
7132
|
create(value) {
|
|
@@ -7023,6 +7181,9 @@ class Chat$Type extends import_runtime4.MessageType {
|
|
|
7023
7181
|
case 13:
|
|
7024
7182
|
message.untitled = reader.bool();
|
|
7025
7183
|
break;
|
|
7184
|
+
case 14:
|
|
7185
|
+
message.number = reader.int32();
|
|
7186
|
+
break;
|
|
7026
7187
|
default:
|
|
7027
7188
|
let u = options.readUnknownField;
|
|
7028
7189
|
if (u === "throw")
|
|
@@ -7061,6 +7222,8 @@ class Chat$Type extends import_runtime4.MessageType {
|
|
|
7061
7222
|
writer.tag(12, import_runtime.WireType.Varint).int64(message.parentMessageId);
|
|
7062
7223
|
if (message.untitled !== undefined)
|
|
7063
7224
|
writer.tag(13, import_runtime.WireType.Varint).bool(message.untitled);
|
|
7225
|
+
if (message.number !== undefined)
|
|
7226
|
+
writer.tag(14, import_runtime.WireType.Varint).int32(message.number);
|
|
7064
7227
|
let u = options.writeUnknownFields;
|
|
7065
7228
|
if (u !== false)
|
|
7066
7229
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -9909,7 +10072,12 @@ class RpcCall$Type extends import_runtime4.MessageType {
|
|
|
9909
10072
|
{ no: 53, name: "updateDialogOrder", kind: "message", oneof: "input", T: () => UpdateDialogOrderInput },
|
|
9910
10073
|
{ no: 54, name: "clearChatHistory", kind: "message", oneof: "input", T: () => ClearChatHistoryInput },
|
|
9911
10074
|
{ no: 55, name: "deleteBot", kind: "message", oneof: "input", T: () => DeleteBotInput },
|
|
9912
|
-
{ no: 56, name: "deleteMessageAttachment", kind: "message", oneof: "input", T: () => DeleteMessageAttachmentInput }
|
|
10075
|
+
{ no: 56, name: "deleteMessageAttachment", kind: "message", oneof: "input", T: () => DeleteMessageAttachmentInput },
|
|
10076
|
+
{ no: 57, name: "setBotAvatar", kind: "message", oneof: "input", T: () => SetBotAvatarInput },
|
|
10077
|
+
{ no: 58, name: "clearBotAvatar", kind: "message", oneof: "input", T: () => ClearBotAvatarInput },
|
|
10078
|
+
{ no: 59, name: "getBotPresence", kind: "message", oneof: "input", T: () => GetBotPresenceInput },
|
|
10079
|
+
{ no: 60, name: "setBotPresenceState", kind: "message", oneof: "input", T: () => SetBotPresenceStateInput },
|
|
10080
|
+
{ no: 61, name: "updateDialogFollowMode", kind: "message", oneof: "input", T: () => UpdateDialogFollowModeInput }
|
|
9913
10081
|
]);
|
|
9914
10082
|
}
|
|
9915
10083
|
create(value) {
|
|
@@ -10258,6 +10426,36 @@ class RpcCall$Type extends import_runtime4.MessageType {
|
|
|
10258
10426
|
deleteMessageAttachment: DeleteMessageAttachmentInput.internalBinaryRead(reader, reader.uint32(), options, message.input.deleteMessageAttachment)
|
|
10259
10427
|
};
|
|
10260
10428
|
break;
|
|
10429
|
+
case 57:
|
|
10430
|
+
message.input = {
|
|
10431
|
+
oneofKind: "setBotAvatar",
|
|
10432
|
+
setBotAvatar: SetBotAvatarInput.internalBinaryRead(reader, reader.uint32(), options, message.input.setBotAvatar)
|
|
10433
|
+
};
|
|
10434
|
+
break;
|
|
10435
|
+
case 58:
|
|
10436
|
+
message.input = {
|
|
10437
|
+
oneofKind: "clearBotAvatar",
|
|
10438
|
+
clearBotAvatar: ClearBotAvatarInput.internalBinaryRead(reader, reader.uint32(), options, message.input.clearBotAvatar)
|
|
10439
|
+
};
|
|
10440
|
+
break;
|
|
10441
|
+
case 59:
|
|
10442
|
+
message.input = {
|
|
10443
|
+
oneofKind: "getBotPresence",
|
|
10444
|
+
getBotPresence: GetBotPresenceInput.internalBinaryRead(reader, reader.uint32(), options, message.input.getBotPresence)
|
|
10445
|
+
};
|
|
10446
|
+
break;
|
|
10447
|
+
case 60:
|
|
10448
|
+
message.input = {
|
|
10449
|
+
oneofKind: "setBotPresenceState",
|
|
10450
|
+
setBotPresenceState: SetBotPresenceStateInput.internalBinaryRead(reader, reader.uint32(), options, message.input.setBotPresenceState)
|
|
10451
|
+
};
|
|
10452
|
+
break;
|
|
10453
|
+
case 61:
|
|
10454
|
+
message.input = {
|
|
10455
|
+
oneofKind: "updateDialogFollowMode",
|
|
10456
|
+
updateDialogFollowMode: UpdateDialogFollowModeInput.internalBinaryRead(reader, reader.uint32(), options, message.input.updateDialogFollowMode)
|
|
10457
|
+
};
|
|
10458
|
+
break;
|
|
10261
10459
|
default:
|
|
10262
10460
|
let u = options.readUnknownField;
|
|
10263
10461
|
if (u === "throw")
|
|
@@ -10382,6 +10580,16 @@ class RpcCall$Type extends import_runtime4.MessageType {
|
|
|
10382
10580
|
DeleteBotInput.internalBinaryWrite(message.input.deleteBot, writer.tag(55, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
10383
10581
|
if (message.input.oneofKind === "deleteMessageAttachment")
|
|
10384
10582
|
DeleteMessageAttachmentInput.internalBinaryWrite(message.input.deleteMessageAttachment, writer.tag(56, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
10583
|
+
if (message.input.oneofKind === "setBotAvatar")
|
|
10584
|
+
SetBotAvatarInput.internalBinaryWrite(message.input.setBotAvatar, writer.tag(57, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
10585
|
+
if (message.input.oneofKind === "clearBotAvatar")
|
|
10586
|
+
ClearBotAvatarInput.internalBinaryWrite(message.input.clearBotAvatar, writer.tag(58, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
10587
|
+
if (message.input.oneofKind === "getBotPresence")
|
|
10588
|
+
GetBotPresenceInput.internalBinaryWrite(message.input.getBotPresence, writer.tag(59, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
10589
|
+
if (message.input.oneofKind === "setBotPresenceState")
|
|
10590
|
+
SetBotPresenceStateInput.internalBinaryWrite(message.input.setBotPresenceState, writer.tag(60, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
10591
|
+
if (message.input.oneofKind === "updateDialogFollowMode")
|
|
10592
|
+
UpdateDialogFollowModeInput.internalBinaryWrite(message.input.updateDialogFollowMode, writer.tag(61, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
10385
10593
|
let u = options.writeUnknownFields;
|
|
10386
10594
|
if (u !== false)
|
|
10387
10595
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -10448,7 +10656,12 @@ class RpcResult$Type extends import_runtime4.MessageType {
|
|
|
10448
10656
|
{ no: 53, name: "updateDialogOrder", kind: "message", oneof: "result", T: () => UpdateDialogOrderResult },
|
|
10449
10657
|
{ no: 54, name: "clearChatHistory", kind: "message", oneof: "result", T: () => ClearChatHistoryResult },
|
|
10450
10658
|
{ no: 55, name: "deleteBot", kind: "message", oneof: "result", T: () => DeleteBotResult },
|
|
10451
|
-
{ no: 56, name: "deleteMessageAttachment", kind: "message", oneof: "result", T: () => DeleteMessageAttachmentResult }
|
|
10659
|
+
{ no: 56, name: "deleteMessageAttachment", kind: "message", oneof: "result", T: () => DeleteMessageAttachmentResult },
|
|
10660
|
+
{ no: 57, name: "setBotAvatar", kind: "message", oneof: "result", T: () => SetBotAvatarResult },
|
|
10661
|
+
{ no: 58, name: "clearBotAvatar", kind: "message", oneof: "result", T: () => ClearBotAvatarResult },
|
|
10662
|
+
{ no: 59, name: "getBotPresence", kind: "message", oneof: "result", T: () => GetBotPresenceResult },
|
|
10663
|
+
{ no: 60, name: "setBotPresenceState", kind: "message", oneof: "result", T: () => SetBotPresenceStateResult },
|
|
10664
|
+
{ no: 61, name: "updateDialogFollowMode", kind: "message", oneof: "result", T: () => UpdateDialogFollowModeResult }
|
|
10452
10665
|
]);
|
|
10453
10666
|
}
|
|
10454
10667
|
create(value) {
|
|
@@ -10797,6 +11010,36 @@ class RpcResult$Type extends import_runtime4.MessageType {
|
|
|
10797
11010
|
deleteMessageAttachment: DeleteMessageAttachmentResult.internalBinaryRead(reader, reader.uint32(), options, message.result.deleteMessageAttachment)
|
|
10798
11011
|
};
|
|
10799
11012
|
break;
|
|
11013
|
+
case 57:
|
|
11014
|
+
message.result = {
|
|
11015
|
+
oneofKind: "setBotAvatar",
|
|
11016
|
+
setBotAvatar: SetBotAvatarResult.internalBinaryRead(reader, reader.uint32(), options, message.result.setBotAvatar)
|
|
11017
|
+
};
|
|
11018
|
+
break;
|
|
11019
|
+
case 58:
|
|
11020
|
+
message.result = {
|
|
11021
|
+
oneofKind: "clearBotAvatar",
|
|
11022
|
+
clearBotAvatar: ClearBotAvatarResult.internalBinaryRead(reader, reader.uint32(), options, message.result.clearBotAvatar)
|
|
11023
|
+
};
|
|
11024
|
+
break;
|
|
11025
|
+
case 59:
|
|
11026
|
+
message.result = {
|
|
11027
|
+
oneofKind: "getBotPresence",
|
|
11028
|
+
getBotPresence: GetBotPresenceResult.internalBinaryRead(reader, reader.uint32(), options, message.result.getBotPresence)
|
|
11029
|
+
};
|
|
11030
|
+
break;
|
|
11031
|
+
case 60:
|
|
11032
|
+
message.result = {
|
|
11033
|
+
oneofKind: "setBotPresenceState",
|
|
11034
|
+
setBotPresenceState: SetBotPresenceStateResult.internalBinaryRead(reader, reader.uint32(), options, message.result.setBotPresenceState)
|
|
11035
|
+
};
|
|
11036
|
+
break;
|
|
11037
|
+
case 61:
|
|
11038
|
+
message.result = {
|
|
11039
|
+
oneofKind: "updateDialogFollowMode",
|
|
11040
|
+
updateDialogFollowMode: UpdateDialogFollowModeResult.internalBinaryRead(reader, reader.uint32(), options, message.result.updateDialogFollowMode)
|
|
11041
|
+
};
|
|
11042
|
+
break;
|
|
10800
11043
|
default:
|
|
10801
11044
|
let u = options.readUnknownField;
|
|
10802
11045
|
if (u === "throw")
|
|
@@ -10921,6 +11164,16 @@ class RpcResult$Type extends import_runtime4.MessageType {
|
|
|
10921
11164
|
DeleteBotResult.internalBinaryWrite(message.result.deleteBot, writer.tag(55, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
10922
11165
|
if (message.result.oneofKind === "deleteMessageAttachment")
|
|
10923
11166
|
DeleteMessageAttachmentResult.internalBinaryWrite(message.result.deleteMessageAttachment, writer.tag(56, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
11167
|
+
if (message.result.oneofKind === "setBotAvatar")
|
|
11168
|
+
SetBotAvatarResult.internalBinaryWrite(message.result.setBotAvatar, writer.tag(57, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
11169
|
+
if (message.result.oneofKind === "clearBotAvatar")
|
|
11170
|
+
ClearBotAvatarResult.internalBinaryWrite(message.result.clearBotAvatar, writer.tag(58, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
11171
|
+
if (message.result.oneofKind === "getBotPresence")
|
|
11172
|
+
GetBotPresenceResult.internalBinaryWrite(message.result.getBotPresence, writer.tag(59, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
11173
|
+
if (message.result.oneofKind === "setBotPresenceState")
|
|
11174
|
+
SetBotPresenceStateResult.internalBinaryWrite(message.result.setBotPresenceState, writer.tag(60, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
11175
|
+
if (message.result.oneofKind === "updateDialogFollowMode")
|
|
11176
|
+
UpdateDialogFollowModeResult.internalBinaryWrite(message.result.updateDialogFollowMode, writer.tag(61, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
10924
11177
|
let u = options.writeUnknownFields;
|
|
10925
11178
|
if (u !== false)
|
|
10926
11179
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -12012,6 +12265,97 @@ class UpdateDialogOrderResult$Type extends import_runtime4.MessageType {
|
|
|
12012
12265
|
}
|
|
12013
12266
|
var UpdateDialogOrderResult = new UpdateDialogOrderResult$Type;
|
|
12014
12267
|
|
|
12268
|
+
class UpdateDialogFollowModeInput$Type extends import_runtime4.MessageType {
|
|
12269
|
+
constructor() {
|
|
12270
|
+
super("UpdateDialogFollowModeInput", [
|
|
12271
|
+
{ no: 1, name: "peer_id", kind: "message", T: () => InputPeer },
|
|
12272
|
+
{ no: 2, name: "follow_mode", kind: "enum", opt: true, T: () => ["DialogFollowMode", DialogFollowMode] }
|
|
12273
|
+
]);
|
|
12274
|
+
}
|
|
12275
|
+
create(value) {
|
|
12276
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
12277
|
+
if (value !== undefined)
|
|
12278
|
+
import_runtime3.reflectionMergePartial(this, message, value);
|
|
12279
|
+
return message;
|
|
12280
|
+
}
|
|
12281
|
+
internalBinaryRead(reader, length, options, target) {
|
|
12282
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
12283
|
+
while (reader.pos < end) {
|
|
12284
|
+
let [fieldNo, wireType] = reader.tag();
|
|
12285
|
+
switch (fieldNo) {
|
|
12286
|
+
case 1:
|
|
12287
|
+
message.peerId = InputPeer.internalBinaryRead(reader, reader.uint32(), options, message.peerId);
|
|
12288
|
+
break;
|
|
12289
|
+
case 2:
|
|
12290
|
+
message.followMode = reader.int32();
|
|
12291
|
+
break;
|
|
12292
|
+
default:
|
|
12293
|
+
let u = options.readUnknownField;
|
|
12294
|
+
if (u === "throw")
|
|
12295
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
12296
|
+
let d = reader.skip(wireType);
|
|
12297
|
+
if (u !== false)
|
|
12298
|
+
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
12299
|
+
}
|
|
12300
|
+
}
|
|
12301
|
+
return message;
|
|
12302
|
+
}
|
|
12303
|
+
internalBinaryWrite(message, writer, options) {
|
|
12304
|
+
if (message.peerId)
|
|
12305
|
+
InputPeer.internalBinaryWrite(message.peerId, writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
12306
|
+
if (message.followMode !== undefined)
|
|
12307
|
+
writer.tag(2, import_runtime.WireType.Varint).int32(message.followMode);
|
|
12308
|
+
let u = options.writeUnknownFields;
|
|
12309
|
+
if (u !== false)
|
|
12310
|
+
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12311
|
+
return writer;
|
|
12312
|
+
}
|
|
12313
|
+
}
|
|
12314
|
+
var UpdateDialogFollowModeInput = new UpdateDialogFollowModeInput$Type;
|
|
12315
|
+
|
|
12316
|
+
class UpdateDialogFollowModeResult$Type extends import_runtime4.MessageType {
|
|
12317
|
+
constructor() {
|
|
12318
|
+
super("UpdateDialogFollowModeResult", [
|
|
12319
|
+
{ no: 1, name: "updates", kind: "message", repeat: 1, T: () => Update }
|
|
12320
|
+
]);
|
|
12321
|
+
}
|
|
12322
|
+
create(value) {
|
|
12323
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
12324
|
+
message.updates = [];
|
|
12325
|
+
if (value !== undefined)
|
|
12326
|
+
import_runtime3.reflectionMergePartial(this, message, value);
|
|
12327
|
+
return message;
|
|
12328
|
+
}
|
|
12329
|
+
internalBinaryRead(reader, length, options, target) {
|
|
12330
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
12331
|
+
while (reader.pos < end) {
|
|
12332
|
+
let [fieldNo, wireType] = reader.tag();
|
|
12333
|
+
switch (fieldNo) {
|
|
12334
|
+
case 1:
|
|
12335
|
+
message.updates.push(Update.internalBinaryRead(reader, reader.uint32(), options));
|
|
12336
|
+
break;
|
|
12337
|
+
default:
|
|
12338
|
+
let u = options.readUnknownField;
|
|
12339
|
+
if (u === "throw")
|
|
12340
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
12341
|
+
let d = reader.skip(wireType);
|
|
12342
|
+
if (u !== false)
|
|
12343
|
+
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
12344
|
+
}
|
|
12345
|
+
}
|
|
12346
|
+
return message;
|
|
12347
|
+
}
|
|
12348
|
+
internalBinaryWrite(message, writer, options) {
|
|
12349
|
+
for (let i = 0;i < message.updates.length; i++)
|
|
12350
|
+
Update.internalBinaryWrite(message.updates[i], writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
12351
|
+
let u = options.writeUnknownFields;
|
|
12352
|
+
if (u !== false)
|
|
12353
|
+
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12354
|
+
return writer;
|
|
12355
|
+
}
|
|
12356
|
+
}
|
|
12357
|
+
var UpdateDialogFollowModeResult = new UpdateDialogFollowModeResult$Type;
|
|
12358
|
+
|
|
12015
12359
|
class MarkAsUnreadInput$Type extends import_runtime4.MessageType {
|
|
12016
12360
|
constructor() {
|
|
12017
12361
|
super("MarkAsUnreadInput", [
|
|
@@ -12442,20 +12786,357 @@ class DeleteBotResult$Type extends import_runtime4.MessageType {
|
|
|
12442
12786
|
return writer;
|
|
12443
12787
|
}
|
|
12444
12788
|
}
|
|
12445
|
-
var DeleteBotResult = new DeleteBotResult$Type;
|
|
12789
|
+
var DeleteBotResult = new DeleteBotResult$Type;
|
|
12790
|
+
|
|
12791
|
+
class DeleteMessageAttachmentInput$Type extends import_runtime4.MessageType {
|
|
12792
|
+
constructor() {
|
|
12793
|
+
super("DeleteMessageAttachmentInput", [
|
|
12794
|
+
{ no: 1, name: "peer_id", kind: "message", T: () => InputPeer },
|
|
12795
|
+
{ no: 2, name: "message_id", kind: "scalar", T: 3, L: 0 },
|
|
12796
|
+
{ no: 3, name: "attachment_id", kind: "scalar", T: 3, L: 0 }
|
|
12797
|
+
]);
|
|
12798
|
+
}
|
|
12799
|
+
create(value) {
|
|
12800
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
12801
|
+
message.messageId = 0n;
|
|
12802
|
+
message.attachmentId = 0n;
|
|
12803
|
+
if (value !== undefined)
|
|
12804
|
+
import_runtime3.reflectionMergePartial(this, message, value);
|
|
12805
|
+
return message;
|
|
12806
|
+
}
|
|
12807
|
+
internalBinaryRead(reader, length, options, target) {
|
|
12808
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
12809
|
+
while (reader.pos < end) {
|
|
12810
|
+
let [fieldNo, wireType] = reader.tag();
|
|
12811
|
+
switch (fieldNo) {
|
|
12812
|
+
case 1:
|
|
12813
|
+
message.peerId = InputPeer.internalBinaryRead(reader, reader.uint32(), options, message.peerId);
|
|
12814
|
+
break;
|
|
12815
|
+
case 2:
|
|
12816
|
+
message.messageId = reader.int64().toBigInt();
|
|
12817
|
+
break;
|
|
12818
|
+
case 3:
|
|
12819
|
+
message.attachmentId = reader.int64().toBigInt();
|
|
12820
|
+
break;
|
|
12821
|
+
default:
|
|
12822
|
+
let u = options.readUnknownField;
|
|
12823
|
+
if (u === "throw")
|
|
12824
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
12825
|
+
let d = reader.skip(wireType);
|
|
12826
|
+
if (u !== false)
|
|
12827
|
+
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
12828
|
+
}
|
|
12829
|
+
}
|
|
12830
|
+
return message;
|
|
12831
|
+
}
|
|
12832
|
+
internalBinaryWrite(message, writer, options) {
|
|
12833
|
+
if (message.peerId)
|
|
12834
|
+
InputPeer.internalBinaryWrite(message.peerId, writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
12835
|
+
if (message.messageId !== 0n)
|
|
12836
|
+
writer.tag(2, import_runtime.WireType.Varint).int64(message.messageId);
|
|
12837
|
+
if (message.attachmentId !== 0n)
|
|
12838
|
+
writer.tag(3, import_runtime.WireType.Varint).int64(message.attachmentId);
|
|
12839
|
+
let u = options.writeUnknownFields;
|
|
12840
|
+
if (u !== false)
|
|
12841
|
+
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12842
|
+
return writer;
|
|
12843
|
+
}
|
|
12844
|
+
}
|
|
12845
|
+
var DeleteMessageAttachmentInput = new DeleteMessageAttachmentInput$Type;
|
|
12846
|
+
|
|
12847
|
+
class DeleteMessageAttachmentResult$Type extends import_runtime4.MessageType {
|
|
12848
|
+
constructor() {
|
|
12849
|
+
super("DeleteMessageAttachmentResult", [
|
|
12850
|
+
{ no: 1, name: "updates", kind: "message", repeat: 1, T: () => Update }
|
|
12851
|
+
]);
|
|
12852
|
+
}
|
|
12853
|
+
create(value) {
|
|
12854
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
12855
|
+
message.updates = [];
|
|
12856
|
+
if (value !== undefined)
|
|
12857
|
+
import_runtime3.reflectionMergePartial(this, message, value);
|
|
12858
|
+
return message;
|
|
12859
|
+
}
|
|
12860
|
+
internalBinaryRead(reader, length, options, target) {
|
|
12861
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
12862
|
+
while (reader.pos < end) {
|
|
12863
|
+
let [fieldNo, wireType] = reader.tag();
|
|
12864
|
+
switch (fieldNo) {
|
|
12865
|
+
case 1:
|
|
12866
|
+
message.updates.push(Update.internalBinaryRead(reader, reader.uint32(), options));
|
|
12867
|
+
break;
|
|
12868
|
+
default:
|
|
12869
|
+
let u = options.readUnknownField;
|
|
12870
|
+
if (u === "throw")
|
|
12871
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
12872
|
+
let d = reader.skip(wireType);
|
|
12873
|
+
if (u !== false)
|
|
12874
|
+
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
12875
|
+
}
|
|
12876
|
+
}
|
|
12877
|
+
return message;
|
|
12878
|
+
}
|
|
12879
|
+
internalBinaryWrite(message, writer, options) {
|
|
12880
|
+
for (let i = 0;i < message.updates.length; i++)
|
|
12881
|
+
Update.internalBinaryWrite(message.updates[i], writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
12882
|
+
let u = options.writeUnknownFields;
|
|
12883
|
+
if (u !== false)
|
|
12884
|
+
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12885
|
+
return writer;
|
|
12886
|
+
}
|
|
12887
|
+
}
|
|
12888
|
+
var DeleteMessageAttachmentResult = new DeleteMessageAttachmentResult$Type;
|
|
12889
|
+
|
|
12890
|
+
class RevokeSessionInput$Type extends import_runtime4.MessageType {
|
|
12891
|
+
constructor() {
|
|
12892
|
+
super("RevokeSessionInput", [
|
|
12893
|
+
{ no: 1, name: "session_id", kind: "scalar", T: 3, L: 0 }
|
|
12894
|
+
]);
|
|
12895
|
+
}
|
|
12896
|
+
create(value) {
|
|
12897
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
12898
|
+
message.sessionId = 0n;
|
|
12899
|
+
if (value !== undefined)
|
|
12900
|
+
import_runtime3.reflectionMergePartial(this, message, value);
|
|
12901
|
+
return message;
|
|
12902
|
+
}
|
|
12903
|
+
internalBinaryRead(reader, length, options, target) {
|
|
12904
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
12905
|
+
while (reader.pos < end) {
|
|
12906
|
+
let [fieldNo, wireType] = reader.tag();
|
|
12907
|
+
switch (fieldNo) {
|
|
12908
|
+
case 1:
|
|
12909
|
+
message.sessionId = reader.int64().toBigInt();
|
|
12910
|
+
break;
|
|
12911
|
+
default:
|
|
12912
|
+
let u = options.readUnknownField;
|
|
12913
|
+
if (u === "throw")
|
|
12914
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
12915
|
+
let d = reader.skip(wireType);
|
|
12916
|
+
if (u !== false)
|
|
12917
|
+
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
12918
|
+
}
|
|
12919
|
+
}
|
|
12920
|
+
return message;
|
|
12921
|
+
}
|
|
12922
|
+
internalBinaryWrite(message, writer, options) {
|
|
12923
|
+
if (message.sessionId !== 0n)
|
|
12924
|
+
writer.tag(1, import_runtime.WireType.Varint).int64(message.sessionId);
|
|
12925
|
+
let u = options.writeUnknownFields;
|
|
12926
|
+
if (u !== false)
|
|
12927
|
+
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12928
|
+
return writer;
|
|
12929
|
+
}
|
|
12930
|
+
}
|
|
12931
|
+
var RevokeSessionInput = new RevokeSessionInput$Type;
|
|
12932
|
+
|
|
12933
|
+
class RevokeSessionResult$Type extends import_runtime4.MessageType {
|
|
12934
|
+
constructor() {
|
|
12935
|
+
super("RevokeSessionResult", [
|
|
12936
|
+
{ no: 1, name: "revoked", kind: "scalar", T: 8 },
|
|
12937
|
+
{ no: 2, name: "already_revoked", kind: "scalar", T: 8 }
|
|
12938
|
+
]);
|
|
12939
|
+
}
|
|
12940
|
+
create(value) {
|
|
12941
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
12942
|
+
message.revoked = false;
|
|
12943
|
+
message.alreadyRevoked = false;
|
|
12944
|
+
if (value !== undefined)
|
|
12945
|
+
import_runtime3.reflectionMergePartial(this, message, value);
|
|
12946
|
+
return message;
|
|
12947
|
+
}
|
|
12948
|
+
internalBinaryRead(reader, length, options, target) {
|
|
12949
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
12950
|
+
while (reader.pos < end) {
|
|
12951
|
+
let [fieldNo, wireType] = reader.tag();
|
|
12952
|
+
switch (fieldNo) {
|
|
12953
|
+
case 1:
|
|
12954
|
+
message.revoked = reader.bool();
|
|
12955
|
+
break;
|
|
12956
|
+
case 2:
|
|
12957
|
+
message.alreadyRevoked = reader.bool();
|
|
12958
|
+
break;
|
|
12959
|
+
default:
|
|
12960
|
+
let u = options.readUnknownField;
|
|
12961
|
+
if (u === "throw")
|
|
12962
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
12963
|
+
let d = reader.skip(wireType);
|
|
12964
|
+
if (u !== false)
|
|
12965
|
+
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
12966
|
+
}
|
|
12967
|
+
}
|
|
12968
|
+
return message;
|
|
12969
|
+
}
|
|
12970
|
+
internalBinaryWrite(message, writer, options) {
|
|
12971
|
+
if (message.revoked !== false)
|
|
12972
|
+
writer.tag(1, import_runtime.WireType.Varint).bool(message.revoked);
|
|
12973
|
+
if (message.alreadyRevoked !== false)
|
|
12974
|
+
writer.tag(2, import_runtime.WireType.Varint).bool(message.alreadyRevoked);
|
|
12975
|
+
let u = options.writeUnknownFields;
|
|
12976
|
+
if (u !== false)
|
|
12977
|
+
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12978
|
+
return writer;
|
|
12979
|
+
}
|
|
12980
|
+
}
|
|
12981
|
+
var RevokeSessionResult = new RevokeSessionResult$Type;
|
|
12982
|
+
|
|
12983
|
+
class BotCommand$Type extends import_runtime4.MessageType {
|
|
12984
|
+
constructor() {
|
|
12985
|
+
super("BotCommand", [
|
|
12986
|
+
{ no: 1, name: "command", kind: "scalar", T: 9 },
|
|
12987
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 },
|
|
12988
|
+
{ no: 3, name: "sort_order", kind: "scalar", opt: true, T: 5 }
|
|
12989
|
+
]);
|
|
12990
|
+
}
|
|
12991
|
+
create(value) {
|
|
12992
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
12993
|
+
message.command = "";
|
|
12994
|
+
message.description = "";
|
|
12995
|
+
if (value !== undefined)
|
|
12996
|
+
import_runtime3.reflectionMergePartial(this, message, value);
|
|
12997
|
+
return message;
|
|
12998
|
+
}
|
|
12999
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13000
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13001
|
+
while (reader.pos < end) {
|
|
13002
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13003
|
+
switch (fieldNo) {
|
|
13004
|
+
case 1:
|
|
13005
|
+
message.command = reader.string();
|
|
13006
|
+
break;
|
|
13007
|
+
case 2:
|
|
13008
|
+
message.description = reader.string();
|
|
13009
|
+
break;
|
|
13010
|
+
case 3:
|
|
13011
|
+
message.sortOrder = reader.int32();
|
|
13012
|
+
break;
|
|
13013
|
+
default:
|
|
13014
|
+
let u = options.readUnknownField;
|
|
13015
|
+
if (u === "throw")
|
|
13016
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13017
|
+
let d = reader.skip(wireType);
|
|
13018
|
+
if (u !== false)
|
|
13019
|
+
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13020
|
+
}
|
|
13021
|
+
}
|
|
13022
|
+
return message;
|
|
13023
|
+
}
|
|
13024
|
+
internalBinaryWrite(message, writer, options) {
|
|
13025
|
+
if (message.command !== "")
|
|
13026
|
+
writer.tag(1, import_runtime.WireType.LengthDelimited).string(message.command);
|
|
13027
|
+
if (message.description !== "")
|
|
13028
|
+
writer.tag(2, import_runtime.WireType.LengthDelimited).string(message.description);
|
|
13029
|
+
if (message.sortOrder !== undefined)
|
|
13030
|
+
writer.tag(3, import_runtime.WireType.Varint).int32(message.sortOrder);
|
|
13031
|
+
let u = options.writeUnknownFields;
|
|
13032
|
+
if (u !== false)
|
|
13033
|
+
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13034
|
+
return writer;
|
|
13035
|
+
}
|
|
13036
|
+
}
|
|
13037
|
+
var BotCommand = new BotCommand$Type;
|
|
13038
|
+
|
|
13039
|
+
class PeerBotCommands$Type extends import_runtime4.MessageType {
|
|
13040
|
+
constructor() {
|
|
13041
|
+
super("PeerBotCommands", [
|
|
13042
|
+
{ no: 1, name: "bot", kind: "message", T: () => User },
|
|
13043
|
+
{ no: 2, name: "commands", kind: "message", repeat: 1, T: () => BotCommand }
|
|
13044
|
+
]);
|
|
13045
|
+
}
|
|
13046
|
+
create(value) {
|
|
13047
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
13048
|
+
message.commands = [];
|
|
13049
|
+
if (value !== undefined)
|
|
13050
|
+
import_runtime3.reflectionMergePartial(this, message, value);
|
|
13051
|
+
return message;
|
|
13052
|
+
}
|
|
13053
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13054
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13055
|
+
while (reader.pos < end) {
|
|
13056
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13057
|
+
switch (fieldNo) {
|
|
13058
|
+
case 1:
|
|
13059
|
+
message.bot = User.internalBinaryRead(reader, reader.uint32(), options, message.bot);
|
|
13060
|
+
break;
|
|
13061
|
+
case 2:
|
|
13062
|
+
message.commands.push(BotCommand.internalBinaryRead(reader, reader.uint32(), options));
|
|
13063
|
+
break;
|
|
13064
|
+
default:
|
|
13065
|
+
let u = options.readUnknownField;
|
|
13066
|
+
if (u === "throw")
|
|
13067
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13068
|
+
let d = reader.skip(wireType);
|
|
13069
|
+
if (u !== false)
|
|
13070
|
+
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13071
|
+
}
|
|
13072
|
+
}
|
|
13073
|
+
return message;
|
|
13074
|
+
}
|
|
13075
|
+
internalBinaryWrite(message, writer, options) {
|
|
13076
|
+
if (message.bot)
|
|
13077
|
+
User.internalBinaryWrite(message.bot, writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13078
|
+
for (let i = 0;i < message.commands.length; i++)
|
|
13079
|
+
BotCommand.internalBinaryWrite(message.commands[i], writer.tag(2, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13080
|
+
let u = options.writeUnknownFields;
|
|
13081
|
+
if (u !== false)
|
|
13082
|
+
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13083
|
+
return writer;
|
|
13084
|
+
}
|
|
13085
|
+
}
|
|
13086
|
+
var PeerBotCommands = new PeerBotCommands$Type;
|
|
13087
|
+
|
|
13088
|
+
class GetBotCommandsInput$Type extends import_runtime4.MessageType {
|
|
13089
|
+
constructor() {
|
|
13090
|
+
super("GetBotCommandsInput", [
|
|
13091
|
+
{ no: 1, name: "bot_user_id", kind: "scalar", T: 3, L: 0 }
|
|
13092
|
+
]);
|
|
13093
|
+
}
|
|
13094
|
+
create(value) {
|
|
13095
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
13096
|
+
message.botUserId = 0n;
|
|
13097
|
+
if (value !== undefined)
|
|
13098
|
+
import_runtime3.reflectionMergePartial(this, message, value);
|
|
13099
|
+
return message;
|
|
13100
|
+
}
|
|
13101
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13102
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13103
|
+
while (reader.pos < end) {
|
|
13104
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13105
|
+
switch (fieldNo) {
|
|
13106
|
+
case 1:
|
|
13107
|
+
message.botUserId = reader.int64().toBigInt();
|
|
13108
|
+
break;
|
|
13109
|
+
default:
|
|
13110
|
+
let u = options.readUnknownField;
|
|
13111
|
+
if (u === "throw")
|
|
13112
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13113
|
+
let d = reader.skip(wireType);
|
|
13114
|
+
if (u !== false)
|
|
13115
|
+
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13116
|
+
}
|
|
13117
|
+
}
|
|
13118
|
+
return message;
|
|
13119
|
+
}
|
|
13120
|
+
internalBinaryWrite(message, writer, options) {
|
|
13121
|
+
if (message.botUserId !== 0n)
|
|
13122
|
+
writer.tag(1, import_runtime.WireType.Varint).int64(message.botUserId);
|
|
13123
|
+
let u = options.writeUnknownFields;
|
|
13124
|
+
if (u !== false)
|
|
13125
|
+
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13126
|
+
return writer;
|
|
13127
|
+
}
|
|
13128
|
+
}
|
|
13129
|
+
var GetBotCommandsInput = new GetBotCommandsInput$Type;
|
|
12446
13130
|
|
|
12447
|
-
class
|
|
13131
|
+
class GetBotCommandsResult$Type extends import_runtime4.MessageType {
|
|
12448
13132
|
constructor() {
|
|
12449
|
-
super("
|
|
12450
|
-
{ no: 1, name: "
|
|
12451
|
-
{ no: 2, name: "message_id", kind: "scalar", T: 3, L: 0 },
|
|
12452
|
-
{ no: 3, name: "attachment_id", kind: "scalar", T: 3, L: 0 }
|
|
13133
|
+
super("GetBotCommandsResult", [
|
|
13134
|
+
{ no: 1, name: "commands", kind: "message", repeat: 1, T: () => BotCommand }
|
|
12453
13135
|
]);
|
|
12454
13136
|
}
|
|
12455
13137
|
create(value) {
|
|
12456
13138
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
12457
|
-
message.
|
|
12458
|
-
message.attachmentId = 0n;
|
|
13139
|
+
message.commands = [];
|
|
12459
13140
|
if (value !== undefined)
|
|
12460
13141
|
import_runtime3.reflectionMergePartial(this, message, value);
|
|
12461
13142
|
return message;
|
|
@@ -12466,13 +13147,55 @@ class DeleteMessageAttachmentInput$Type extends import_runtime4.MessageType {
|
|
|
12466
13147
|
let [fieldNo, wireType] = reader.tag();
|
|
12467
13148
|
switch (fieldNo) {
|
|
12468
13149
|
case 1:
|
|
12469
|
-
message.
|
|
13150
|
+
message.commands.push(BotCommand.internalBinaryRead(reader, reader.uint32(), options));
|
|
12470
13151
|
break;
|
|
12471
|
-
|
|
12472
|
-
|
|
13152
|
+
default:
|
|
13153
|
+
let u = options.readUnknownField;
|
|
13154
|
+
if (u === "throw")
|
|
13155
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13156
|
+
let d = reader.skip(wireType);
|
|
13157
|
+
if (u !== false)
|
|
13158
|
+
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13159
|
+
}
|
|
13160
|
+
}
|
|
13161
|
+
return message;
|
|
13162
|
+
}
|
|
13163
|
+
internalBinaryWrite(message, writer, options) {
|
|
13164
|
+
for (let i = 0;i < message.commands.length; i++)
|
|
13165
|
+
BotCommand.internalBinaryWrite(message.commands[i], writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13166
|
+
let u = options.writeUnknownFields;
|
|
13167
|
+
if (u !== false)
|
|
13168
|
+
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13169
|
+
return writer;
|
|
13170
|
+
}
|
|
13171
|
+
}
|
|
13172
|
+
var GetBotCommandsResult = new GetBotCommandsResult$Type;
|
|
13173
|
+
|
|
13174
|
+
class SetBotCommandsInput$Type extends import_runtime4.MessageType {
|
|
13175
|
+
constructor() {
|
|
13176
|
+
super("SetBotCommandsInput", [
|
|
13177
|
+
{ no: 1, name: "bot_user_id", kind: "scalar", T: 3, L: 0 },
|
|
13178
|
+
{ no: 2, name: "commands", kind: "message", repeat: 1, T: () => BotCommand }
|
|
13179
|
+
]);
|
|
13180
|
+
}
|
|
13181
|
+
create(value) {
|
|
13182
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
13183
|
+
message.botUserId = 0n;
|
|
13184
|
+
message.commands = [];
|
|
13185
|
+
if (value !== undefined)
|
|
13186
|
+
import_runtime3.reflectionMergePartial(this, message, value);
|
|
13187
|
+
return message;
|
|
13188
|
+
}
|
|
13189
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13190
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13191
|
+
while (reader.pos < end) {
|
|
13192
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13193
|
+
switch (fieldNo) {
|
|
13194
|
+
case 1:
|
|
13195
|
+
message.botUserId = reader.int64().toBigInt();
|
|
12473
13196
|
break;
|
|
12474
|
-
case
|
|
12475
|
-
message.
|
|
13197
|
+
case 2:
|
|
13198
|
+
message.commands.push(BotCommand.internalBinaryRead(reader, reader.uint32(), options));
|
|
12476
13199
|
break;
|
|
12477
13200
|
default:
|
|
12478
13201
|
let u = options.readUnknownField;
|
|
@@ -12486,29 +13209,27 @@ class DeleteMessageAttachmentInput$Type extends import_runtime4.MessageType {
|
|
|
12486
13209
|
return message;
|
|
12487
13210
|
}
|
|
12488
13211
|
internalBinaryWrite(message, writer, options) {
|
|
12489
|
-
if (message.
|
|
12490
|
-
|
|
12491
|
-
|
|
12492
|
-
writer.tag(2, import_runtime.WireType.
|
|
12493
|
-
if (message.attachmentId !== 0n)
|
|
12494
|
-
writer.tag(3, import_runtime.WireType.Varint).int64(message.attachmentId);
|
|
13212
|
+
if (message.botUserId !== 0n)
|
|
13213
|
+
writer.tag(1, import_runtime.WireType.Varint).int64(message.botUserId);
|
|
13214
|
+
for (let i = 0;i < message.commands.length; i++)
|
|
13215
|
+
BotCommand.internalBinaryWrite(message.commands[i], writer.tag(2, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
12495
13216
|
let u = options.writeUnknownFields;
|
|
12496
13217
|
if (u !== false)
|
|
12497
13218
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12498
13219
|
return writer;
|
|
12499
13220
|
}
|
|
12500
13221
|
}
|
|
12501
|
-
var
|
|
13222
|
+
var SetBotCommandsInput = new SetBotCommandsInput$Type;
|
|
12502
13223
|
|
|
12503
|
-
class
|
|
13224
|
+
class SetBotCommandsResult$Type extends import_runtime4.MessageType {
|
|
12504
13225
|
constructor() {
|
|
12505
|
-
super("
|
|
12506
|
-
{ no: 1, name: "
|
|
13226
|
+
super("SetBotCommandsResult", [
|
|
13227
|
+
{ no: 1, name: "commands", kind: "message", repeat: 1, T: () => BotCommand }
|
|
12507
13228
|
]);
|
|
12508
13229
|
}
|
|
12509
13230
|
create(value) {
|
|
12510
13231
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
12511
|
-
message.
|
|
13232
|
+
message.commands = [];
|
|
12512
13233
|
if (value !== undefined)
|
|
12513
13234
|
import_runtime3.reflectionMergePartial(this, message, value);
|
|
12514
13235
|
return message;
|
|
@@ -12519,7 +13240,7 @@ class DeleteMessageAttachmentResult$Type extends import_runtime4.MessageType {
|
|
|
12519
13240
|
let [fieldNo, wireType] = reader.tag();
|
|
12520
13241
|
switch (fieldNo) {
|
|
12521
13242
|
case 1:
|
|
12522
|
-
message.
|
|
13243
|
+
message.commands.push(BotCommand.internalBinaryRead(reader, reader.uint32(), options));
|
|
12523
13244
|
break;
|
|
12524
13245
|
default:
|
|
12525
13246
|
let u = options.readUnknownField;
|
|
@@ -12533,25 +13254,24 @@ class DeleteMessageAttachmentResult$Type extends import_runtime4.MessageType {
|
|
|
12533
13254
|
return message;
|
|
12534
13255
|
}
|
|
12535
13256
|
internalBinaryWrite(message, writer, options) {
|
|
12536
|
-
for (let i = 0;i < message.
|
|
12537
|
-
|
|
13257
|
+
for (let i = 0;i < message.commands.length; i++)
|
|
13258
|
+
BotCommand.internalBinaryWrite(message.commands[i], writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
12538
13259
|
let u = options.writeUnknownFields;
|
|
12539
13260
|
if (u !== false)
|
|
12540
13261
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12541
13262
|
return writer;
|
|
12542
13263
|
}
|
|
12543
13264
|
}
|
|
12544
|
-
var
|
|
13265
|
+
var SetBotCommandsResult = new SetBotCommandsResult$Type;
|
|
12545
13266
|
|
|
12546
|
-
class
|
|
13267
|
+
class GetPeerBotCommandsInput$Type extends import_runtime4.MessageType {
|
|
12547
13268
|
constructor() {
|
|
12548
|
-
super("
|
|
12549
|
-
{ no: 1, name: "
|
|
13269
|
+
super("GetPeerBotCommandsInput", [
|
|
13270
|
+
{ no: 1, name: "peer_id", kind: "message", T: () => InputPeer }
|
|
12550
13271
|
]);
|
|
12551
13272
|
}
|
|
12552
13273
|
create(value) {
|
|
12553
13274
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
12554
|
-
message.sessionId = 0n;
|
|
12555
13275
|
if (value !== undefined)
|
|
12556
13276
|
import_runtime3.reflectionMergePartial(this, message, value);
|
|
12557
13277
|
return message;
|
|
@@ -12562,7 +13282,7 @@ class RevokeSessionInput$Type extends import_runtime4.MessageType {
|
|
|
12562
13282
|
let [fieldNo, wireType] = reader.tag();
|
|
12563
13283
|
switch (fieldNo) {
|
|
12564
13284
|
case 1:
|
|
12565
|
-
message.
|
|
13285
|
+
message.peerId = InputPeer.internalBinaryRead(reader, reader.uint32(), options, message.peerId);
|
|
12566
13286
|
break;
|
|
12567
13287
|
default:
|
|
12568
13288
|
let u = options.readUnknownField;
|
|
@@ -12576,27 +13296,25 @@ class RevokeSessionInput$Type extends import_runtime4.MessageType {
|
|
|
12576
13296
|
return message;
|
|
12577
13297
|
}
|
|
12578
13298
|
internalBinaryWrite(message, writer, options) {
|
|
12579
|
-
if (message.
|
|
12580
|
-
writer.tag(1, import_runtime.WireType.
|
|
13299
|
+
if (message.peerId)
|
|
13300
|
+
InputPeer.internalBinaryWrite(message.peerId, writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
12581
13301
|
let u = options.writeUnknownFields;
|
|
12582
13302
|
if (u !== false)
|
|
12583
13303
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12584
13304
|
return writer;
|
|
12585
13305
|
}
|
|
12586
13306
|
}
|
|
12587
|
-
var
|
|
13307
|
+
var GetPeerBotCommandsInput = new GetPeerBotCommandsInput$Type;
|
|
12588
13308
|
|
|
12589
|
-
class
|
|
13309
|
+
class GetPeerBotCommandsResult$Type extends import_runtime4.MessageType {
|
|
12590
13310
|
constructor() {
|
|
12591
|
-
super("
|
|
12592
|
-
{ no: 1, name: "
|
|
12593
|
-
{ no: 2, name: "already_revoked", kind: "scalar", T: 8 }
|
|
13311
|
+
super("GetPeerBotCommandsResult", [
|
|
13312
|
+
{ no: 1, name: "bots", kind: "message", repeat: 1, T: () => PeerBotCommands }
|
|
12594
13313
|
]);
|
|
12595
13314
|
}
|
|
12596
13315
|
create(value) {
|
|
12597
13316
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
12598
|
-
message.
|
|
12599
|
-
message.alreadyRevoked = false;
|
|
13317
|
+
message.bots = [];
|
|
12600
13318
|
if (value !== undefined)
|
|
12601
13319
|
import_runtime3.reflectionMergePartial(this, message, value);
|
|
12602
13320
|
return message;
|
|
@@ -12607,10 +13325,7 @@ class RevokeSessionResult$Type extends import_runtime4.MessageType {
|
|
|
12607
13325
|
let [fieldNo, wireType] = reader.tag();
|
|
12608
13326
|
switch (fieldNo) {
|
|
12609
13327
|
case 1:
|
|
12610
|
-
message.
|
|
12611
|
-
break;
|
|
12612
|
-
case 2:
|
|
12613
|
-
message.alreadyRevoked = reader.bool();
|
|
13328
|
+
message.bots.push(PeerBotCommands.internalBinaryRead(reader, reader.uint32(), options));
|
|
12614
13329
|
break;
|
|
12615
13330
|
default:
|
|
12616
13331
|
let u = options.readUnknownField;
|
|
@@ -12624,30 +13339,25 @@ class RevokeSessionResult$Type extends import_runtime4.MessageType {
|
|
|
12624
13339
|
return message;
|
|
12625
13340
|
}
|
|
12626
13341
|
internalBinaryWrite(message, writer, options) {
|
|
12627
|
-
|
|
12628
|
-
writer.tag(1, import_runtime.WireType.
|
|
12629
|
-
if (message.alreadyRevoked !== false)
|
|
12630
|
-
writer.tag(2, import_runtime.WireType.Varint).bool(message.alreadyRevoked);
|
|
13342
|
+
for (let i = 0;i < message.bots.length; i++)
|
|
13343
|
+
PeerBotCommands.internalBinaryWrite(message.bots[i], writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
12631
13344
|
let u = options.writeUnknownFields;
|
|
12632
13345
|
if (u !== false)
|
|
12633
13346
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12634
13347
|
return writer;
|
|
12635
13348
|
}
|
|
12636
13349
|
}
|
|
12637
|
-
var
|
|
13350
|
+
var GetPeerBotCommandsResult = new GetPeerBotCommandsResult$Type;
|
|
12638
13351
|
|
|
12639
|
-
class
|
|
13352
|
+
class RevealBotTokenInput$Type extends import_runtime4.MessageType {
|
|
12640
13353
|
constructor() {
|
|
12641
|
-
super("
|
|
12642
|
-
{ no: 1, name: "
|
|
12643
|
-
{ no: 2, name: "description", kind: "scalar", T: 9 },
|
|
12644
|
-
{ no: 3, name: "sort_order", kind: "scalar", opt: true, T: 5 }
|
|
13354
|
+
super("RevealBotTokenInput", [
|
|
13355
|
+
{ no: 1, name: "bot_user_id", kind: "scalar", T: 3, L: 0 }
|
|
12645
13356
|
]);
|
|
12646
13357
|
}
|
|
12647
13358
|
create(value) {
|
|
12648
13359
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
12649
|
-
message.
|
|
12650
|
-
message.description = "";
|
|
13360
|
+
message.botUserId = 0n;
|
|
12651
13361
|
if (value !== undefined)
|
|
12652
13362
|
import_runtime3.reflectionMergePartial(this, message, value);
|
|
12653
13363
|
return message;
|
|
@@ -12658,13 +13368,7 @@ class BotCommand$Type extends import_runtime4.MessageType {
|
|
|
12658
13368
|
let [fieldNo, wireType] = reader.tag();
|
|
12659
13369
|
switch (fieldNo) {
|
|
12660
13370
|
case 1:
|
|
12661
|
-
message.
|
|
12662
|
-
break;
|
|
12663
|
-
case 2:
|
|
12664
|
-
message.description = reader.string();
|
|
12665
|
-
break;
|
|
12666
|
-
case 3:
|
|
12667
|
-
message.sortOrder = reader.int32();
|
|
13371
|
+
message.botUserId = reader.int64().toBigInt();
|
|
12668
13372
|
break;
|
|
12669
13373
|
default:
|
|
12670
13374
|
let u = options.readUnknownField;
|
|
@@ -12678,30 +13382,25 @@ class BotCommand$Type extends import_runtime4.MessageType {
|
|
|
12678
13382
|
return message;
|
|
12679
13383
|
}
|
|
12680
13384
|
internalBinaryWrite(message, writer, options) {
|
|
12681
|
-
if (message.
|
|
12682
|
-
writer.tag(1, import_runtime.WireType.
|
|
12683
|
-
if (message.description !== "")
|
|
12684
|
-
writer.tag(2, import_runtime.WireType.LengthDelimited).string(message.description);
|
|
12685
|
-
if (message.sortOrder !== undefined)
|
|
12686
|
-
writer.tag(3, import_runtime.WireType.Varint).int32(message.sortOrder);
|
|
13385
|
+
if (message.botUserId !== 0n)
|
|
13386
|
+
writer.tag(1, import_runtime.WireType.Varint).int64(message.botUserId);
|
|
12687
13387
|
let u = options.writeUnknownFields;
|
|
12688
13388
|
if (u !== false)
|
|
12689
13389
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12690
13390
|
return writer;
|
|
12691
13391
|
}
|
|
12692
13392
|
}
|
|
12693
|
-
var
|
|
13393
|
+
var RevealBotTokenInput = new RevealBotTokenInput$Type;
|
|
12694
13394
|
|
|
12695
|
-
class
|
|
13395
|
+
class RevealBotTokenResult$Type extends import_runtime4.MessageType {
|
|
12696
13396
|
constructor() {
|
|
12697
|
-
super("
|
|
12698
|
-
{ no: 1, name: "
|
|
12699
|
-
{ no: 2, name: "commands", kind: "message", repeat: 1, T: () => BotCommand }
|
|
13397
|
+
super("RevealBotTokenResult", [
|
|
13398
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 }
|
|
12700
13399
|
]);
|
|
12701
13400
|
}
|
|
12702
13401
|
create(value) {
|
|
12703
13402
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
12704
|
-
message.
|
|
13403
|
+
message.token = "";
|
|
12705
13404
|
if (value !== undefined)
|
|
12706
13405
|
import_runtime3.reflectionMergePartial(this, message, value);
|
|
12707
13406
|
return message;
|
|
@@ -12712,10 +13411,7 @@ class PeerBotCommands$Type extends import_runtime4.MessageType {
|
|
|
12712
13411
|
let [fieldNo, wireType] = reader.tag();
|
|
12713
13412
|
switch (fieldNo) {
|
|
12714
13413
|
case 1:
|
|
12715
|
-
message.
|
|
12716
|
-
break;
|
|
12717
|
-
case 2:
|
|
12718
|
-
message.commands.push(BotCommand.internalBinaryRead(reader, reader.uint32(), options));
|
|
13414
|
+
message.token = reader.string();
|
|
12719
13415
|
break;
|
|
12720
13416
|
default:
|
|
12721
13417
|
let u = options.readUnknownField;
|
|
@@ -12729,21 +13425,19 @@ class PeerBotCommands$Type extends import_runtime4.MessageType {
|
|
|
12729
13425
|
return message;
|
|
12730
13426
|
}
|
|
12731
13427
|
internalBinaryWrite(message, writer, options) {
|
|
12732
|
-
if (message.
|
|
12733
|
-
|
|
12734
|
-
for (let i = 0;i < message.commands.length; i++)
|
|
12735
|
-
BotCommand.internalBinaryWrite(message.commands[i], writer.tag(2, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13428
|
+
if (message.token !== "")
|
|
13429
|
+
writer.tag(1, import_runtime.WireType.LengthDelimited).string(message.token);
|
|
12736
13430
|
let u = options.writeUnknownFields;
|
|
12737
13431
|
if (u !== false)
|
|
12738
13432
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12739
13433
|
return writer;
|
|
12740
13434
|
}
|
|
12741
13435
|
}
|
|
12742
|
-
var
|
|
13436
|
+
var RevealBotTokenResult = new RevealBotTokenResult$Type;
|
|
12743
13437
|
|
|
12744
|
-
class
|
|
13438
|
+
class RotateBotTokenInput$Type extends import_runtime4.MessageType {
|
|
12745
13439
|
constructor() {
|
|
12746
|
-
super("
|
|
13440
|
+
super("RotateBotTokenInput", [
|
|
12747
13441
|
{ no: 1, name: "bot_user_id", kind: "scalar", T: 3, L: 0 }
|
|
12748
13442
|
]);
|
|
12749
13443
|
}
|
|
@@ -12782,17 +13476,17 @@ class GetBotCommandsInput$Type extends import_runtime4.MessageType {
|
|
|
12782
13476
|
return writer;
|
|
12783
13477
|
}
|
|
12784
13478
|
}
|
|
12785
|
-
var
|
|
13479
|
+
var RotateBotTokenInput = new RotateBotTokenInput$Type;
|
|
12786
13480
|
|
|
12787
|
-
class
|
|
13481
|
+
class RotateBotTokenResult$Type extends import_runtime4.MessageType {
|
|
12788
13482
|
constructor() {
|
|
12789
|
-
super("
|
|
12790
|
-
{ no: 1, name: "
|
|
13483
|
+
super("RotateBotTokenResult", [
|
|
13484
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 }
|
|
12791
13485
|
]);
|
|
12792
13486
|
}
|
|
12793
13487
|
create(value) {
|
|
12794
13488
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
12795
|
-
message.
|
|
13489
|
+
message.token = "";
|
|
12796
13490
|
if (value !== undefined)
|
|
12797
13491
|
import_runtime3.reflectionMergePartial(this, message, value);
|
|
12798
13492
|
return message;
|
|
@@ -12803,7 +13497,7 @@ class GetBotCommandsResult$Type extends import_runtime4.MessageType {
|
|
|
12803
13497
|
let [fieldNo, wireType] = reader.tag();
|
|
12804
13498
|
switch (fieldNo) {
|
|
12805
13499
|
case 1:
|
|
12806
|
-
message.
|
|
13500
|
+
message.token = reader.string();
|
|
12807
13501
|
break;
|
|
12808
13502
|
default:
|
|
12809
13503
|
let u = options.readUnknownField;
|
|
@@ -12817,27 +13511,27 @@ class GetBotCommandsResult$Type extends import_runtime4.MessageType {
|
|
|
12817
13511
|
return message;
|
|
12818
13512
|
}
|
|
12819
13513
|
internalBinaryWrite(message, writer, options) {
|
|
12820
|
-
|
|
12821
|
-
|
|
13514
|
+
if (message.token !== "")
|
|
13515
|
+
writer.tag(1, import_runtime.WireType.LengthDelimited).string(message.token);
|
|
12822
13516
|
let u = options.writeUnknownFields;
|
|
12823
13517
|
if (u !== false)
|
|
12824
13518
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12825
13519
|
return writer;
|
|
12826
13520
|
}
|
|
12827
13521
|
}
|
|
12828
|
-
var
|
|
13522
|
+
var RotateBotTokenResult = new RotateBotTokenResult$Type;
|
|
12829
13523
|
|
|
12830
|
-
class
|
|
13524
|
+
class UpdateBotProfileInput$Type extends import_runtime4.MessageType {
|
|
12831
13525
|
constructor() {
|
|
12832
|
-
super("
|
|
13526
|
+
super("UpdateBotProfileInput", [
|
|
12833
13527
|
{ no: 1, name: "bot_user_id", kind: "scalar", T: 3, L: 0 },
|
|
12834
|
-
{ no: 2, name: "
|
|
13528
|
+
{ no: 2, name: "name", kind: "scalar", opt: true, T: 9 },
|
|
13529
|
+
{ no: 3, name: "photo_file_unique_id", kind: "scalar", opt: true, T: 9 }
|
|
12835
13530
|
]);
|
|
12836
13531
|
}
|
|
12837
13532
|
create(value) {
|
|
12838
13533
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
12839
13534
|
message.botUserId = 0n;
|
|
12840
|
-
message.commands = [];
|
|
12841
13535
|
if (value !== undefined)
|
|
12842
13536
|
import_runtime3.reflectionMergePartial(this, message, value);
|
|
12843
13537
|
return message;
|
|
@@ -12851,7 +13545,10 @@ class SetBotCommandsInput$Type extends import_runtime4.MessageType {
|
|
|
12851
13545
|
message.botUserId = reader.int64().toBigInt();
|
|
12852
13546
|
break;
|
|
12853
13547
|
case 2:
|
|
12854
|
-
message.
|
|
13548
|
+
message.name = reader.string();
|
|
13549
|
+
break;
|
|
13550
|
+
case 3:
|
|
13551
|
+
message.photoFileUniqueId = reader.string();
|
|
12855
13552
|
break;
|
|
12856
13553
|
default:
|
|
12857
13554
|
let u = options.readUnknownField;
|
|
@@ -12867,25 +13564,26 @@ class SetBotCommandsInput$Type extends import_runtime4.MessageType {
|
|
|
12867
13564
|
internalBinaryWrite(message, writer, options) {
|
|
12868
13565
|
if (message.botUserId !== 0n)
|
|
12869
13566
|
writer.tag(1, import_runtime.WireType.Varint).int64(message.botUserId);
|
|
12870
|
-
|
|
12871
|
-
|
|
13567
|
+
if (message.name !== undefined)
|
|
13568
|
+
writer.tag(2, import_runtime.WireType.LengthDelimited).string(message.name);
|
|
13569
|
+
if (message.photoFileUniqueId !== undefined)
|
|
13570
|
+
writer.tag(3, import_runtime.WireType.LengthDelimited).string(message.photoFileUniqueId);
|
|
12872
13571
|
let u = options.writeUnknownFields;
|
|
12873
13572
|
if (u !== false)
|
|
12874
13573
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12875
13574
|
return writer;
|
|
12876
13575
|
}
|
|
12877
13576
|
}
|
|
12878
|
-
var
|
|
13577
|
+
var UpdateBotProfileInput = new UpdateBotProfileInput$Type;
|
|
12879
13578
|
|
|
12880
|
-
class
|
|
13579
|
+
class UpdateBotProfileResult$Type extends import_runtime4.MessageType {
|
|
12881
13580
|
constructor() {
|
|
12882
|
-
super("
|
|
12883
|
-
{ no: 1, name: "
|
|
13581
|
+
super("UpdateBotProfileResult", [
|
|
13582
|
+
{ no: 1, name: "bot", kind: "message", T: () => User }
|
|
12884
13583
|
]);
|
|
12885
13584
|
}
|
|
12886
13585
|
create(value) {
|
|
12887
13586
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
12888
|
-
message.commands = [];
|
|
12889
13587
|
if (value !== undefined)
|
|
12890
13588
|
import_runtime3.reflectionMergePartial(this, message, value);
|
|
12891
13589
|
return message;
|
|
@@ -12896,7 +13594,7 @@ class SetBotCommandsResult$Type extends import_runtime4.MessageType {
|
|
|
12896
13594
|
let [fieldNo, wireType] = reader.tag();
|
|
12897
13595
|
switch (fieldNo) {
|
|
12898
13596
|
case 1:
|
|
12899
|
-
message.
|
|
13597
|
+
message.bot = User.internalBinaryRead(reader, reader.uint32(), options, message.bot);
|
|
12900
13598
|
break;
|
|
12901
13599
|
default:
|
|
12902
13600
|
let u = options.readUnknownField;
|
|
@@ -12910,24 +13608,32 @@ class SetBotCommandsResult$Type extends import_runtime4.MessageType {
|
|
|
12910
13608
|
return message;
|
|
12911
13609
|
}
|
|
12912
13610
|
internalBinaryWrite(message, writer, options) {
|
|
12913
|
-
|
|
12914
|
-
|
|
13611
|
+
if (message.bot)
|
|
13612
|
+
User.internalBinaryWrite(message.bot, writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
12915
13613
|
let u = options.writeUnknownFields;
|
|
12916
13614
|
if (u !== false)
|
|
12917
13615
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12918
13616
|
return writer;
|
|
12919
13617
|
}
|
|
12920
13618
|
}
|
|
12921
|
-
var
|
|
13619
|
+
var UpdateBotProfileResult = new UpdateBotProfileResult$Type;
|
|
12922
13620
|
|
|
12923
|
-
class
|
|
13621
|
+
class SetBotAvatarInput$Type extends import_runtime4.MessageType {
|
|
12924
13622
|
constructor() {
|
|
12925
|
-
super("
|
|
12926
|
-
{ no: 1, name: "
|
|
13623
|
+
super("SetBotAvatarInput", [
|
|
13624
|
+
{ no: 1, name: "bot_user_id", kind: "scalar", T: 3, L: 0 },
|
|
13625
|
+
{ no: 2, name: "kind", kind: "enum", T: () => ["BotAvatar.Kind", BotAvatar_Kind] },
|
|
13626
|
+
{ no: 3, name: "display_name", kind: "scalar", T: 9 },
|
|
13627
|
+
{ no: 4, name: "description", kind: "scalar", opt: true, T: 9 },
|
|
13628
|
+
{ no: 5, name: "file_unique_id", kind: "scalar", T: 9 }
|
|
12927
13629
|
]);
|
|
12928
13630
|
}
|
|
12929
13631
|
create(value) {
|
|
12930
13632
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
13633
|
+
message.botUserId = 0n;
|
|
13634
|
+
message.kind = 0;
|
|
13635
|
+
message.displayName = "";
|
|
13636
|
+
message.fileUniqueId = "";
|
|
12931
13637
|
if (value !== undefined)
|
|
12932
13638
|
import_runtime3.reflectionMergePartial(this, message, value);
|
|
12933
13639
|
return message;
|
|
@@ -12938,7 +13644,19 @@ class GetPeerBotCommandsInput$Type extends import_runtime4.MessageType {
|
|
|
12938
13644
|
let [fieldNo, wireType] = reader.tag();
|
|
12939
13645
|
switch (fieldNo) {
|
|
12940
13646
|
case 1:
|
|
12941
|
-
message.
|
|
13647
|
+
message.botUserId = reader.int64().toBigInt();
|
|
13648
|
+
break;
|
|
13649
|
+
case 2:
|
|
13650
|
+
message.kind = reader.int32();
|
|
13651
|
+
break;
|
|
13652
|
+
case 3:
|
|
13653
|
+
message.displayName = reader.string();
|
|
13654
|
+
break;
|
|
13655
|
+
case 4:
|
|
13656
|
+
message.description = reader.string();
|
|
13657
|
+
break;
|
|
13658
|
+
case 5:
|
|
13659
|
+
message.fileUniqueId = reader.string();
|
|
12942
13660
|
break;
|
|
12943
13661
|
default:
|
|
12944
13662
|
let u = options.readUnknownField;
|
|
@@ -12952,25 +13670,32 @@ class GetPeerBotCommandsInput$Type extends import_runtime4.MessageType {
|
|
|
12952
13670
|
return message;
|
|
12953
13671
|
}
|
|
12954
13672
|
internalBinaryWrite(message, writer, options) {
|
|
12955
|
-
if (message.
|
|
12956
|
-
|
|
13673
|
+
if (message.botUserId !== 0n)
|
|
13674
|
+
writer.tag(1, import_runtime.WireType.Varint).int64(message.botUserId);
|
|
13675
|
+
if (message.kind !== 0)
|
|
13676
|
+
writer.tag(2, import_runtime.WireType.Varint).int32(message.kind);
|
|
13677
|
+
if (message.displayName !== "")
|
|
13678
|
+
writer.tag(3, import_runtime.WireType.LengthDelimited).string(message.displayName);
|
|
13679
|
+
if (message.description !== undefined)
|
|
13680
|
+
writer.tag(4, import_runtime.WireType.LengthDelimited).string(message.description);
|
|
13681
|
+
if (message.fileUniqueId !== "")
|
|
13682
|
+
writer.tag(5, import_runtime.WireType.LengthDelimited).string(message.fileUniqueId);
|
|
12957
13683
|
let u = options.writeUnknownFields;
|
|
12958
13684
|
if (u !== false)
|
|
12959
13685
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
12960
13686
|
return writer;
|
|
12961
13687
|
}
|
|
12962
13688
|
}
|
|
12963
|
-
var
|
|
13689
|
+
var SetBotAvatarInput = new SetBotAvatarInput$Type;
|
|
12964
13690
|
|
|
12965
|
-
class
|
|
13691
|
+
class SetBotAvatarResult$Type extends import_runtime4.MessageType {
|
|
12966
13692
|
constructor() {
|
|
12967
|
-
super("
|
|
12968
|
-
{ no: 1, name: "
|
|
13693
|
+
super("SetBotAvatarResult", [
|
|
13694
|
+
{ no: 1, name: "bot", kind: "message", T: () => User }
|
|
12969
13695
|
]);
|
|
12970
13696
|
}
|
|
12971
13697
|
create(value) {
|
|
12972
13698
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
12973
|
-
message.bots = [];
|
|
12974
13699
|
if (value !== undefined)
|
|
12975
13700
|
import_runtime3.reflectionMergePartial(this, message, value);
|
|
12976
13701
|
return message;
|
|
@@ -12981,7 +13706,7 @@ class GetPeerBotCommandsResult$Type extends import_runtime4.MessageType {
|
|
|
12981
13706
|
let [fieldNo, wireType] = reader.tag();
|
|
12982
13707
|
switch (fieldNo) {
|
|
12983
13708
|
case 1:
|
|
12984
|
-
message.
|
|
13709
|
+
message.bot = User.internalBinaryRead(reader, reader.uint32(), options, message.bot);
|
|
12985
13710
|
break;
|
|
12986
13711
|
default:
|
|
12987
13712
|
let u = options.readUnknownField;
|
|
@@ -12995,19 +13720,19 @@ class GetPeerBotCommandsResult$Type extends import_runtime4.MessageType {
|
|
|
12995
13720
|
return message;
|
|
12996
13721
|
}
|
|
12997
13722
|
internalBinaryWrite(message, writer, options) {
|
|
12998
|
-
|
|
12999
|
-
|
|
13723
|
+
if (message.bot)
|
|
13724
|
+
User.internalBinaryWrite(message.bot, writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13000
13725
|
let u = options.writeUnknownFields;
|
|
13001
13726
|
if (u !== false)
|
|
13002
13727
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13003
13728
|
return writer;
|
|
13004
13729
|
}
|
|
13005
13730
|
}
|
|
13006
|
-
var
|
|
13731
|
+
var SetBotAvatarResult = new SetBotAvatarResult$Type;
|
|
13007
13732
|
|
|
13008
|
-
class
|
|
13733
|
+
class ClearBotAvatarInput$Type extends import_runtime4.MessageType {
|
|
13009
13734
|
constructor() {
|
|
13010
|
-
super("
|
|
13735
|
+
super("ClearBotAvatarInput", [
|
|
13011
13736
|
{ no: 1, name: "bot_user_id", kind: "scalar", T: 3, L: 0 }
|
|
13012
13737
|
]);
|
|
13013
13738
|
}
|
|
@@ -13046,17 +13771,16 @@ class RevealBotTokenInput$Type extends import_runtime4.MessageType {
|
|
|
13046
13771
|
return writer;
|
|
13047
13772
|
}
|
|
13048
13773
|
}
|
|
13049
|
-
var
|
|
13774
|
+
var ClearBotAvatarInput = new ClearBotAvatarInput$Type;
|
|
13050
13775
|
|
|
13051
|
-
class
|
|
13776
|
+
class ClearBotAvatarResult$Type extends import_runtime4.MessageType {
|
|
13052
13777
|
constructor() {
|
|
13053
|
-
super("
|
|
13054
|
-
{ no: 1, name: "
|
|
13778
|
+
super("ClearBotAvatarResult", [
|
|
13779
|
+
{ no: 1, name: "bot", kind: "message", T: () => User }
|
|
13055
13780
|
]);
|
|
13056
13781
|
}
|
|
13057
13782
|
create(value) {
|
|
13058
13783
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
13059
|
-
message.token = "";
|
|
13060
13784
|
if (value !== undefined)
|
|
13061
13785
|
import_runtime3.reflectionMergePartial(this, message, value);
|
|
13062
13786
|
return message;
|
|
@@ -13067,7 +13791,7 @@ class RevealBotTokenResult$Type extends import_runtime4.MessageType {
|
|
|
13067
13791
|
let [fieldNo, wireType] = reader.tag();
|
|
13068
13792
|
switch (fieldNo) {
|
|
13069
13793
|
case 1:
|
|
13070
|
-
message.
|
|
13794
|
+
message.bot = User.internalBinaryRead(reader, reader.uint32(), options, message.bot);
|
|
13071
13795
|
break;
|
|
13072
13796
|
default:
|
|
13073
13797
|
let u = options.readUnknownField;
|
|
@@ -13081,25 +13805,24 @@ class RevealBotTokenResult$Type extends import_runtime4.MessageType {
|
|
|
13081
13805
|
return message;
|
|
13082
13806
|
}
|
|
13083
13807
|
internalBinaryWrite(message, writer, options) {
|
|
13084
|
-
if (message.
|
|
13085
|
-
writer.tag(1, import_runtime.WireType.LengthDelimited).
|
|
13808
|
+
if (message.bot)
|
|
13809
|
+
User.internalBinaryWrite(message.bot, writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13086
13810
|
let u = options.writeUnknownFields;
|
|
13087
13811
|
if (u !== false)
|
|
13088
13812
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13089
13813
|
return writer;
|
|
13090
13814
|
}
|
|
13091
13815
|
}
|
|
13092
|
-
var
|
|
13816
|
+
var ClearBotAvatarResult = new ClearBotAvatarResult$Type;
|
|
13093
13817
|
|
|
13094
|
-
class
|
|
13818
|
+
class GetBotPresenceInput$Type extends import_runtime4.MessageType {
|
|
13095
13819
|
constructor() {
|
|
13096
|
-
super("
|
|
13097
|
-
{ no: 1, name: "
|
|
13820
|
+
super("GetBotPresenceInput", [
|
|
13821
|
+
{ no: 1, name: "peer_id", kind: "message", T: () => InputPeer }
|
|
13098
13822
|
]);
|
|
13099
13823
|
}
|
|
13100
13824
|
create(value) {
|
|
13101
13825
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
13102
|
-
message.botUserId = 0n;
|
|
13103
13826
|
if (value !== undefined)
|
|
13104
13827
|
import_runtime3.reflectionMergePartial(this, message, value);
|
|
13105
13828
|
return message;
|
|
@@ -13110,7 +13833,7 @@ class RotateBotTokenInput$Type extends import_runtime4.MessageType {
|
|
|
13110
13833
|
let [fieldNo, wireType] = reader.tag();
|
|
13111
13834
|
switch (fieldNo) {
|
|
13112
13835
|
case 1:
|
|
13113
|
-
message.
|
|
13836
|
+
message.peerId = InputPeer.internalBinaryRead(reader, reader.uint32(), options, message.peerId);
|
|
13114
13837
|
break;
|
|
13115
13838
|
default:
|
|
13116
13839
|
let u = options.readUnknownField;
|
|
@@ -13124,25 +13847,27 @@ class RotateBotTokenInput$Type extends import_runtime4.MessageType {
|
|
|
13124
13847
|
return message;
|
|
13125
13848
|
}
|
|
13126
13849
|
internalBinaryWrite(message, writer, options) {
|
|
13127
|
-
if (message.
|
|
13128
|
-
writer.tag(1, import_runtime.WireType.
|
|
13850
|
+
if (message.peerId)
|
|
13851
|
+
InputPeer.internalBinaryWrite(message.peerId, writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13129
13852
|
let u = options.writeUnknownFields;
|
|
13130
13853
|
if (u !== false)
|
|
13131
13854
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13132
13855
|
return writer;
|
|
13133
13856
|
}
|
|
13134
13857
|
}
|
|
13135
|
-
var
|
|
13858
|
+
var GetBotPresenceInput = new GetBotPresenceInput$Type;
|
|
13136
13859
|
|
|
13137
|
-
class
|
|
13860
|
+
class GetBotPresenceResult$Type extends import_runtime4.MessageType {
|
|
13138
13861
|
constructor() {
|
|
13139
|
-
super("
|
|
13140
|
-
{ no: 1, name: "
|
|
13862
|
+
super("GetBotPresenceResult", [
|
|
13863
|
+
{ no: 1, name: "bot_user_id", kind: "scalar", opt: true, T: 3, L: 0 },
|
|
13864
|
+
{ no: 2, name: "avatar", kind: "message", T: () => BotAvatar },
|
|
13865
|
+
{ no: 3, name: "state", kind: "message", T: () => BotPresenceState },
|
|
13866
|
+
{ no: 4, name: "peer_id", kind: "message", T: () => Peer }
|
|
13141
13867
|
]);
|
|
13142
13868
|
}
|
|
13143
13869
|
create(value) {
|
|
13144
13870
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
13145
|
-
message.token = "";
|
|
13146
13871
|
if (value !== undefined)
|
|
13147
13872
|
import_runtime3.reflectionMergePartial(this, message, value);
|
|
13148
13873
|
return message;
|
|
@@ -13153,7 +13878,16 @@ class RotateBotTokenResult$Type extends import_runtime4.MessageType {
|
|
|
13153
13878
|
let [fieldNo, wireType] = reader.tag();
|
|
13154
13879
|
switch (fieldNo) {
|
|
13155
13880
|
case 1:
|
|
13156
|
-
message.
|
|
13881
|
+
message.botUserId = reader.int64().toBigInt();
|
|
13882
|
+
break;
|
|
13883
|
+
case 2:
|
|
13884
|
+
message.avatar = BotAvatar.internalBinaryRead(reader, reader.uint32(), options, message.avatar);
|
|
13885
|
+
break;
|
|
13886
|
+
case 3:
|
|
13887
|
+
message.state = BotPresenceState.internalBinaryRead(reader, reader.uint32(), options, message.state);
|
|
13888
|
+
break;
|
|
13889
|
+
case 4:
|
|
13890
|
+
message.peerId = Peer.internalBinaryRead(reader, reader.uint32(), options, message.peerId);
|
|
13157
13891
|
break;
|
|
13158
13892
|
default:
|
|
13159
13893
|
let u = options.readUnknownField;
|
|
@@ -13167,27 +13901,31 @@ class RotateBotTokenResult$Type extends import_runtime4.MessageType {
|
|
|
13167
13901
|
return message;
|
|
13168
13902
|
}
|
|
13169
13903
|
internalBinaryWrite(message, writer, options) {
|
|
13170
|
-
if (message.
|
|
13171
|
-
writer.tag(1, import_runtime.WireType.
|
|
13904
|
+
if (message.botUserId !== undefined)
|
|
13905
|
+
writer.tag(1, import_runtime.WireType.Varint).int64(message.botUserId);
|
|
13906
|
+
if (message.avatar)
|
|
13907
|
+
BotAvatar.internalBinaryWrite(message.avatar, writer.tag(2, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13908
|
+
if (message.state)
|
|
13909
|
+
BotPresenceState.internalBinaryWrite(message.state, writer.tag(3, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13910
|
+
if (message.peerId)
|
|
13911
|
+
Peer.internalBinaryWrite(message.peerId, writer.tag(4, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13172
13912
|
let u = options.writeUnknownFields;
|
|
13173
13913
|
if (u !== false)
|
|
13174
13914
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13175
13915
|
return writer;
|
|
13176
13916
|
}
|
|
13177
13917
|
}
|
|
13178
|
-
var
|
|
13918
|
+
var GetBotPresenceResult = new GetBotPresenceResult$Type;
|
|
13179
13919
|
|
|
13180
|
-
class
|
|
13920
|
+
class SetBotPresenceStateInput$Type extends import_runtime4.MessageType {
|
|
13181
13921
|
constructor() {
|
|
13182
|
-
super("
|
|
13183
|
-
{ no: 1, name: "
|
|
13184
|
-
{ no: 2, name: "
|
|
13185
|
-
{ no: 3, name: "photo_file_unique_id", kind: "scalar", opt: true, T: 9 }
|
|
13922
|
+
super("SetBotPresenceStateInput", [
|
|
13923
|
+
{ no: 1, name: "peer_id", kind: "message", T: () => InputPeer },
|
|
13924
|
+
{ no: 2, name: "state", kind: "message", T: () => BotPresenceState }
|
|
13186
13925
|
]);
|
|
13187
13926
|
}
|
|
13188
13927
|
create(value) {
|
|
13189
13928
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
13190
|
-
message.botUserId = 0n;
|
|
13191
13929
|
if (value !== undefined)
|
|
13192
13930
|
import_runtime3.reflectionMergePartial(this, message, value);
|
|
13193
13931
|
return message;
|
|
@@ -13198,13 +13936,10 @@ class UpdateBotProfileInput$Type extends import_runtime4.MessageType {
|
|
|
13198
13936
|
let [fieldNo, wireType] = reader.tag();
|
|
13199
13937
|
switch (fieldNo) {
|
|
13200
13938
|
case 1:
|
|
13201
|
-
message.
|
|
13939
|
+
message.peerId = InputPeer.internalBinaryRead(reader, reader.uint32(), options, message.peerId);
|
|
13202
13940
|
break;
|
|
13203
13941
|
case 2:
|
|
13204
|
-
message.
|
|
13205
|
-
break;
|
|
13206
|
-
case 3:
|
|
13207
|
-
message.photoFileUniqueId = reader.string();
|
|
13942
|
+
message.state = BotPresenceState.internalBinaryRead(reader, reader.uint32(), options, message.state);
|
|
13208
13943
|
break;
|
|
13209
13944
|
default:
|
|
13210
13945
|
let u = options.readUnknownField;
|
|
@@ -13218,25 +13953,21 @@ class UpdateBotProfileInput$Type extends import_runtime4.MessageType {
|
|
|
13218
13953
|
return message;
|
|
13219
13954
|
}
|
|
13220
13955
|
internalBinaryWrite(message, writer, options) {
|
|
13221
|
-
if (message.
|
|
13222
|
-
writer.tag(1, import_runtime.WireType.
|
|
13223
|
-
if (message.
|
|
13224
|
-
writer.tag(2, import_runtime.WireType.LengthDelimited).
|
|
13225
|
-
if (message.photoFileUniqueId !== undefined)
|
|
13226
|
-
writer.tag(3, import_runtime.WireType.LengthDelimited).string(message.photoFileUniqueId);
|
|
13956
|
+
if (message.peerId)
|
|
13957
|
+
InputPeer.internalBinaryWrite(message.peerId, writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13958
|
+
if (message.state)
|
|
13959
|
+
BotPresenceState.internalBinaryWrite(message.state, writer.tag(2, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13227
13960
|
let u = options.writeUnknownFields;
|
|
13228
13961
|
if (u !== false)
|
|
13229
13962
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13230
13963
|
return writer;
|
|
13231
13964
|
}
|
|
13232
13965
|
}
|
|
13233
|
-
var
|
|
13966
|
+
var SetBotPresenceStateInput = new SetBotPresenceStateInput$Type;
|
|
13234
13967
|
|
|
13235
|
-
class
|
|
13968
|
+
class SetBotPresenceStateResult$Type extends import_runtime4.MessageType {
|
|
13236
13969
|
constructor() {
|
|
13237
|
-
super("
|
|
13238
|
-
{ no: 1, name: "bot", kind: "message", T: () => User }
|
|
13239
|
-
]);
|
|
13970
|
+
super("SetBotPresenceStateResult", []);
|
|
13240
13971
|
}
|
|
13241
13972
|
create(value) {
|
|
13242
13973
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
@@ -13245,34 +13976,16 @@ class UpdateBotProfileResult$Type extends import_runtime4.MessageType {
|
|
|
13245
13976
|
return message;
|
|
13246
13977
|
}
|
|
13247
13978
|
internalBinaryRead(reader, length, options, target) {
|
|
13248
|
-
|
|
13249
|
-
while (reader.pos < end) {
|
|
13250
|
-
let [fieldNo, wireType] = reader.tag();
|
|
13251
|
-
switch (fieldNo) {
|
|
13252
|
-
case 1:
|
|
13253
|
-
message.bot = User.internalBinaryRead(reader, reader.uint32(), options, message.bot);
|
|
13254
|
-
break;
|
|
13255
|
-
default:
|
|
13256
|
-
let u = options.readUnknownField;
|
|
13257
|
-
if (u === "throw")
|
|
13258
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13259
|
-
let d = reader.skip(wireType);
|
|
13260
|
-
if (u !== false)
|
|
13261
|
-
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13262
|
-
}
|
|
13263
|
-
}
|
|
13264
|
-
return message;
|
|
13979
|
+
return target ?? this.create();
|
|
13265
13980
|
}
|
|
13266
13981
|
internalBinaryWrite(message, writer, options) {
|
|
13267
|
-
if (message.bot)
|
|
13268
|
-
User.internalBinaryWrite(message.bot, writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
13269
13982
|
let u = options.writeUnknownFields;
|
|
13270
13983
|
if (u !== false)
|
|
13271
13984
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13272
13985
|
return writer;
|
|
13273
13986
|
}
|
|
13274
13987
|
}
|
|
13275
|
-
var
|
|
13988
|
+
var SetBotPresenceStateResult = new SetBotPresenceStateResult$Type;
|
|
13276
13989
|
|
|
13277
13990
|
class GetUserSettingsInput$Type extends import_runtime4.MessageType {
|
|
13278
13991
|
constructor() {
|
|
@@ -16412,7 +17125,9 @@ class Update$Type extends import_runtime4.MessageType {
|
|
|
16412
17125
|
{ no: 34, name: "chat_open", kind: "message", oneof: "update", T: () => UpdateChatOpen },
|
|
16413
17126
|
{ no: 35, name: "message_action_invoked", kind: "message", oneof: "update", T: () => UpdateMessageActionInvoked },
|
|
16414
17127
|
{ no: 36, name: "message_action_answered", kind: "message", oneof: "update", T: () => UpdateMessageActionAnswered },
|
|
16415
|
-
{ no: 37, name: "clear_chat_history", kind: "message", oneof: "update", T: () => UpdateClearChatHistory }
|
|
17128
|
+
{ no: 37, name: "clear_chat_history", kind: "message", oneof: "update", T: () => UpdateClearChatHistory },
|
|
17129
|
+
{ no: 38, name: "bot_presence", kind: "message", oneof: "update", T: () => UpdateBotPresence },
|
|
17130
|
+
{ no: 39, name: "dialog_follow_mode", kind: "message", oneof: "update", T: () => UpdateDialogFollowMode }
|
|
16416
17131
|
]);
|
|
16417
17132
|
}
|
|
16418
17133
|
create(value) {
|
|
@@ -16637,6 +17352,18 @@ class Update$Type extends import_runtime4.MessageType {
|
|
|
16637
17352
|
clearChatHistory: UpdateClearChatHistory.internalBinaryRead(reader, reader.uint32(), options, message.update.clearChatHistory)
|
|
16638
17353
|
};
|
|
16639
17354
|
break;
|
|
17355
|
+
case 38:
|
|
17356
|
+
message.update = {
|
|
17357
|
+
oneofKind: "botPresence",
|
|
17358
|
+
botPresence: UpdateBotPresence.internalBinaryRead(reader, reader.uint32(), options, message.update.botPresence)
|
|
17359
|
+
};
|
|
17360
|
+
break;
|
|
17361
|
+
case 39:
|
|
17362
|
+
message.update = {
|
|
17363
|
+
oneofKind: "dialogFollowMode",
|
|
17364
|
+
dialogFollowMode: UpdateDialogFollowMode.internalBinaryRead(reader, reader.uint32(), options, message.update.dialogFollowMode)
|
|
17365
|
+
};
|
|
17366
|
+
break;
|
|
16640
17367
|
default:
|
|
16641
17368
|
let u = options.readUnknownField;
|
|
16642
17369
|
if (u === "throw")
|
|
@@ -16721,6 +17448,10 @@ class Update$Type extends import_runtime4.MessageType {
|
|
|
16721
17448
|
UpdateMessageActionAnswered.internalBinaryWrite(message.update.messageActionAnswered, writer.tag(36, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
16722
17449
|
if (message.update.oneofKind === "clearChatHistory")
|
|
16723
17450
|
UpdateClearChatHistory.internalBinaryWrite(message.update.clearChatHistory, writer.tag(37, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
17451
|
+
if (message.update.oneofKind === "botPresence")
|
|
17452
|
+
UpdateBotPresence.internalBinaryWrite(message.update.botPresence, writer.tag(38, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
17453
|
+
if (message.update.oneofKind === "dialogFollowMode")
|
|
17454
|
+
UpdateDialogFollowMode.internalBinaryWrite(message.update.dialogFollowMode, writer.tag(39, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
16724
17455
|
let u = options.writeUnknownFields;
|
|
16725
17456
|
if (u !== false)
|
|
16726
17457
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -17581,6 +18312,54 @@ class UpdateDialogNotificationSettings$Type extends import_runtime4.MessageType
|
|
|
17581
18312
|
}
|
|
17582
18313
|
var UpdateDialogNotificationSettings = new UpdateDialogNotificationSettings$Type;
|
|
17583
18314
|
|
|
18315
|
+
class UpdateDialogFollowMode$Type extends import_runtime4.MessageType {
|
|
18316
|
+
constructor() {
|
|
18317
|
+
super("UpdateDialogFollowMode", [
|
|
18318
|
+
{ no: 1, name: "peer_id", kind: "message", T: () => Peer },
|
|
18319
|
+
{ no: 2, name: "follow_mode", kind: "enum", opt: true, T: () => ["DialogFollowMode", DialogFollowMode] }
|
|
18320
|
+
]);
|
|
18321
|
+
}
|
|
18322
|
+
create(value) {
|
|
18323
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
18324
|
+
if (value !== undefined)
|
|
18325
|
+
import_runtime3.reflectionMergePartial(this, message, value);
|
|
18326
|
+
return message;
|
|
18327
|
+
}
|
|
18328
|
+
internalBinaryRead(reader, length, options, target) {
|
|
18329
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
18330
|
+
while (reader.pos < end) {
|
|
18331
|
+
let [fieldNo, wireType] = reader.tag();
|
|
18332
|
+
switch (fieldNo) {
|
|
18333
|
+
case 1:
|
|
18334
|
+
message.peerId = Peer.internalBinaryRead(reader, reader.uint32(), options, message.peerId);
|
|
18335
|
+
break;
|
|
18336
|
+
case 2:
|
|
18337
|
+
message.followMode = reader.int32();
|
|
18338
|
+
break;
|
|
18339
|
+
default:
|
|
18340
|
+
let u = options.readUnknownField;
|
|
18341
|
+
if (u === "throw")
|
|
18342
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
18343
|
+
let d = reader.skip(wireType);
|
|
18344
|
+
if (u !== false)
|
|
18345
|
+
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
18346
|
+
}
|
|
18347
|
+
}
|
|
18348
|
+
return message;
|
|
18349
|
+
}
|
|
18350
|
+
internalBinaryWrite(message, writer, options) {
|
|
18351
|
+
if (message.peerId)
|
|
18352
|
+
Peer.internalBinaryWrite(message.peerId, writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
18353
|
+
if (message.followMode !== undefined)
|
|
18354
|
+
writer.tag(2, import_runtime.WireType.Varint).int32(message.followMode);
|
|
18355
|
+
let u = options.writeUnknownFields;
|
|
18356
|
+
if (u !== false)
|
|
18357
|
+
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
18358
|
+
return writer;
|
|
18359
|
+
}
|
|
18360
|
+
}
|
|
18361
|
+
var UpdateDialogFollowMode = new UpdateDialogFollowMode$Type;
|
|
18362
|
+
|
|
17584
18363
|
class UpdateNewChat$Type extends import_runtime4.MessageType {
|
|
17585
18364
|
constructor() {
|
|
17586
18365
|
super("UpdateNewChat", [
|
|
@@ -18106,6 +18885,74 @@ class UpdateClearChatHistory$Type extends import_runtime4.MessageType {
|
|
|
18106
18885
|
}
|
|
18107
18886
|
var UpdateClearChatHistory = new UpdateClearChatHistory$Type;
|
|
18108
18887
|
|
|
18888
|
+
class UpdateBotPresence$Type extends import_runtime4.MessageType {
|
|
18889
|
+
constructor() {
|
|
18890
|
+
super("UpdateBotPresence", [
|
|
18891
|
+
{ no: 1, name: "bot_user_id", kind: "scalar", T: 3, L: 0 },
|
|
18892
|
+
{ no: 2, name: "peer_id", kind: "message", T: () => Peer },
|
|
18893
|
+
{ no: 3, name: "state", kind: "message", T: () => BotPresenceState },
|
|
18894
|
+
{ no: 4, name: "avatar", kind: "message", T: () => BotAvatar },
|
|
18895
|
+
{ no: 5, name: "avatar_changed", kind: "scalar", T: 8 }
|
|
18896
|
+
]);
|
|
18897
|
+
}
|
|
18898
|
+
create(value) {
|
|
18899
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
18900
|
+
message.botUserId = 0n;
|
|
18901
|
+
message.avatarChanged = false;
|
|
18902
|
+
if (value !== undefined)
|
|
18903
|
+
import_runtime3.reflectionMergePartial(this, message, value);
|
|
18904
|
+
return message;
|
|
18905
|
+
}
|
|
18906
|
+
internalBinaryRead(reader, length, options, target) {
|
|
18907
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
18908
|
+
while (reader.pos < end) {
|
|
18909
|
+
let [fieldNo, wireType] = reader.tag();
|
|
18910
|
+
switch (fieldNo) {
|
|
18911
|
+
case 1:
|
|
18912
|
+
message.botUserId = reader.int64().toBigInt();
|
|
18913
|
+
break;
|
|
18914
|
+
case 2:
|
|
18915
|
+
message.peerId = Peer.internalBinaryRead(reader, reader.uint32(), options, message.peerId);
|
|
18916
|
+
break;
|
|
18917
|
+
case 3:
|
|
18918
|
+
message.state = BotPresenceState.internalBinaryRead(reader, reader.uint32(), options, message.state);
|
|
18919
|
+
break;
|
|
18920
|
+
case 4:
|
|
18921
|
+
message.avatar = BotAvatar.internalBinaryRead(reader, reader.uint32(), options, message.avatar);
|
|
18922
|
+
break;
|
|
18923
|
+
case 5:
|
|
18924
|
+
message.avatarChanged = reader.bool();
|
|
18925
|
+
break;
|
|
18926
|
+
default:
|
|
18927
|
+
let u = options.readUnknownField;
|
|
18928
|
+
if (u === "throw")
|
|
18929
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
18930
|
+
let d = reader.skip(wireType);
|
|
18931
|
+
if (u !== false)
|
|
18932
|
+
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
18933
|
+
}
|
|
18934
|
+
}
|
|
18935
|
+
return message;
|
|
18936
|
+
}
|
|
18937
|
+
internalBinaryWrite(message, writer, options) {
|
|
18938
|
+
if (message.botUserId !== 0n)
|
|
18939
|
+
writer.tag(1, import_runtime.WireType.Varint).int64(message.botUserId);
|
|
18940
|
+
if (message.peerId)
|
|
18941
|
+
Peer.internalBinaryWrite(message.peerId, writer.tag(2, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
18942
|
+
if (message.state)
|
|
18943
|
+
BotPresenceState.internalBinaryWrite(message.state, writer.tag(3, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
18944
|
+
if (message.avatar)
|
|
18945
|
+
BotAvatar.internalBinaryWrite(message.avatar, writer.tag(4, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
18946
|
+
if (message.avatarChanged !== false)
|
|
18947
|
+
writer.tag(5, import_runtime.WireType.Varint).bool(message.avatarChanged);
|
|
18948
|
+
let u = options.writeUnknownFields;
|
|
18949
|
+
if (u !== false)
|
|
18950
|
+
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
18951
|
+
return writer;
|
|
18952
|
+
}
|
|
18953
|
+
}
|
|
18954
|
+
var UpdateBotPresence = new UpdateBotPresence$Type;
|
|
18955
|
+
|
|
18109
18956
|
class UpdateMessageId$Type extends import_runtime4.MessageType {
|
|
18110
18957
|
constructor() {
|
|
18111
18958
|
super("UpdateMessageId", [
|
|
@@ -37303,6 +38150,80 @@ async function uploadInlineMediaFromUrl(params) {
|
|
|
37303
38150
|
}
|
|
37304
38151
|
}
|
|
37305
38152
|
|
|
38153
|
+
// src/inline/message-formatting.ts
|
|
38154
|
+
var INLINE_FORMATTING_RULES = [
|
|
38155
|
+
"Use Inline markdown.",
|
|
38156
|
+
"Prefer bullet lists over markdown tables.",
|
|
38157
|
+
"If a table is necessary, render it inside a fenced code block.",
|
|
38158
|
+
"Use plain URLs or markdown links; do not wrap bare URLs in inline code or backticks.",
|
|
38159
|
+
"Mention Inline users with markdown links like [@FirstName](inline://user?id=123); use inline://user?username=username only when the user id is unavailable.",
|
|
38160
|
+
"Link Inline chats/threads with markdown links like [Planning](inline://chat?id=123) or [Planning](inline://thread?id=123); use inline://thread?space_id=7 when only the title and space are known.",
|
|
38161
|
+
"Use inline code only for actual code, commands, file paths, env vars, or identifiers."
|
|
38162
|
+
];
|
|
38163
|
+
var INLINE_COPY_REPLACEMENTS = [
|
|
38164
|
+
[
|
|
38165
|
+
/Bind this (?:thread \(Discord\) or topic\/conversation \(Telegram\)|thread or topic\/conversation) to a session target\.?/gi,
|
|
38166
|
+
"Bind this Inline conversation to a session target."
|
|
38167
|
+
],
|
|
38168
|
+
[
|
|
38169
|
+
/Remove the current (?:thread \(Discord\) or topic\/conversation \(Telegram\)|thread or topic\/conversation) binding\.?/gi,
|
|
38170
|
+
"Remove the current Inline conversation binding."
|
|
38171
|
+
]
|
|
38172
|
+
];
|
|
38173
|
+
function normalizeInlineMarkdownLabel(raw, fallback) {
|
|
38174
|
+
return (raw ?? "").replace(/\s+/g, " ").trim() || fallback;
|
|
38175
|
+
}
|
|
38176
|
+
function escapeInlineMarkdownLabel(raw) {
|
|
38177
|
+
return raw.replace(/\\/g, "\\\\").replace(/\[/g, "\\[").replace(/\]/g, "\\]");
|
|
38178
|
+
}
|
|
38179
|
+
function encodeInlineMarkdownValue(raw) {
|
|
38180
|
+
return encodeURIComponent(String(raw).trim());
|
|
38181
|
+
}
|
|
38182
|
+
function isBareHttpUrl(text) {
|
|
38183
|
+
if (!/^https?:\/\/\S+$/i.test(text))
|
|
38184
|
+
return false;
|
|
38185
|
+
try {
|
|
38186
|
+
const url2 = new URL(text);
|
|
38187
|
+
return url2.protocol === "http:" || url2.protocol === "https:";
|
|
38188
|
+
} catch {
|
|
38189
|
+
return false;
|
|
38190
|
+
}
|
|
38191
|
+
}
|
|
38192
|
+
function adaptInlineVisibleCopy(text) {
|
|
38193
|
+
let result = text;
|
|
38194
|
+
for (const [from, to] of INLINE_COPY_REPLACEMENTS) {
|
|
38195
|
+
result = result.replace(from, to);
|
|
38196
|
+
}
|
|
38197
|
+
return result;
|
|
38198
|
+
}
|
|
38199
|
+
function buildInlineSystemPrompt(extraPrompt) {
|
|
38200
|
+
return extraPrompt?.trim() || "";
|
|
38201
|
+
}
|
|
38202
|
+
function buildInlineInboundFormattingHints() {
|
|
38203
|
+
return {
|
|
38204
|
+
text_markup: "inline_markdown",
|
|
38205
|
+
rules: [...INLINE_FORMATTING_RULES]
|
|
38206
|
+
};
|
|
38207
|
+
}
|
|
38208
|
+
function buildInlineThreadMarkdownLink(params) {
|
|
38209
|
+
const title = normalizeInlineMarkdownLabel(params.title, `thread:${String(params.threadId)}`);
|
|
38210
|
+
return `[${escapeInlineMarkdownLabel(title)}](inline://thread?id=${encodeInlineMarkdownValue(params.threadId)})`;
|
|
38211
|
+
}
|
|
38212
|
+
function buildInlineThreadTitleMarkdownLink(params) {
|
|
38213
|
+
const title = normalizeInlineMarkdownLabel(params.title, `space:${String(params.spaceId)}`);
|
|
38214
|
+
const label = normalizeInlineMarkdownLabel(params.label, title);
|
|
38215
|
+
const query = [`space_id=${encodeInlineMarkdownValue(params.spaceId)}`];
|
|
38216
|
+
if (label !== title) {
|
|
38217
|
+
query.push(`title=${encodeInlineMarkdownValue(title)}`);
|
|
38218
|
+
}
|
|
38219
|
+
return `[${escapeInlineMarkdownLabel(label)}](inline://thread?${query.join("&")})`;
|
|
38220
|
+
}
|
|
38221
|
+
function sanitizeInlineOutgoingText(text) {
|
|
38222
|
+
return adaptInlineVisibleCopy(text).replace(/`([^`\n]+)`/g, (full, content) => {
|
|
38223
|
+
return isBareHttpUrl(content) ? content : full;
|
|
38224
|
+
});
|
|
38225
|
+
}
|
|
38226
|
+
|
|
37306
38227
|
// src/inline/message-content.ts
|
|
37307
38228
|
var INLINE_MESSAGE_ENTITY_TYPE = {
|
|
37308
38229
|
MENTION: 1,
|
|
@@ -37314,7 +38235,9 @@ var INLINE_MESSAGE_ENTITY_TYPE = {
|
|
|
37314
38235
|
USERNAME_MENTION: 7,
|
|
37315
38236
|
CODE: 8,
|
|
37316
38237
|
PRE: 9,
|
|
37317
|
-
PHONE_NUMBER: 10
|
|
38238
|
+
PHONE_NUMBER: 10,
|
|
38239
|
+
THREAD: 11,
|
|
38240
|
+
THREAD_TITLE: 12
|
|
37318
38241
|
};
|
|
37319
38242
|
function compactWhitespace(raw) {
|
|
37320
38243
|
return (raw ?? "").replace(/\s+/g, " ").trim();
|
|
@@ -37482,6 +38405,10 @@ function mapEntityType(type) {
|
|
|
37482
38405
|
return "pre";
|
|
37483
38406
|
case INLINE_MESSAGE_ENTITY_TYPE.PHONE_NUMBER:
|
|
37484
38407
|
return "phone_number";
|
|
38408
|
+
case INLINE_MESSAGE_ENTITY_TYPE.THREAD:
|
|
38409
|
+
return "thread";
|
|
38410
|
+
case INLINE_MESSAGE_ENTITY_TYPE.THREAD_TITLE:
|
|
38411
|
+
return "thread_title";
|
|
37485
38412
|
default:
|
|
37486
38413
|
return "unknown";
|
|
37487
38414
|
}
|
|
@@ -37523,6 +38450,26 @@ function messageEntitySummaries(message) {
|
|
|
37523
38450
|
const language = compactWhitespace(entity.entity.pre.language);
|
|
37524
38451
|
if (language)
|
|
37525
38452
|
summary.language = language;
|
|
38453
|
+
} else if (entity.entity.oneofKind === "thread") {
|
|
38454
|
+
const chatId = entity.entity.thread.chatId.toString();
|
|
38455
|
+
summary.chatId = chatId;
|
|
38456
|
+
summary.markdownLink = buildInlineThreadMarkdownLink({
|
|
38457
|
+
threadId: chatId,
|
|
38458
|
+
...summary.text ? { title: summary.text } : {}
|
|
38459
|
+
});
|
|
38460
|
+
} else if (entity.entity.oneofKind === "threadTitle") {
|
|
38461
|
+
const spaceId = entity.entity.threadTitle.spaceId.toString();
|
|
38462
|
+
const title = compactWhitespace(entity.entity.threadTitle.title);
|
|
38463
|
+
summary.spaceId = spaceId;
|
|
38464
|
+
if (title)
|
|
38465
|
+
summary.title = title;
|
|
38466
|
+
if (title || summary.text) {
|
|
38467
|
+
summary.markdownLink = buildInlineThreadTitleMarkdownLink({
|
|
38468
|
+
spaceId,
|
|
38469
|
+
title: title || summary.text || `space:${spaceId}`,
|
|
38470
|
+
label: summary.text || title
|
|
38471
|
+
});
|
|
38472
|
+
}
|
|
37526
38473
|
}
|
|
37527
38474
|
entities.push(summary);
|
|
37528
38475
|
}
|
|
@@ -37575,6 +38522,13 @@ function formatEntitySummary(entity) {
|
|
|
37575
38522
|
return entity.userId ? `mention${quotedText} -> user:${entity.userId}` : `mention${quotedText}`;
|
|
37576
38523
|
case "text_link":
|
|
37577
38524
|
return entity.url ? `text link${quotedText} -> ${entity.url}` : `text link${quotedText}`;
|
|
38525
|
+
case "thread":
|
|
38526
|
+
return entity.chatId ? `thread link${quotedText} -> thread:${entity.chatId}` : `thread link${quotedText}`;
|
|
38527
|
+
case "thread_title":
|
|
38528
|
+
if (entity.spaceId && entity.title) {
|
|
38529
|
+
return `thread title link${quotedText} -> space:${entity.spaceId} title:"${entity.title}"`;
|
|
38530
|
+
}
|
|
38531
|
+
return entity.spaceId ? `thread title link${quotedText} -> space:${entity.spaceId}` : `thread title link${quotedText}`;
|
|
37578
38532
|
case "pre":
|
|
37579
38533
|
return entity.language ? `preformatted block${quotedText} (language: ${entity.language})` : `preformatted block${quotedText}`;
|
|
37580
38534
|
case "username_mention":
|
|
@@ -37619,57 +38573,6 @@ function summarizeInlineMessageContent(message) {
|
|
|
37619
38573
|
};
|
|
37620
38574
|
}
|
|
37621
38575
|
|
|
37622
|
-
// src/inline/message-formatting.ts
|
|
37623
|
-
var INLINE_FORMATTING_RULES = [
|
|
37624
|
-
"Use Inline markdown.",
|
|
37625
|
-
"Prefer bullet lists over markdown tables.",
|
|
37626
|
-
"If a table is necessary, render it inside a fenced code block.",
|
|
37627
|
-
"Use plain URLs or markdown links; do not wrap bare URLs in inline code or backticks.",
|
|
37628
|
-
"Mention Inline users with markdown links like [@FirstName](inline://user?id=123); use inline://user?username=username only when the user id is unavailable.",
|
|
37629
|
-
"Use inline code only for actual code, commands, file paths, env vars, or identifiers."
|
|
37630
|
-
];
|
|
37631
|
-
var INLINE_COPY_REPLACEMENTS = [
|
|
37632
|
-
[
|
|
37633
|
-
/Bind this (?:thread \(Discord\) or topic\/conversation \(Telegram\)|thread or topic\/conversation) to a session target\.?/gi,
|
|
37634
|
-
"Bind this Inline conversation to a session target."
|
|
37635
|
-
],
|
|
37636
|
-
[
|
|
37637
|
-
/Remove the current (?:thread \(Discord\) or topic\/conversation \(Telegram\)|thread or topic\/conversation) binding\.?/gi,
|
|
37638
|
-
"Remove the current Inline conversation binding."
|
|
37639
|
-
]
|
|
37640
|
-
];
|
|
37641
|
-
function isBareHttpUrl(text) {
|
|
37642
|
-
if (!/^https?:\/\/\S+$/i.test(text))
|
|
37643
|
-
return false;
|
|
37644
|
-
try {
|
|
37645
|
-
const url2 = new URL(text);
|
|
37646
|
-
return url2.protocol === "http:" || url2.protocol === "https:";
|
|
37647
|
-
} catch {
|
|
37648
|
-
return false;
|
|
37649
|
-
}
|
|
37650
|
-
}
|
|
37651
|
-
function adaptInlineVisibleCopy(text) {
|
|
37652
|
-
let result = text;
|
|
37653
|
-
for (const [from, to] of INLINE_COPY_REPLACEMENTS) {
|
|
37654
|
-
result = result.replace(from, to);
|
|
37655
|
-
}
|
|
37656
|
-
return result;
|
|
37657
|
-
}
|
|
37658
|
-
function buildInlineSystemPrompt(extraPrompt) {
|
|
37659
|
-
return extraPrompt?.trim() || "";
|
|
37660
|
-
}
|
|
37661
|
-
function buildInlineInboundFormattingHints() {
|
|
37662
|
-
return {
|
|
37663
|
-
text_markup: "inline_markdown",
|
|
37664
|
-
rules: [...INLINE_FORMATTING_RULES]
|
|
37665
|
-
};
|
|
37666
|
-
}
|
|
37667
|
-
function sanitizeInlineOutgoingText(text) {
|
|
37668
|
-
return adaptInlineVisibleCopy(text).replace(/`([^`\n]+)`/g, (full, content) => {
|
|
37669
|
-
return isBareHttpUrl(content) ? content : full;
|
|
37670
|
-
});
|
|
37671
|
-
}
|
|
37672
|
-
|
|
37673
38576
|
// src/inline/normalize.ts
|
|
37674
38577
|
function normalizeInlineTarget(raw) {
|
|
37675
38578
|
let normalized = raw.trim();
|
|
@@ -38381,6 +39284,46 @@ var GET_MESSAGES_METHOD = typeof Method.GET_MESSAGES === "number" && Number.isIn
|
|
|
38381
39284
|
var CREATE_SUBTHREAD_METHOD = typeof Method.CREATE_SUBTHREAD === "number" && Number.isInteger(Method.CREATE_SUBTHREAD) && Method.CREATE_SUBTHREAD > 0 ? Method.CREATE_SUBTHREAD : 42;
|
|
38382
39285
|
var INLINE_ACTION_MAX_ROWS = 8;
|
|
38383
39286
|
var INLINE_ACTION_MAX_PER_ROW = 8;
|
|
39287
|
+
var INLINE_BOT_PRESENCE_KINDS = [
|
|
39288
|
+
"idle",
|
|
39289
|
+
"happy",
|
|
39290
|
+
"waving",
|
|
39291
|
+
"jumping",
|
|
39292
|
+
"failed",
|
|
39293
|
+
"waiting",
|
|
39294
|
+
"running",
|
|
39295
|
+
"review"
|
|
39296
|
+
];
|
|
39297
|
+
var inlineBotPresenceChannelDataSchema = {
|
|
39298
|
+
type: "object",
|
|
39299
|
+
description: "Inline-specific metadata for a send. Use inline.botPresence for the bot's on-screen body.",
|
|
39300
|
+
additionalProperties: true,
|
|
39301
|
+
properties: {
|
|
39302
|
+
inline: {
|
|
39303
|
+
type: "object",
|
|
39304
|
+
additionalProperties: true,
|
|
39305
|
+
properties: {
|
|
39306
|
+
botPresence: {
|
|
39307
|
+
type: "object",
|
|
39308
|
+
description: "Optional Inline bot presence state generated from your current mood or process.",
|
|
39309
|
+
additionalProperties: true,
|
|
39310
|
+
properties: {
|
|
39311
|
+
kind: {
|
|
39312
|
+
type: "string",
|
|
39313
|
+
enum: INLINE_BOT_PRESENCE_KINDS,
|
|
39314
|
+
description: "Emotion/state for the on-screen bot presence."
|
|
39315
|
+
},
|
|
39316
|
+
comment: {
|
|
39317
|
+
type: "string",
|
|
39318
|
+
maxLength: 30,
|
|
39319
|
+
description: "Optional short expression from your actual current thought, status, mood, request, or aside. Text or one/two emoji."
|
|
39320
|
+
}
|
|
39321
|
+
}
|
|
39322
|
+
}
|
|
39323
|
+
}
|
|
39324
|
+
}
|
|
39325
|
+
}
|
|
39326
|
+
};
|
|
38384
39327
|
function suppressedInternalTextResult() {
|
|
38385
39328
|
return jsonResult({
|
|
38386
39329
|
ok: false,
|
|
@@ -39137,14 +40080,24 @@ function describeInlineMessageTool({
|
|
|
39137
40080
|
};
|
|
39138
40081
|
}
|
|
39139
40082
|
const buttonsEnabled = supportsInlineMessageButtons(actions);
|
|
40083
|
+
const sendEnabled = actions.includes("send");
|
|
39140
40084
|
const capabilities = buttonsEnabled ? ["presentation"] : [];
|
|
39141
|
-
const schema =
|
|
39142
|
-
|
|
40085
|
+
const schema = [];
|
|
40086
|
+
if (buttonsEnabled) {
|
|
40087
|
+
schema.push({
|
|
39143
40088
|
properties: {
|
|
39144
40089
|
buttons: createMessageToolButtonsSchema()
|
|
39145
40090
|
}
|
|
39146
|
-
}
|
|
39147
|
-
|
|
40091
|
+
});
|
|
40092
|
+
}
|
|
40093
|
+
if (sendEnabled) {
|
|
40094
|
+
schema.push({
|
|
40095
|
+
actions: ["send"],
|
|
40096
|
+
properties: {
|
|
40097
|
+
channelData: inlineBotPresenceChannelDataSchema
|
|
40098
|
+
}
|
|
40099
|
+
});
|
|
40100
|
+
}
|
|
39148
40101
|
return {
|
|
39149
40102
|
actions,
|
|
39150
40103
|
capabilities,
|
|
@@ -40397,6 +41350,23 @@ function buildUserPeer(userId) {
|
|
|
40397
41350
|
}
|
|
40398
41351
|
};
|
|
40399
41352
|
}
|
|
41353
|
+
async function sendInlineBotPresenceState(client, chatId, kind) {
|
|
41354
|
+
const invokeRaw = client.invokeRaw;
|
|
41355
|
+
if (typeof invokeRaw !== "function")
|
|
41356
|
+
return;
|
|
41357
|
+
await invokeRaw.call(client, Method.SET_BOT_PRESENCE_STATE, {
|
|
41358
|
+
oneofKind: "setBotPresenceState",
|
|
41359
|
+
setBotPresenceState: {
|
|
41360
|
+
peerId: {
|
|
41361
|
+
type: {
|
|
41362
|
+
oneofKind: "chat",
|
|
41363
|
+
chat: { chatId }
|
|
41364
|
+
}
|
|
41365
|
+
},
|
|
41366
|
+
state: { kind }
|
|
41367
|
+
}
|
|
41368
|
+
}).catch(() => {});
|
|
41369
|
+
}
|
|
40400
41370
|
function buildInlineApprovalActions(view) {
|
|
40401
41371
|
const buttons = [
|
|
40402
41372
|
view.actions.map((action) => ({
|
|
@@ -40500,8 +41470,12 @@ var inlineApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapter({
|
|
|
40500
41470
|
if (!resolved) {
|
|
40501
41471
|
return null;
|
|
40502
41472
|
}
|
|
41473
|
+
let delivered = false;
|
|
40503
41474
|
if (preparedTarget.typingChatId != null) {
|
|
40504
|
-
await
|
|
41475
|
+
await Promise.all([
|
|
41476
|
+
resolved.context.client.sendTyping({ chatId: preparedTarget.typingChatId, typing: true }).catch(() => {}),
|
|
41477
|
+
sendInlineBotPresenceState(resolved.context.client, preparedTarget.typingChatId, BotPresenceState_Kind.WAITING)
|
|
41478
|
+
]);
|
|
40505
41479
|
}
|
|
40506
41480
|
try {
|
|
40507
41481
|
const result = await resolved.context.client.sendMessage({
|
|
@@ -40513,15 +41487,20 @@ var inlineApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapter({
|
|
|
40513
41487
|
if (result.messageId == null) {
|
|
40514
41488
|
return null;
|
|
40515
41489
|
}
|
|
41490
|
+
delivered = true;
|
|
40516
41491
|
return {
|
|
40517
41492
|
messageId: result.messageId,
|
|
40518
41493
|
peerId: preparedTarget.peerId,
|
|
40519
41494
|
text: pendingPayload.text,
|
|
40520
|
-
parseMarkdown: resolved.context.parseMarkdown ?? true
|
|
41495
|
+
parseMarkdown: resolved.context.parseMarkdown ?? true,
|
|
41496
|
+
...preparedTarget.typingChatId != null ? { typingChatId: preparedTarget.typingChatId } : {}
|
|
40521
41497
|
};
|
|
40522
41498
|
} finally {
|
|
40523
41499
|
if (preparedTarget.typingChatId != null) {
|
|
40524
41500
|
await resolved.context.client.sendTyping({ chatId: preparedTarget.typingChatId, typing: false }).catch(() => {});
|
|
41501
|
+
if (!delivered) {
|
|
41502
|
+
await sendInlineBotPresenceState(resolved.context.client, preparedTarget.typingChatId, BotPresenceState_Kind.IDLE);
|
|
41503
|
+
}
|
|
40525
41504
|
}
|
|
40526
41505
|
}
|
|
40527
41506
|
}
|
|
@@ -40542,6 +41521,9 @@ var inlineApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapter({
|
|
|
40542
41521
|
parseMarkdown: entry.parseMarkdown
|
|
40543
41522
|
}
|
|
40544
41523
|
});
|
|
41524
|
+
if (entry.typingChatId != null) {
|
|
41525
|
+
await sendInlineBotPresenceState(resolved.context.client, entry.typingChatId, BotPresenceState_Kind.IDLE);
|
|
41526
|
+
}
|
|
40545
41527
|
}
|
|
40546
41528
|
},
|
|
40547
41529
|
observe: {
|
|
@@ -40554,5 +41536,5 @@ export {
|
|
|
40554
41536
|
inlineApprovalNativeRuntime
|
|
40555
41537
|
};
|
|
40556
41538
|
|
|
40557
|
-
//# debugId=
|
|
41539
|
+
//# debugId=E7DCFACBDA8D313664756E2164756E21
|
|
40558
41540
|
//# sourceMappingURL=approval-handler.runtime.js.map
|