I have a Telegram bot written in PHP. It sends large list of person details. My problem is that I cant send all data. $input = file_get_contents(‘php://input’); $update = json_decode($input); $message = $update->message; $chat_id = $message->chat->id; $file = file_get_contents(‘a_very_long_lidt.txt’); //this is the file i want to send $token = ‘TOKEN’; file_get_contents("https://api.telegram.org/bot$token/sendMessage?chat_id=$chat_id&text=$file"); //sending the whole file ..
I am a PHP developing a PHP telegram bot in my VPS. Whenever I have to change something in code I have to first open the file and then edit it then reload the server to see the effect of the changes it’s a lot to do is there is any simple way? I can ..
I developed a telegram bot whose job is to send the information/message to the group if the user requests it. This is how it works: Suppose If I post the "x player score" text in the group, it would bring the cricket score of that particular player and this mechanism is happening inside the indefinite ..
I developed a telegram bot that posts the score of the cricket match in the telegram group. As you know, the score will keep changing within time, So I need to send the message when only the score is updated. To achieve this, I’m using the long-polling method (hit the API after every 10 seconds ..
Hope you all are doing great! I developed a telegram bot that posts the score of the match in the telegram group. I already did most of the part but there is something I didn’t able to figure out How to post score in the group when the score is updated or when there is ..
I try create same menu with php-telegram-bot. Try it with reply_markup but it isn’t same. Sourc..
we create a madeline proto telegram app but i don’t know how add my host address of php code to telegram account how telegram understand which address to go and get response when user add command to bot? telegram api has a webhook that send request to webhook but madeline proto don’t has any webhook ..
I’m trying to query some data from my database. there is three option for searching data from database User id Phone no. E-mail I’ve created an inline keyboard by choosing a search option from the above list Screenshot of bot chat I’m looking for a solution where if I choose user_id then the bot will ..
Hi guys I’ll explain my code: I have a telegram bot and I have to write many messages quickly in a group and to write a message it is necessary to execute a link (using the Telegram Api). To do this I use Curl: curl_setopt($ch, CURLOPT_URL, $url_telegram); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_VERBOSE, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, ..
I’m having trouble entering a sending limit. If they send me a photo the bot works, when more photos are sent it stop working So I would like to insert a condition that blocks sending when photos are more than 1. My current code is: elseif($stepUtente == 4) // step DB 4 photo on Marketplace ..