For ages I was struggling with the following code
return client.messages.sendMessage(peer, message, Math.random() * (1<<30));
returning INPUT_FETCH_ERROR from Telegram. Much code-diving later reveals that I have to call
return client.messages.sendMessage(peer, message, Math.random() * (1<<30), null, null, null);
i.e. that only null works as missing arguments, not undefined.
For ages I was struggling with the following code
returning
INPUT_FETCH_ERRORfrom Telegram. Much code-diving later reveals that I have to calli.e. that only
nullworks as missing arguments, notundefined.