summaryrefslogtreecommitdiff
path: root/include/tgbot/types/ChatLocation.h
blob: 0abbba0bdc44b6063747f827331b6edda2cd0141 (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
#ifndef TGBOT_CPP_CHATLOCATION_H
#define TGBOT_CPP_CHATLOCATION_H

#include "tgbot/types/Location.h"

#include <memory>

namespace TgBot {

/**
 * @brief Represents a location to which a chat is connected.
 *
 * @ingroup types
 */
class ChatLocation {

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

    /**
     * @brief The location to which the supergroup is connected.
     * Can't be a live location.
     */
    Location::Ptr location;

    /**
     * @brief Location address; 1-64 characters, as defined by the chat owner
     */
    std::string address;
};
}

#endif //TGBOT_CPP_CHATLOCATION_H