Skip to content

Commit 726c112

Browse files
committed
Correctly declared values
1 parent c041ec4 commit 726c112

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/UniversalTelegramBot.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ bool UniversalTelegramBot::sendMessageWithInlineKeyboard(const String& chat_id,
607607
const String& text,
608608
const String& parse_mode,
609609
const String& keyboard,
610-
const int& message_id) { // added message_id
610+
int message_id) { // added message_id
611611

612612
DynamicJsonDocument payload(maxMessageLength);
613613
payload["chat_id"] = chat_id;
@@ -628,7 +628,7 @@ bool UniversalTelegramBot::sendMessageWithInlineKeyboard(const String& chat_id,
628628
* SendPostMessage - function to send message to telegram *
629629
* (Arguments to pass: chat_id, text to transmit and markup(optional)) *
630630
***********************************************************************/
631-
bool UniversalTelegramBot::sendPostMessage(JsonObject payload, bool edit = false) { // added message_id
631+
bool UniversalTelegramBot::sendPostMessage(JsonObject payload, bool edit) { // added message_id
632632

633633
bool sent = false;
634634
#ifdef TELEGRAM_DEBUG

src/UniversalTelegramBot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class UniversalTelegramBot {
9090
bool resize = false, bool oneTime = false,
9191
bool selective = false);
9292
bool sendMessageWithInlineKeyboard(const String& chat_id, const String& text,
93-
const String& parse_mode, const String& keyboard, const int& message_id = 0); // added message id
93+
const String& parse_mode, const String& keyboard, int message_id = 0); // added message id
9494

9595
bool sendChatAction(const String& chat_id, const String& text);
9696

0 commit comments

Comments
 (0)