1 #ifndef TGBOT_METHODS_TYPES_H 2 #define TGBOT_METHODS_TYPES_H 15 constexpr
char iqrTypeArticle[] =
"article";
16 constexpr
char iqrTypeDocument[] =
"document";
17 constexpr
char iqrTypeGif[] =
"gif";
18 constexpr
char iqrTypeMpeg4Gif[] =
"mpeg4_gif";
19 constexpr
char iqrTypePhoto[] =
"photo";
20 constexpr
char iqrTypeVideo[] =
"video";
21 constexpr
char iqrTypeAudio[] =
"audio";
22 constexpr
char iqrTypeLocation[] =
"location";
23 constexpr
char iqrTypeVenue[] =
"venue";
24 constexpr
char iqrTypeContact[] =
"contact";
25 constexpr
char iqrTypeGame[] =
"game";
26 constexpr
char iqrTypeVoice[] =
"voice";
28 constexpr
char imTypePhoto[] =
"photo";
29 constexpr
char imTypeVideo[] =
"video";
30 constexpr
char imTypeAudio[] =
"audio";
31 constexpr
char imTypeAnimation[] =
"animation";
32 constexpr
char imTypeDocument[] =
"document";
37 using InlineQueryResultsVector =
38 std::vector<::tgbot::types::Ptr<InlineQueryResult>>;
47 DEFAULT, MARKDOWN, HTML
85 ::tgbot::types::Ptr<std::string> forwardText;
86 ::tgbot::types::Ptr<std::string> botUsername;
87 bool requestWriteAccess;
92 bool canSendMessages : 1;
93 bool canSendMediaMessages : 1;
94 bool canSendOtherMessages : 1;
95 bool canAddWebPagePreviews : 1;
100 bool canPostMessages : 1;
101 bool canChangeInfo : 1;
102 bool canEditMessages : 1;
103 bool canDeleteMessages : 1;
104 bool canInviteUsers : 1;
105 bool canRestrictMembers : 1;
106 bool canPinMessages : 1;
107 bool canPromoteMembers : 1;
113 ::tgbot::types::Ptr<std::string> url;
114 ::tgbot::types::Ptr<LoginUrl> loginUrl;
115 ::tgbot::types::Ptr<std::string> callbackData;
116 ::tgbot::types::Ptr<std::string> switchInlineQuery;
117 ::tgbot::types::Ptr<std::string> switchInlineQueryCurrentChat;
141 what = std::forward<T>(customMarkup);
145 virtual std::string toString()
const;
153 std::string toString()
const override;
155 std::vector<std::vector<InlineKeyboardButton>> inlineKeyboard;
160 std::string toString()
const override;
162 std::vector<std::vector<KeyboardButton>> keyboard;
163 bool resizeKeyboard : 1;
164 bool oneTimeKeyboard : 1;
170 std::string toString()
const override;
177 std::string toString()
const override;
198 what = std::forward<T>(customMarkup);
202 virtual std::string toString()
const;
210 std::string toString()
const override;
212 std::string messageText;
214 bool disableWebPagePreview : 1;
219 std::string toString()
const override;
227 std::string toString()
const override;
229 std::string phoneNumber;
230 std::string firstName;
231 ::tgbot::types::Ptr<std::string> lastName;
236 std::string toString()
const override;
240 ::tgbot::types::Ptr<std::string> foursquareId;
241 ::tgbot::types::Ptr<std::string> foursquareType;
260 virtual std::string toString()
const;
264 what = std::forward<T>(customMarkup);
277 std::string toString()
const override;
279 std::string audioUrl;
282 ::tgbot::types::Ptr<std::string> caption;
283 ::tgbot::types::Ptr<std::string> performer;
284 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
290 std::string toString()
const override;
293 ::tgbot::types::Ptr<InputMessageContent> inputMessageContent;
294 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
295 ::tgbot::types::Ptr<std::string> url;
296 ::tgbot::types::Ptr<std::string> description;
297 ::tgbot::types::Ptr<std::string> thumbUrl;
305 std::string toString()
const override;
307 std::string phoneNumber;
308 std::string firstName;
309 ::tgbot::types::Ptr<std::string> lastName;
310 ::tgbot::types::Ptr<std::string> thumbUrl;
311 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
312 ::tgbot::types::Ptr<InputMessageContent> inputMessageContent;
319 std::string toString()
const override;
321 std::string gameShortName;
322 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
327 std::string toString()
const override;
330 std::string documentUrl;
331 std::string mimeType;
332 ::tgbot::types::Ptr<std::string> caption;
333 ::tgbot::types::Ptr<std::string> description;
334 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
335 ::tgbot::types::Ptr<InputMessageContent> inputMessageContent;
336 ::tgbot::types::Ptr<std::string> thumbUrl;
343 std::string toString()
const override;
346 std::string thumbUrl;
347 ::tgbot::types::Ptr<std::string> title;
348 ::tgbot::types::Ptr<std::string> caption;
349 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
350 ::tgbot::types::Ptr<InputMessageContent> inputMessageContent;
358 std::string toString()
const override;
361 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
362 ::tgbot::types::Ptr<InputMessageContent> inputMessageContent;
363 ::tgbot::types::Ptr<std::string> thumbUrl;
372 std::string toString()
const override;
374 std::string mpeg4Url;
375 std::string thumbUrl;
376 ::tgbot::types::Ptr<std::string> title;
377 ::tgbot::types::Ptr<std::string> caption;
378 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
379 ::tgbot::types::Ptr<InputMessageContent> inputMessageContent;
387 std::string toString()
const override;
389 std::string photoUrl;
390 std::string thumbUrl;
391 ::tgbot::types::Ptr<std::string> title;
392 ::tgbot::types::Ptr<std::string> description;
393 ::tgbot::types::Ptr<std::string> caption;
394 ::tgbot::types::Ptr<InputMessageContent> inputMessageContent;
395 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
402 std::string toString()
const override;
406 ::tgbot::types::Ptr<std::string> foursquareId;
407 ::tgbot::types::Ptr<std::string> foursquareType;
408 ::tgbot::types::Ptr<std::string> thumbUrl;
409 ::tgbot::types::Ptr<InputMessageContent> inputMessageContent;
410 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
419 std::string toString()
const override;
421 std::string videoUrl;
422 std::string mimeType;
423 std::string thumbUrl;
425 ::tgbot::types::Ptr<std::string> caption;
426 ::tgbot::types::Ptr<std::string> description;
427 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
428 ::tgbot::types::Ptr<InputMessageContent> inputMessageContent;
436 std::string toString()
const override;
439 std::string voiceUrl;
440 ::tgbot::types::Ptr<std::string> caption;
441 ::tgbot::types::Ptr<InputMessageContent> inputMessageContent;
442 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
448 std::string toString()
const override;
450 std::string audioFileId;
451 ::tgbot::types::Ptr<std::string> caption;
452 ::tgbot::types::Ptr<InputMessageContent> inputMessageContent;
453 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
458 std::string toString()
const override;
460 std::string documentFileId;
462 ::tgbot::types::Ptr<std::string> description;
463 ::tgbot::types::Ptr<std::string> caption;
464 ::tgbot::types::Ptr<InputMessageContent> inputMessageContent;
465 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
470 std::string toString()
const override;
472 std::string gifFileId;
473 ::tgbot::types::Ptr<std::string> title;
474 ::tgbot::types::Ptr<std::string> caption;
475 ::tgbot::types::Ptr<InputMessageContent> inputMessageContent;
476 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
481 std::string toString()
const override;
483 std::string mpeg4FileId;
484 ::tgbot::types::Ptr<std::string> title;
485 ::tgbot::types::Ptr<std::string> caption;
486 ::tgbot::types::Ptr<InputMessageContent> inputMessageContent;
487 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
492 std::string toString()
const override;
494 std::string photoFileId;
495 ::tgbot::types::Ptr<std::string> title;
496 ::tgbot::types::Ptr<std::string> description;
497 ::tgbot::types::Ptr<std::string> caption;
498 ::tgbot::types::Ptr<InputMessageContent> inputMessageContent;
499 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
504 std::string toString()
const override;
506 std::string stickerFileId;
507 ::tgbot::types::Ptr<InputMessageContent> inputMessageContent;
508 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
513 std::string toString()
const override;
516 std::string videoFileId;
517 ::tgbot::types::Ptr<std::string> description;
518 ::tgbot::types::Ptr<std::string> caption;
519 ::tgbot::types::Ptr<InputMessageContent> inputMessageContent;
520 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
525 std::string toString()
const override;
528 std::string voiceFileId;
529 ::tgbot::types::Ptr<std::string> caption;
530 ::tgbot::types::Ptr<InputMessageContent> inputMessageContent;
531 ::tgbot::types::Ptr<InlineKeyboardMarkup> replyMarkup;
545 std::vector<LabeledPrice> prices;
547 std::string description;
549 std::string providerToken;
550 std::string startParameter;
551 std::string currency;
552 ::tgbot::types::Ptr<std::string> photoUrl;
553 ::tgbot::types::Ptr<std::string> providerData;
558 bool needPhoneNumber : 1;
560 bool needShippingAddress : 1;
562 bool sendPhoneNumberToProvider : 1;
563 bool sendEmailToProvider : 1;
568 std::vector<LabeledPrice> prices;
588 inline InputMedia& operator=(T &&customMarkup) {
589 what = std::forward<T>(customMarkup);
593 virtual std::string toString()
const;
597 ::tgbot::types::Ptr<std::string> caption;
607 std::string toString()
const override;
612 std::string toString()
const override;
614 ::tgbot::types::Ptr<std::string> thumb;
618 bool supportsStreaming : 1;
623 std::string toString()
const override;
624 ::tgbot::types::Ptr<std::string> thumb;
629 std::string toString()
const override;
630 ::tgbot::types::Ptr<std::string> thumb;
639 std::string toString()
const override;
641 ::tgbot::types::Ptr<std::string> thumb;
642 ::tgbot::types::Ptr<std::string> performer;
643 ::tgbot::types::Ptr<std::string> title;
This struct contains parameters for sendInvoice method.
Definition: types.h:543
FileSource
Choose if filename should be treated as file_id or uploaded via multipart.
Definition: types.h:70
ChatAction
What the bot is doing.
Definition: types.h:53
CallbackGame
(note) according to telegram API documentation, this is only a placeholder, currently using this has ...
Definition: types.h:520
Main tgbot namespace.
Definition: bot.h:13
ParseMode
Parsing mode to be used.
Definition: types.h:46
trait as local upload via multipart