botman / driver-telegram

BotMan Telegram Driver
MIT License
88 stars 75 forks source link

How to add optional reply_to_message_id #62

Closed Iyongbudiarso closed 4 years ago

Iyongbudiarso commented 5 years ago

How to add optional parameter reply_to_message_id on botman?

nullcookies commented 4 years ago

How to add optional parameter reply_to_message_id on botman? This code works


$parameters = array_merge([
'reply_to_message_id' => $bot->getMessage()->getPayload()['message_id'],
        ]);
        $bot->reply($question, $parameters);
feralheart commented 4 years ago

Thank you for your answer @nullcookies I will add it to the documentation