Skip to content

Commit

Permalink
auto_escape默认更改
Browse files Browse the repository at this point in the history
  • Loading branch information
NIANIANKNIA committed Apr 13, 2024
1 parent 96e266c commit 9695673
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NIAHttpBOT/src/QQBot_API.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class QQBot {
* @param message 消息内容
* @param auto_escape 是否自动转义
*/
void send_private_message(const std::string & user_id, const std::string & message, bool auto_escape = false);
void send_private_message(const std::string & user_id, const std::string & message, bool auto_escape = true);

/**
* @brief 发送群消息
Expand All @@ -31,7 +31,7 @@ class QQBot {
* @param message 消息内容
* @param auto_escape 是否自动转义
*/
void send_group_message(const std::string & group_id, const std::string & message, bool auto_escape = false);
void send_group_message(const std::string & group_id, const std::string & message, bool auto_escape = true);

/**
* @brief 撤回消息
Expand All @@ -58,7 +58,7 @@ class QQBot {
* @param reject_add_request 是否拒绝加
*群请求
*/
void set_group_kick(const std::string & group_id, const std::string & user_id, bool reject_add_request = false);
void set_group_kick(const std::string & group_id, const std::string & user_id, bool reject_add_request = true);

/**
* @brief 设置群成员禁言
Expand Down

0 comments on commit 9695673

Please sign in to comment.