danog/MadelineProto

messages.sendMessage needs random_id parametr

webportnoy opened this issue · 1 comments

https://core.telegram.org/method/messages.sendMessage

When sending message for the first time using user_id as a peer, random_id is required. If random_id is not provided Telegram returns error 400 MSG_ID_INVALID

Madeline has no parameter random_id for the method messages.sendMessage
https://docs.madelineproto.xyz/API_docs/methods/messages.sendMessage.html

MadelineProto automatically populates it, the MSG_ID_INVALID error is caused by an invalid message ID used elsewhere in the message payload.