Skip to content

Commit 5c52783

Browse files
committed
Fix messages.sendPaidReaction
1 parent 339bb2c commit 5c52783

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Connection.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ public function wakeupHandler(MTProtoIncomingMessage $message): void
328328
*/
329329
private function methodAbstractions(string &$method, array &$arguments): void
330330
{
331-
if ($method === 'messages.importChatInvite' && isset($arguments['hash']) && \is_string($arguments['hash']) && $r = Tools::parseLink($arguments['hash'])) {
331+
if ($method === 'messages.sendPaidReaction') {
332+
$arguments['random_id'] = (time() << 32) | random_int(0, 0xFF_FF_FF_FF);
333+
} elseif ($method === 'messages.importChatInvite' && isset($arguments['hash']) && \is_string($arguments['hash']) && $r = Tools::parseLink($arguments['hash'])) {
332334
[$invite, $content] = $r;
333335
if ($invite) {
334336
$arguments['hash'] = $content;

0 commit comments

Comments
 (0)