Category : telegram-bot

I’m using php-telegram-bot package to create a telegram Bot. I have a conversation command based on SurveyCommand.php example. all things worked fine but I have a problem after ending conversation. In the last step of conversation after using $this->conversation->stop(); I want to send a simple message and then call a start command. like this : ..

Read more

I’m using Laravel 8, irazasyed/telegram-bot-sdk. I created an inline "Select Group" button. public function handle() { $inlineLayout = [ [ Keyboard::inlineButton([‘text’ => ‘Choose a group’, ‘callback_data’ => ‘data’]), ] ]; $reply_markup = Keyboard::make([ ‘inline_keyboard’ => $inlineLayout, ‘resize_keyboard’ => true, ‘one_time_keyboard’ => true, ]); $this->replyWithMessage([‘text’ => ‘Click on the button to select a group.’, ‘reply_markup’ => ..

Read more