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

Function deserializeChannel

tmp_admin/tmp_admin.ts:258–267  ·  view source on GitHub ↗
(stored: StoredChannel)

Source from the content-addressed store, hash-verified

256 if (stored.className === "InputChannel") {
257 return new Api.InputChannel(args);
258 }
259 return new Api.InputPeerChannel(args);
260}
261
262function deserializeUser(stored: StoredUser): any {
263 const args = {
264 userId: bigInt(stored.userId),
265 accessHash: bigInt(stored.accessHash),
266 };
267 if (stored.className === "InputUser") {
268 return new Api.InputUser(args);
269 }
270 return new Api.InputPeerUser(args);

Callers 1

restoreJobsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected