summaryrefslogtreecommitdiff
path: root/include/tgbot/types/ChatPhoto.h
blob: 30c702e30adb38de15c49aed0dcbdacf355c9004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef TGBOT_CHATPHOTO_H
#define TGBOT_CHATPHOTO_H

#include <memory>
#include <string>

namespace TgBot {

/**
 * @brief This object represents a chat photo.
 *
 * @ingroup types
 */
class ChatPhoto {

public:
    typedef std::shared_ptr<ChatPhoto> Ptr;

    /**
     * @brief File identifier of small (160x160) chat photo.
     * This fileId can be used only for photo download and only for as long as the photo is not changed.
     */
    std::string smallFileId;

    /**
     * @brief Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots.
     * Can't be used to download or reuse the file.
     */
    std::string smallFileUniqueId;

    /**
     * @brief File identifier of big (640x640) chat photo.
     * This fileId can be used only for photo download and only for as long as the photo is not changed.
     */
    std::string bigFileId;

    /**
     * @brief Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots.
     * Can't be used to download or reuse the file.
     */
    std::string bigFileUniqueId;
};
}

#endif //TGBOT_CHATPHOTO_H