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
24
25public:
26 static const std::string TYPE;
27
28 typedef std::shared_ptr<InlineQueryResultVoice> Ptr;
29
31 this->type = TYPE;
32 };
33
37 std::string voiceUrl;
38
42 std::string title;
43
47 std::string caption;
48
54 std::string parseMode;
55
59 std::vector<MessageEntity::Ptr> captionEntities;
60
64 std::int32_t voiceDuration;
65
70};
71}
72
73#endif //TGBOT_INLINEQUERYRESULTVOICE_H
This object represents one result of an inline query.
std::string type
Type of the result.
Represents a link to a voice recording in an .OGG container encoded with OPUS.
std::string parseMode
Optional. Mode for parsing entities in the voice message caption.
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:40