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/LinkPreviewOptions.h
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,10 @@
1
1
#ifndef TGBOT_LINKPREVIEWOPTIONS_H
2
2
#defineTGBOT_LINKPREVIEWOPTIONS_H
3
3
4
+
#include"tgbot/Optional.h"
5
+
4
6
#include<memory>
5
7
#include<string>
6
-
#include<boost/optional.hpp>
7
8
8
9
namespaceTgBot {
9
10
@@ -20,29 +21,29 @@ class LinkPreviewOptions {
20
21
/**
21
22
* @brief Optional. True, if the link preview is disabled
22
23
*/
23
-
boost::optional<bool> isDisabled;
24
+
Optional<bool> isDisabled;
24
25
25
26
/**
26
27
* @brief Optional. URL to use for the link preview.
27
28
*
28
29
* If empty, then the first URL found in the message text will be used
29
30
*/
30
-
boost::optional<std::string> url;
31
+
Optional<std::string> url;
31
32
32
33
/**
33
34
* @brief Optional. True, if the media in the link preview is supposed to be shrunk; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview
34
35
*/
35
-
boost::optional<bool> preferSmallMedia;
36
+
Optional<bool> preferSmallMedia;
36
37
37
38
/**
38
39
* @brief Optional. True, if the media in the link preview is supposed to be enlarged; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview
39
40
*/
40
-
boost::optional<bool> preferLargeMedia;
41
+
Optional<bool> preferLargeMedia;
41
42
42
43
/**
43
44
* @brief Optional. True, if the link preview must be shown above the message text; otherwise, the link preview will be shown below the message text
Copy file name to clipboardExpand all lines: include/tgbot/types/ReplyParameters.h
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@
2
2
#defineTGBOT_REPLYPARAMETERS_H
3
3
4
4
#include"tgbot/types/MessageEntity.h"
5
+
#include"tgbot/Optional.h"
5
6
6
7
#include<cstdint>
7
8
#include<memory>
8
9
#include<string>
9
10
#include<vector>
10
-
#include<boost/optional.hpp>
11
11
12
12
namespaceTgBot {
13
13
@@ -31,42 +31,42 @@ class ReplyParameters {
31
31
*
32
32
* Not supported for messages sent on behalf of a business account.
33
33
*/
34
-
boost::optional<std::int64_t> chatId;
34
+
Optional<std::int64_t> chatId;
35
35
36
36
/**
37
37
* @brief Optional. Pass True if the message should be sent even if the specified message to be replied to is not found.
38
38
*
39
39
* Always False for replies in another chat or forum topic.
40
40
* Always True for messages sent on behalf of a business account.
41
41
*/
42
-
boost::optional<bool> allowSendingWithoutReply;
42
+
Optional<bool> allowSendingWithoutReply;
43
43
44
44
/**
45
45
* @brief Optional. Quoted part of the message to be replied to; 0-1024 characters after entities parsing.
46
46
*
47
47
* The quote must be an exact substring of the message to be replied to, including bold, italic, underline, strikethrough, spoiler, and customEmoji entities.
48
48
* The message will fail to send if the quote isn't found in the original message.
49
49
*/
50
-
boost::optional<std::string> quote;
50
+
Optional<std::string> quote;
51
51
52
52
/**
53
53
* @brief Optional. Mode for parsing entities in the quote.
54
54
*
55
55
* See [formatting options](https://core.telegram.org/bots/api#formatting-options) for more details.
56
56
*/
57
-
boost::optional<std::string> quoteParseMode;
57
+
Optional<std::string> quoteParseMode;
58
58
59
59
/**
60
60
* @brief Optional. A JSON-serialized list of special entities that appear in the quote.
0 commit comments