witnessmenow / Universal-Arduino-Telegram-Bot

Use Telegram on your Arduino (ESP8266 or Wifi-101 boards)
MIT License
1.12k stars 306 forks source link

sendMessageWithInlineKeyboard when text is empty the message will not be sent #272

Open joroMaser opened 2 years ago

joroMaser commented 2 years ago
  bool sendMessageWithInlineKeyboard(const String& chat_id, const String& text,const String& parse_mode, const String& keyboard, int message_id = 0);
String keyboardJson = "[[{ \"text\" : \"Send\", \"callback_data\" : \"This was sent by inline\" }]]";
bot.sendMessageWithInlineKeyboard(chat_id, "", "", keyboardJson);

If text (second argument) is null , the message will not be sent.