painor

Results 186 comments of painor

could you share full code?

are you using an old version of the library maybe? does anything suspicious show in the logs?

can you share the logs when that happens?

Are you running the same session twice ?

then I honestly have no idea, Maybe you should try running client.getMe() every minute to wake up the script.

Update to latest https://www.npmjs.com/package/telegram/v/2.0.6 to fix that

if you don't pass any events to addEventHandler it will catch all events sent by telegram

You can try this https://www.npmjs.com/package/tg-file-id

are you using client.sendMessage or new SendMessage? also can you show full traceback.

it's probably this then https://gram.js.org/tl/contacts/Search (ignore the description there).