summaryrefslogtreecommitdiff
path: root/include/tgbot/types/BotCommandScopeChatMember.h
blob: 5beaee6425bb4590ce6a0444493f81fb1cedbec6 (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
#ifndef TGBOT_BOTCOMMANDSCOPECHATMEMBER_H
#define TGBOT_BOTCOMMANDSCOPECHATMEMBER_H

#include "tgbot/types/BotCommandScope.h"

#include <cstdint>
#include <memory>

namespace TgBot {

/**
 * @brief Represents the scope of bot commands, covering a specific member of a group or supergroup chat.
 *
 * @ingroup types
 */
class BotCommandScopeChatMember : public BotCommandScope {
public:
    static const std::string TYPE;

    typedef std::shared_ptr<BotCommandScopeChatMember> Ptr;

    BotCommandScopeChatMember() {
        this->type = TYPE;
    }

    /**
     * @brief Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
     */
    std::int64_t chatId;

    /**
     * @brief Unique identifier of the target user
     */
    std::int64_t userId;
};
}

#endif //TGBOT_BOTCOMMANDSCOPECHATMEMBER_H