File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
name =FastBot2
2
- version =1.2.1
2
+ version =1.2.2
3
3
author =AlexGyver <
[email protected] >
4
4
maintainer =AlexGyver <
[email protected] >
5
5
sentence =Fast and universal Arduino/ESP8266/ESP32 library for Telegram bot
Original file line number Diff line number Diff line change @@ -515,6 +515,7 @@ class Core : public Http {
515
515
#endif
516
516
return ;
517
517
}
518
+ updates.changed = false ;
518
519
thisBot = this ;
519
520
_exit_f = false ;
520
521
uint8_t len = result.length ();
Original file line number Diff line number Diff line change @@ -42,21 +42,25 @@ class Updates {
42
42
// установить
43
43
void set (uint32_t nmods) {
44
44
updates |= nmods;
45
+ changed = true ;
45
46
}
46
47
47
48
// очистить
48
49
void clear (uint32_t nmods) {
49
50
updates &= ~nmods;
51
+ changed = true ;
50
52
}
51
53
52
54
// включить все
53
55
void setAll () {
54
56
updates = FB_UPDATES_FILL;
57
+ changed = true ;
55
58
}
56
59
57
60
// очистить все
58
61
void clearAll () {
59
62
updates = 0 ;
63
+ changed = true ;
60
64
}
61
65
62
66
// прочитать по типу
@@ -71,9 +75,10 @@ class Updates {
71
75
72
76
private:
73
77
uint32_t updates = FB_UPDATES_FILL;
78
+ bool changed = true ;
74
79
75
80
void makePacket (Packet& p) {
76
- if (updates == FB_UPDATES_FILL ) return ;
81
+ if (!changed ) return ;
77
82
78
83
const __FlashStringHelper* upd_arr[] = {
79
84
tg_api::message,
You can’t perform that action at this time.
0 commit comments