You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/tgbot/types/CallbackQuery.h
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
#include"tgbot/types/Message.h"
6
6
7
7
#include<memory>
8
+
#include<optional>
8
9
#include<string>
9
10
10
11
namespaceTgBot {
@@ -35,7 +36,7 @@ class CallbackQuery {
35
36
/**
36
37
* @brief Optional. Identifier of the message sent via the bot in inline mode, that originated the query.
37
38
*/
38
-
std::string inlineMessageId;
39
+
std::optional<std::string> inlineMessageId;
39
40
40
41
/**
41
42
* @brief Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
0 commit comments