painor
painor
I've pushed a small fix to 2.4.5. it might fix it.
Use https://gram.js.org/beta/classes/client_telegramclient.telegramclient.html#sendmessage. it has some example for bold.
Telegram is having some network issues currently maybe this is because of that?
The error is in the line under it. Telegram returns theses errors. `FloodWaitError: A wait of 416 seconds is required (caused by InvokeWithLayer)`
Very good work!. Good job. Maybe we should put this in https://github.com/gram-js/docs instead and manually update them here. There is no reason why we should bundle these files in the...
If you don't use a StringSession (or StoreSession) the library will make a new login attempt each time you run the script. for example, if you go to Settings> Privacy...
are you running it in node or browser? I don't think those methods work in browsers because the DC domains are hardcoded there.
You'll need to change it manually for now. there is a function https://github.com/gram-js/gramjs/blob/89e62a66f00415358ab504fd32118641c2417f0c/gramjs/extensions/PromisedWebSockets.ts#L68 that's called `getWebSocketLink` you need to patch that and add _test at the end to use test...
you can use https://gram.js.org/beta/classes/sessions_abstract.session.html#setdc with the ip/port of the test server (you can find those in the same page you got your api_id,hash from)
You can try iterating over https://gram.js.org/beta/classes/client_telegramclient.telegramclient.html#getdialogs and filtering to channels only.