import { Api } from 'telegram' ; export class BannedRights { viewMessages ? : boolean ; sendMessages ? : boolean ; sendMedia ? : boolean ; sendStickers ? : boolean ; sendGifs ? : boolean ; sendGames ? : boolean ; sendInline ? : boolean ; embedLinks ? : boolean ; sendPolls ? : boolean ; changeInfo ? : boolean ; inviteUsers ? : boolean ; pinMessages ? : boolean ; untilDate : number ; constructor ( bannedRights ) { this . viewMessages = bannedRights . viewMessages ; this . sendMessages = bannedRights . sendMessages ; this . sendMedia = bannedRights . sendMedia ; this . sendStickers = bannedRights . sendStickers ; this . sendGifs = bannedRights . sendGifs ; this . sendGames = bannedRights . sendGames ; this . sendInline = bannedRights . sendInline ; this . embedLinks = bannedRights . embedLinks ; this . sendPolls = bannedRights . sendPolls ; this . changeInfo = bannedRights . changeInfo ; this . inviteUsers = bannedRights . inviteUsers ; this . pinMessages = bannedRights . pinMessages ; this . untilDate = bannedRights . untilDate ; } }