summaryrefslogtreecommitdiff
path: root/include/tgbot/types/UsersShared.h
blob: 343ac8203432b47e4f509fc2573c51dba72110be (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
#ifndef TGBOT_USERSSHARED_H
#define TGBOT_USERSSHARED_H

#include "tgbot/types/SharedUser.h"

#include <cstdint>
#include <memory>
#include <vector>

namespace TgBot {

/**
 * @brief This object contains information about the users whose identifiers were shared with the bot using a KeyboardButtonRequestUsers button.
 *
 * @ingroup types
 */
class UsersShared {

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

    /**
     * @brief Identifier of the request
     */
    std::int32_t requestId;

    /**
     * @brief Information about users shared with the bot.
     */
    std::vector<SharedUser::Ptr> users;
};
}

#endif //TGBOT_USERSSHARED_H