mtproto-core icon indicating copy to clipboard operation
mtproto-core copied to clipboard

Telegram API JS (MTProto) client library for Node.js and browser

Results 101 mtproto-core issues
Sort by recently updated
recently updated
newest added

**Describe the bug** I can not execute sendMedia command, receiveing error message: `messages.sendMedia error: TypeError: Cannot read property 'call' of undefined ` **Code example** ``` function sendMedia(mtprotoInstance, media, message, replyId)...

Hey, so im getting this error: `(node:26457) UnhandledPromiseRejectionWarning: # (node:26457) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or...

**Describe the bug** messages.exportChatInvite does not accept legacy_revoke_permanent, expire_date and usage_limit as parameter. Tried all possible combinations. Also on wrong values there is no feedback or error message. It just...

I'm following the simple file example and getting the API_ID from http://my.telegram.org, even parse it into an INT for try and error. Whenever I'm calling this method: await mtproto.call('help.getNearestDc').then(result =>...

`const result = plainDeserializer.predicate();` `this.handleDecryptedMessage(result, { messageId, seqNo });` should the call to the function be: `await this.handleDecryptedMessage(result, { messageId, seqNo });` and similar for the: `message.messages.forEach((message) => { this.handleDecryptedMessage(message.body,...

**Describe the bug** Running with 5.3.0 version - getting the error: ``` Transport error: { type: 'socket' } ``` This code has worked previously, so not sure what's the issue...

Where types for typescript in 6.0.0? ![image](https://user-images.githubusercontent.com/23178771/128574401-679ed0c8-659b-4524-b856-7df4560e6831.png) ![image](https://user-images.githubusercontent.com/23178771/128574412-e1b35f8a-293b-419a-893d-366593c4bd9c.png)

Hi, I don't find in the documentation information on the way to decode message received in the event 'updates' ``` mtproto.updates.on('updates', (updateInfo) => { console.log('updates:', updateInfo); }); ``` The updateInfo...

Dudes, i have a problem: @mtproto/core v6.0.1 node v14.17.4 When i use method upload.getFile with constructor inputPhotoFileLocation, call return nothing w/o exception or error and cpu load about 100% for...

Hello! I recieving updates by `api.mtproto.updates.on('updates', (updateInfo) => {})` method. So, when i tried to get mentioned users info (for getting username — @qunaxis, for example) by `users.getUsers` method its...