question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npx tgsession unable to generate session string

See original GitHub issue
RPCError: 406: UPDATE_APP_TO_LOGIN (caused by auth.SendCode)
    at Object.RPCMessageToError (/home/abkader/.npm/_npx/81089/lib/node_modules/tgsession/node_modules/telegram/errors/index.js:24:12)
    at MTProtoSender._handleRPCResult (/home/abkader/.npm/_npx/81089/lib/node_modules/tgsession/node_modules/telegram/network/MTProtoSender.js:481:36)
    at MTProtoSender._processMessage (/home/abkader/.npm/_npx/81089/lib/node_modules/tgsession/node_modules/telegram/network/MTProtoSender.js:406:15)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async MTProtoSender._recvLoop (/home/abkader/.npm/_npx/81089/lib/node_modules/tgsession/node_modules/telegram/network/MTProtoSender.js:382:17) {
  code: 406,
  errorMessage: 'UPDATE_APP_TO_LOGIN'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
Gowtham2003commented, Dec 13, 2021

I have update the packages and published the changes ,now it should work

You may close the issue

1reaction
Gowtham2003commented, Dec 12, 2021

I’ll update and publish soon

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gowtham2003/tgsession: Simple Telethon and GramJS string ...
Simple Telethon and GramJS string session generator written in GramJS - GitHub - Gowtham2003/tgsession: Simple Telethon and GramJS string session generator ...
Read more >
tgsession - npm
Install · Repository · Homepage · Weekly Downloads · Version · License · Unpacked Size · Total Files.
Read more >
Generate Telegram String Session - Replit
Any Repl for making New TG Session? I guess this is the old one.
Read more >
How to find out session name of telegram app? - Stack Overflow
session file will be created in the working directory. The file name of the session file to be used if a string is...
Read more >
Telegram Session String Genera - Apps on Google Play
If you are using Pyrogram it will generate string session for Pyrogram. If you are using Telethon it will generate for that.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found