@@ -221,7 +221,7 @@ export class TelegramClient extends TelegramBaseClient {
}
isUserAuthorized() {
- return userMethods.isBot(this);
+ return userMethods.isUserAuthorized(this);
getEntity(entity: any) {
@@ -1,12 +1,12 @@
{
"name": "telegram",
- "version": "1.4.3",
+ "version": "1.4.8",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"license": "MIT",
"dependencies": {
"@cryptography/aes": "^0.1.1",
@@ -1,6 +1,6 @@
- "version": "1.4.7",
"description": "NodeJS MTProto API Telegram client library,",
"main": "index.js",
"types": "index.d.ts",
@@ -28,7 +28,7 @@ tsc.on('close', (code) => {
console.log('FINISHED UPLOADING')
console.log('=====================================')
}else{
- throw new ERro
+ throw new Error("something went wrong")
})
} else {