Skip to content

Commit c35e316

Browse files
committed
Reset endpoint before sending the next payload
1 parent 0e8f151 commit c35e316

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/TelegramDriver.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,13 @@ private function removeInlineKeyboard($chatId, $messageId)
294294
*/
295295
public function buildServicePayload($message, $matchingMessage, $additionalParameters = [])
296296
{
297+
$this->endpoint = 'sendMessage';
298+
297299
$recipient = $matchingMessage->getRecipient() === '' ? $matchingMessage->getSender() : $matchingMessage->getRecipient();
298300
$parameters = array_merge_recursive([
299301
'chat_id' => $recipient,
300302
], $additionalParameters);
303+
301304
/*
302305
* If we send a Question with buttons, ignore
303306
* the text and append the question.

0 commit comments

Comments
 (0)