mtproto-core
mtproto-core copied to clipboard
Telegram API JS (MTProto) client library for Node.js and browser
Hi, I get the following error Error: EPERM: operation not permitted, rename 'D:\Development\1.json.2192667871' -> 'D:\Development\1.json' at Object.renameSync (node:fs:980:3) at Function.writeFileSync [as sync] (D:\Development\node_modules\write-file-atomic\index.js:244:8) at Configstore.set all [as all] (D:\Development\node_modules\configstore\index.js:61:20) at...
for this example "Parse all messages from channel[#](https://mtproto-core.js.org/docs/call-the-telegram-methods#parse-all-messages-from-channel)" I have error ``` contacts.resolveUsername error: { _: 'mt_rpc_error', error_code: 400, error_message: 'USERNAME_NOT_OCCUPIED' } ``` Why i see this error, help pls
For the same message, I'm receiving the updateNewChannelMessage event twice, which makes my system interpret the message twice and get duplicated. The only difference between the two events is the...
**Describe the bug** When using messages.getDialogs, There is a property called unread_count.. That is always zero. How would you get the information on whether or not a user has read...
I have been trying to get this particular api method to work (https://core.telegram.org/method/messages.sendMultiMedia). I have provided sample code below that I am using to test this behavior. It shouldn't be...
> Error ``` { _: 'mt_rpc_error', error_code: 400, error_message: 'PHONE_CODE_INVALID' } ``` > Code ``` const api = require('./api') const phoneNumber = "+9996621958"; const delay = require('delay') let code =...
**Describe the bug** Im forwarding from a channel to my channel, it worked great until a few weeks ago so I checked and saw that the access_hash: of the groups...
Hello, Fairly new to Node and Telegram so this is a bit overwhelming for me. I've created an "api.js" file and copied the content of your api.js file into it...
Hi, would you mind asking how to sendMessage with button options. I saw from the source code seems reply_markup is supported, but turn out the followings throw an error. Would...
I'm registered all update listeners and all the messages sent on specific channel don't appear on them. In another channels, the messages appears on the listeners. ``` mtproto.updates.on('updates', (updateInfo) =>...