Skip to content

Commit e9c1c4d

Browse files
committed
close witnessmenow#9: proper argument name and class definition
1 parent 8de8cc8 commit e9c1c4d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/UniversalTelegramBot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ bool UniversalTelegramBot::getFile(String& file_path, long& file_size, const Str
839839
}
840840

841841
bool UniversalTelegramBot::answerCallbackQuery(const String &query_id, const String &text, bool show_alert, const String &url, int cache_time) {
842-
String command = BOT_CMD("answerCallbackQuery?query_id=");
842+
String command = BOT_CMD("answerCallbackQuery?callback_query_id=");
843843
command += query_id;
844844
command += F("&show_alert=");
845845
command += show_alert;

src/UniversalTelegramBot.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ struct telegramMessage {
6060

6161
int reply_to_message_id;
6262
String reply_to_text;
63+
String query_id;
6364
};
6465

6566
class UniversalTelegramBot {

0 commit comments

Comments
 (0)