I have this keyboard in my telegram bot:
When i click the right arrow i get this new keyboard:
the code is this:
$url = $GLOBALS["website"]."/sendMessage?chat_id=".$chatID."&text=''&parse_mode=html&reply_markup=".json_encode($keyboard3);
file_get_contents($url);
I know that text is required in sendmessage method, but i'm searching a way or workaround to send an empty message.
I've tried with space or similar html entity, but i did not suceed.
There is a way to do this?
Thank you.
You can't send empty message now, it was a bug for zero-width space
and RTL (Right-to-Left) control character, but it can't send along now.
You can try Alt + 0173 in the Numpad. Press and hold the Alt key and click on 0 then 1 then 7 then 3.
I don't think there is a way to do what you want.
Consider this:
https://api.telegram.org/botYOURTOKEN/sendMessage?chat_id=ID&text=
Since even space is not accepted, there are no other characters that can be encoded to represent "nothingness".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With