You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the TelegramClient.sendMessage message sending function, the return type is specified as Promise<Api.Message>. Despite this, an array containing one element of the message object is returned: Promise<[Api.Message]>.
Thus, the description of the type of the returned value does not actually correspond to the returned value
Example:
constclient=newTelegramClient(/*...*/);constresult=client.sendMessage(/*...*/);console.log(Array.isArray(result));// should be false but true
Version: "telegram": "^2.25.15"
The text was updated successfully, but these errors were encountered:
Hello!
For the
TelegramClient.sendMessage
message sending function, the return type is specified asPromise<Api.Message>
. Despite this, an array containing one element of the message object is returned:Promise<[Api.Message]>
.Thus, the description of the type of the returned value does not actually correspond to the returned value
Example:
Version: "telegram": "^2.25.15"
The text was updated successfully, but these errors were encountered: