MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / deserializeUser

Function deserializeUser

tmp_admin/tmp_admin.ts:269–278  ·  view source on GitHub ↗
(stored: StoredUser)

Source from the content-addressed store, hash-verified

267 if (stored.className === "InputUser") {
268 return new Api.InputUser(args);
269 }
270 return new Api.InputPeerUser(args);
271}
272
273function toSendPeer(channel: any): any {
274 if (channel?.className === "InputPeerChannel") return channel;
275 if (channel?.className === "InputChannel") {
276 return new Api.InputPeerChannel({
277 channelId: channel.channelId,
278 accessHash: channel.accessHash,
279 });
280 }
281 return channel;

Callers 1

restoreJobsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected