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.
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".