tgbot-cpp
Loading...
Searching...
No Matches
InlineQueryResultVoice.h
Go to the documentation of this file.
1#ifndef TGBOT_INLINEQUERYRESULTVOICE_H
2#define TGBOT_INLINEQUERYRESULTVOICE_H
3
7
8#include <cstdint>
9#include <memory>
10#include <string>
11#include <vector>
12
13namespace TgBot {
14
23public:
24 static const std::string TYPE;
25
26 typedef std::shared_ptr<InlineQueryResultVoice> Ptr;
27
29 this->type = TYPE;
30 };
31
35 std::string voiceUrl;
36
40 std::string title;
41
45 std::string caption;
46
51 std::string parseMode;
52
56 std::vector<MessageEntity::Ptr> captionEntities;
57
61 std::int32_t voiceDuration;
62
67};
68}
69
70#endif //TGBOT_INLINEQUERYRESULTVOICE_H
This abstract class is base of all inline query results.
std::string type
Type of the result.
Represents a link to a voice recording in an .OGG container encoded with OPUS. By default,...
std::string parseMode
Optional. Mode for parsing entities in the voice message caption. See https://core....
std::shared_ptr< InlineQueryResultVoice > Ptr
InputMessageContent::Ptr inputMessageContent
Optional. Content of the message to be sent instead of the voice recording.
std::string caption
Optional. Caption, 0-1024 characters after entities parsing.
std::int32_t voiceDuration
Optional. Recording duration in seconds.
std::string title
Recording title.
std::vector< MessageEntity::Ptr > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::string voiceUrl
A valid URL for the voice recording.
std::shared_ptr< InputMessageContent > Ptr
Definition Api.h:39