-
Notifications
You must be signed in to change notification settings - Fork 79
Description
我的TG User账号被官方干碎了,所有在线设备全部被踢下线了,之前登陆时候的session变成了无效状态,但是依旧保存在数据库当中,导致现在程序运行到某部分时卡SESSION_REVOKED状态后退出了,下面是报错信息
[2025-07-06T06:23:01.500] [ERROR] Main - UnhandledRejection: _RPCError: 401: SESSION_REVOKED (caused by users.GetUsers)
at RPCMessageToError (/node_modules/.pnpm/telegram@2.26.8_patch_hash=6ezi5zx3h54zaimfvrhyk2gpfa/node_modules/telegram/errors/index.js:28:12)
at _MTProtoSender._handleRPCResult (/node_modules/.pnpm/telegram@2.26.8_patch_hash=6ezi5zx3h54zaimfvrhyk2gpfa/node_modules/telegram/network/MTProtoSender.js:561:40)
at _MTProtoSender._processMessage (/node_modules/.pnpm/telegram@2.26.8_patch_hash=6ezi5zx3h54zaimfvrhyk2gpfa/node_modules/telegram/network/MTProtoSender.js:492:15)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async _MTProtoSender._recvLoop (/node_modules/.pnpm/telegram@2.26.8_patch_hash=6ezi5zx3h54zaimfvrhyk2gpfa/node_modules/telegram/network/MTProtoSender.js:439:17) {
code: 401,
errorMessage: 'SESSION_REVOKED'
}
是因为本地保存的session变得无效了,所以程序再次卡死
希望可以新增一个重新登陆TG User的选项