tgbot-cpp
Voice.h
Go to the documentation of this file.
1 //
2 // Created by Andrea Giove on 17/04/16.
3 //
4 
5 #ifndef TGBOT_VOICE_H
6 #define TGBOT_VOICE_H
7 
8 #include <memory>
9 #include <string>
10 
11 namespace TgBot {
12 
18 class Voice {
19 public:
20  typedef std::shared_ptr<Voice> Ptr;
21 
25  std::string file_id;
26 
30  int32_t duration;
31 
35  std::string mime_type;
36 
40  int32_t file_size;
41 };
42 }
43 
44 #endif //TGBOT_VOICE_H
std::string file_id
Unique identifier for this file.
Definition: Voice.h:25
Definition: Api.h:47
int32_t duration
Duration of the audio in seconds as defined by sender.
Definition: Voice.h:30
int32_t file_size
Optional. File size.
Definition: Voice.h:40
std::shared_ptr< Voice > Ptr
Definition: Voice.h:20
This object represents a voice note.
Definition: Voice.h:18
std::string mime_type
Optional. MIME type of the file as defined by sender;.
Definition: Voice.h:35