samowns Posted May 12, 2022 Share Posted May 12, 2022 Hello member's please check my code i set weebhook aleady but bot didnt respond <?php $input= file_get_contents('php://input'); $update= json_decode($input); $message=$update->message; $chat_id=$message->chat->id; $text=$message->text; $token='key'; file_get_contents("https://api.telegram.org/bot$token/sendMessage?chat_id=$chat_id&text=$text"); ?> Quote Link to comment https://forums.phpfreaks.com/topic/314782-php-telegram-bot-script/ Share on other sites More sharing options...
requinix Posted May 12, 2022 Share Posted May 12, 2022 Quote Link to comment https://forums.phpfreaks.com/topic/314782-php-telegram-bot-script/#findComment-1596172 Share on other sites More sharing options...
samowns Posted May 12, 2022 Author Share Posted May 12, 2022 sir any solution? Quote Link to comment https://forums.phpfreaks.com/topic/314782-php-telegram-bot-script/#findComment-1596173 Share on other sites More sharing options...
ginerjm Posted May 12, 2022 Share Posted May 12, 2022 Allow me to express my ignorance, but what is your code supposed to do? And what is a weebhook? It would be nice if you talked a bit more about what is the problem or told us what you have actually tried that would solve whatever the problem is, but you didn't. So it seems that you threw some code together and it didn't do what you wanted (and we don't know what that is) and you haven't done anything to solve your apparently incorrect code. Not a good approach to coding. Quote Link to comment https://forums.phpfreaks.com/topic/314782-php-telegram-bot-script/#findComment-1596179 Share on other sites More sharing options...
samowns Posted May 13, 2022 Author Share Posted May 13, 2022 Ok bro i create telegram bot and i want to response to connect or response the bot through php ..please find the solution Quote Link to comment https://forums.phpfreaks.com/topic/314782-php-telegram-bot-script/#findComment-1596193 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.