I wanna send a json encoded keyboard as reply markup but I get error 400 bad requset! This is how json looks like: and this is how the code looks like: I’ve also tried deleting one of the [ ] but it didn’t work. Answer I actually find the problem. It was a problem with data size. As Telegram says,
Tag: php-telegram-bot
Telegram bot inline keyboard callback not working
I’m using PHP for the telegram bot. Reply callback is working when the callback hit the callback URL but the inline keyboard callback not working. When I click on the inline keyboard button, nothing responds, why it’s happening? Please help me to fix the issues. Answer Have you implemented something to respond the callback query?! When you receive an update
how can i ban some numbers from checking on bot
like if someone type command “!user 123456” then send message “number banned” I tried this but won’t worked… $ban = array(‘112233′,’123456’); if(strpos($message, “!user $ban”) ===0){ sendMessage($chatId, “<u>Number Banned!</u>”, $message_id); } Answer Instead of using strpos, if you’re going to do more commands you should parse out the action and data from the message, then you can use logic to do
Is there a bulk messaging limit in telegram bots?
I was sending messages to all my bot subscribers and when the subscribers reach about 400, my bot doesn’t send messages to all but few. my code is in php and I’ve used the sleep() function. I tested it and found out that while sending the message if the messages aren’t sent in 1 min the sending process stops and
Telegram sendPhoto method don’t refresh
I’m using a simple bot code which takes an Image from a php page created using: header(“Content-type: image/png”); and imagepng(); Here is the bot code: if ($text == “/photo”) { $reply_markup = …