@mtkruto/node 0.3.0 → 0.3.1
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.
|
@@ -162,7 +162,7 @@ export function isCdnFunction(value) {
|
|
|
162
162
|
return isOneOf(CDN_FUNCTIONS, value);
|
|
163
163
|
}
|
|
164
164
|
export function canBeInputUser(inputPeer) {
|
|
165
|
-
return isOneOf(["
|
|
165
|
+
return isOneOf(["inputPeerUser", "inputPeerUserFromMessage"], inputPeer);
|
|
166
166
|
}
|
|
167
167
|
export function toInputUser(inputPeer) {
|
|
168
168
|
let id;
|
|
@@ -178,7 +178,7 @@ export function toInputUser(inputPeer) {
|
|
|
178
178
|
return id;
|
|
179
179
|
}
|
|
180
180
|
export function canBeInputChannel(inputPeer) {
|
|
181
|
-
return isOneOf(["
|
|
181
|
+
return isOneOf(["inputPeerChannel", "inputPeerChannelFromMessage"], inputPeer);
|
|
182
182
|
}
|
|
183
183
|
export function toInputChannel(inputPeer) {
|
|
184
184
|
let id;
|
package/package.json
CHANGED
|
@@ -177,7 +177,7 @@ function isCdnFunction(value) {
|
|
|
177
177
|
}
|
|
178
178
|
exports.isCdnFunction = isCdnFunction;
|
|
179
179
|
function canBeInputUser(inputPeer) {
|
|
180
|
-
return (0, _2_tl_js_1.isOneOf)(["
|
|
180
|
+
return (0, _2_tl_js_1.isOneOf)(["inputPeerUser", "inputPeerUserFromMessage"], inputPeer);
|
|
181
181
|
}
|
|
182
182
|
exports.canBeInputUser = canBeInputUser;
|
|
183
183
|
function toInputUser(inputPeer) {
|
|
@@ -195,7 +195,7 @@ function toInputUser(inputPeer) {
|
|
|
195
195
|
}
|
|
196
196
|
exports.toInputUser = toInputUser;
|
|
197
197
|
function canBeInputChannel(inputPeer) {
|
|
198
|
-
return (0, _2_tl_js_1.isOneOf)(["
|
|
198
|
+
return (0, _2_tl_js_1.isOneOf)(["inputPeerChannel", "inputPeerChannelFromMessage"], inputPeer);
|
|
199
199
|
}
|
|
200
200
|
exports.canBeInputChannel = canBeInputChannel;
|
|
201
201
|
function toInputChannel(inputPeer) {
|