Sfoglia il codice sorgente

Merge pull request #46 from bryancresswell/iss45

Updated the typo in the example code to correctly call the gramjs.sessions object
Andrew Lane 4 anni fa
parent
commit
26648d04d3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/simpleLogin.js

+ 1 - 1
examples/simpleLogin.js

@@ -55,7 +55,7 @@ function codeCallback() {
 
 
 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 apiHash = process.env.APP_HASH // put your api hash here [for example '123456abcfghe']