This is my Code $button = []; foreach ($porche_details as $key => $value) { array_push($button,$value->number.’-‘.$value->name); } $pieces = array_chunk($button, ceil(count($button) / 3)); array_push($pieces, [$b[‘b’].’goback’]); $reply_button = Keyboard::make([ ‘keyboard’ => $pieces, ‘resize_keyboard’ => true, ‘one_time_keyboard’ => true, ‘disable_web_page_preview’ => true, ]); $language = TelegramLanguage::select(‘language’)->where(‘chat_id’,$data[‘message’][‘chat’][‘id’])->first(); if($language->language==’uz’){ Telegram::sendMessage([ ‘chat_id’=> $data[‘message’][‘chat’][‘id’], ‘text’ =>"Uz,Domlarni tanlang", ‘reply_markup’ =>$reply_button, ‘parse_mode’ => ‘HTML’, ..
Category : bots
enter image description here. this my code enter image description here. this is shows button ,problem is I must not show number on the button , but I should get request number after presses button,what i should do pls give advise Sourc..
Goodnight. It turns out that I have a google adsense account, on my website I show ads to generate a little money, but it seems that the competition has hired or created a bot that is responsible for clicking on my ads, specifically one, therefore I’ve been limited and I can’t show ads for now. ..
I am having an issue to get a telegram user id using his username. there are few scenarios that I want to know is that possible or not if we have a username of any user, can we get his/her user id from @userinfobot? can we receive messages from the user using Bot? how to ..
i am having an issue to get telegram user id using his username. there are few scenarios that i want to know is that possible or not if we have username of any user, can we get his/her user id from @userinfobot ? can we receive messages from user using Bot ? how to hide ..
Hi i need the last message id that send with bot and i want to get last message bot in conversation $this->bot->getBotMessages(); when i print that on serialize $this->bot->reply($this->bot->getBotMessages()); to then get id with this way getPayload()[‘message_id’] return this a:0:{} i want this for reply to the last bot message this is my code $text ..
$this->bot->hears(‘[sS]+’,function(BotMan $bot){ $input = $bot->getMessage()->getText(); $k = Keyboard::create()->type( Keyboard::TYPE_KEYBOARD ) ->oneTimeKeyboard(true) ->addRow( KeyboardButton::create("Cat")->callbackData(‘c’), KeyboardButton::create("Dog")->callbackData(‘d’) ) ->toArray(); if ($bot->getcallbackData() == ‘c’)//Here I need to check callbackData from clicked button { $bot->reply(‘you clicked on Cat’); } else { $bot->reply(‘you clicked on Dog’); } }); getcallbackData() function is not exists in botman but i put it to Clarify ..

I have some issue with Telegram SDK! As you see in photo below, I ask to enter Some title after user enters /addnotification commmand, here user should enter some title of notification, but I can’t get it, because update gives me last message , which was command /addnotification! Please, help if someone knows the answer! ..