Skip to content

Commit f6731ed

Browse files
authored
Update bot.php
1 parent 47e6d96 commit f6731ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bot.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,11 @@ public function handleSaveLocationFromMessage(Incoming & PrivateMessage $message
338338
$geonameId = (int)$parts[1];
339339
UserLocation::setGeonameId($userId, $geonameId);
340340

341+
$inputReplyToMessage = ['_' => 'inputReplyToMessage', 'reply_to_msg_id' => $message->id];
341342
$this->messages->sendMessage([
342343
'peer' => $message->chatId,
343344
'message' => $location_save,
344-
'reply_to_msg_id' => $message->id,
345+
'reply_to' => $inputReplyToMessage,
345346
'parse_mode' => 'HTML'
346347
]);
347348
}

0 commit comments

Comments
 (0)