mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 11:46:31 +00:00
Allow more telegram messages in queue
This commit is contained in:
parent
2401c6c1f3
commit
d47c69559f
@ -83,7 +83,7 @@ bool TelegramInit(void) {
|
|||||||
if (!telegramClient) {
|
if (!telegramClient) {
|
||||||
telegramClient = new BearSSL::WiFiClientSecure_light(tls_rx_size, tls_tx_size);
|
telegramClient = new BearSSL::WiFiClientSecure_light(tls_rx_size, tls_tx_size);
|
||||||
|
|
||||||
if (Settings->flag5.tls_use_fingerprint) {
|
if (Settings->flag5.tls_use_fingerprint) { // SetOption132 - (TLS) Use fingerprint validation instead of CA based
|
||||||
telegramClient->setPubKeyFingerprint(Telegram_Fingerprint, Telegram_Fingerprint, false); // check server fingerprint
|
telegramClient->setPubKeyFingerprint(Telegram_Fingerprint, Telegram_Fingerprint, false); // check server fingerprint
|
||||||
} else {
|
} else {
|
||||||
telegramClient->setTrustAnchor(&GoDaddyCAG2_TA, 1);
|
telegramClient->setTrustAnchor(&GoDaddyCAG2_TA, 1);
|
||||||
@ -144,7 +144,7 @@ String TelegramConnectToTelegram(const String &command) {
|
|||||||
}
|
}
|
||||||
if (available) {
|
if (available) {
|
||||||
response += c;
|
response += c;
|
||||||
if (response.length() > 800) { // Allow up to two messages
|
if (response.length() > 2000) { // Allow up to 5 messages
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user