botman / driver-telegram

BotMan Telegram Driver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to add optional reply_to_message_id

Iyongbudiarso opened this issue · comments

How to add optional parameter reply_to_message_id on botman?

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);

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