Skip to content

Commit 81377db

Browse files
committed
close witnessmenow#8: maxMessageLength is public and not constant. The user can change it dynamically
1 parent aacb61b commit 81377db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UniversalTelegramBot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ class UniversalTelegramBot {
113113
int waitForResponse = 1500;
114114
int _lastError;
115115
int last_sent_message_id = 0;
116+
int maxMessageLength = 1500;
116117

117118
private:
118119
// JsonObject * parseUpdates(String response);
119120
String _token;
120121
Client *client;
121122
void closeClient();
122-
const int maxMessageLength = 1500;
123123
bool getFile(String *, long *, String);
124124
bool processResult(JsonObject result, int messageIndex);
125125
};

0 commit comments

Comments
 (0)