AsyncTelegram2
Loading...
Searching...
No Matches
DataStructures.h
Go to the documentation of this file.
1
2#ifndef DATA_STRUCTURES
3#define DATA_STRUCTURES
4
5#define BUFFER_BIG 2048 // json parser buffer size (ArduinoJson v6)
6#define BUFFER_MEDIUM 1024 // json parser buffer size (ArduinoJson v6)
7#define BUFFER_SMALL 512 // json parser buffer size (ArduinoJson v6)
8
20};
21
22struct TBUser {
23 bool isBot;
24 int64_t id = 0;
25 String firstName;
26 String lastName;
27 String username;
28};
29
31 float longitude;
32 float latitude;
33};
34
35struct TBContact {
36 int64_t id;
38 String firstName;
39 String lastName;
40 String vCard;
41};
42
43struct TBDocument {
45 int32_t file_size;
46 String file_id;
47 String file_name;
48 String file_path;
49};
50
51struct TBMessage {
53 bool isHTMLenabled = true;
54 bool isMarkdownEnabled = false;
56 bool force_reply = false;
57 int32_t date;
58 int32_t chatInstance;
59 int64_t chatId;
60 int32_t messageID;
62 TBUser member; // A user enter or leave a group
68 String text;
69};
70
71#endif
72
MessageType
Definition: DataStructures.h:9
@ MessageDocument
@ MessageNewMember
@ MessageForwarded
@ MessageText
@ MessageNoData
@ MessageReply
@ MessageLocation
@ MessageQuery
@ MessageContact
@ MessageLeftMember
String phoneNumber
String firstName
String vCard
String lastName
int64_t id
int32_t file_size
bool file_exists
String file_path
String file_name
String file_id
float latitude
float longitude
TBContact contact
TBUser member
bool isHTMLenabled
String text
bool disable_notification
int64_t chatId
TBDocument document
bool isMarkdownEnabled
int64_t callbackQueryID
int32_t date
String callbackQueryData
TBUser sender
int32_t chatInstance
MessageType messageType
TBLocation location
bool force_reply
int32_t messageID
String firstName
bool isBot
String username
String lastName