Преглед на файлове

updated typo in example code

Bryan Cresswell преди 4 години
родител
ревизия
c7ada82a81
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      examples/simpleLogin.js

+ 1 - 1
examples/simpleLogin.js

@@ -55,7 +55,7 @@ function codeCallback() {
 
 
 
 
 const { TelegramClient } = gramjs
 const { TelegramClient } = gramjs
-const { StringSession } = gramjs.session
+const { StringSession } = gramjs.sessions
 const apiId = process.env.APP_ID // put your api id here [for example 123456789]
 const apiId = process.env.APP_ID // put your api id here [for example 123456789]
 const apiHash = process.env.APP_HASH // put your api hash here [for example '123456abcfghe']
 const apiHash = process.env.APP_HASH // put your api hash here [for example '123456abcfghe']