File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 11name =FastBot2
2- version =1.0.3
2+ version =1.0.4
33author =AlexGyver <alex@alexgyver.ru>
44maintainer =AlexGyver <alex@alexgyver.ru>
55sentence =Fast and universal Arduino/ESP8266/ESP32 library for Telegram bot
Original file line number Diff line number Diff line change 33#include < GSON.h>
44#include < StringUtils.h>
55
6+ #ifndef __AVR__
7+ #include < functional>
8+ #endif
9+
610#include " Fetcher.h"
711#include " api.h"
812#include " bot_config.h"
@@ -22,9 +26,15 @@ enum class Poll : uint8_t {
2226};
2327
2428class Core : public Http {
29+ #ifdef __AVR__
2530 typedef void (*CallbackRaw)(Text response);
2631 typedef void (*CallbackResult)(gson::Entry& entry);
2732 typedef void (*CallbackUpdate)(Update& upd);
33+ #else
34+ typedef std::function<void (Text response)> CallbackRaw;
35+ typedef std::function<void (gson::Entry& entry)> CallbackResult;
36+ typedef std::function<void (Update& upd)> CallbackUpdate;
37+ #endif
2838
2939 public:
3040 // разрешение и запрет типов обновлений
You can’t perform that action at this time.
0 commit comments