tgsnake
Version:
Telegram MTProto framework for nodejs.
24 lines (23 loc) • 635 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Restriction = void 0;
const TL_js_1 = require("../TL.js");
class Restriction extends TL_js_1.TLObject {
platform;
reason;
text;
constructor({ platform, reason, text, }, client) {
super(client);
this.platform = platform;
this.reason = reason;
this.text = text;
}
static parse(client, reason) {
return new Restriction({
platform: reason.platform,
reason: reason.reason,
text: reason.text,
}, client);
}
}
exports.Restriction = Restriction;