类的使用
cn.siriusbot.siriuspro.bot.api.pojo.message.Message
使用Message的程序包
-
cn.siriusbot.siriuspro.bot.api中Message的使用
返回变量类型为Message的类型的cn.siriusbot.siriuspro.bot.api中的方法修饰符和类型方法说明MessageApi.getMessageById(String bot_id, String channel_id, String message_id) 获取指定子频道的指定消息详情DMS_Api.sendArkMessage(String bot_id, String guild_id, MessageArk ark, String msg_id, String event_id) 通过指定 ark 字段发送模板消息。MessageApi.sendArkMessage(String bot_id, String channel_id, MessageArk ark, String msg_id, String event_id) 通过指定 ark 字段发送模板消息。DMS_Api.sendCustomInLineKeyword(@NonNull String bot_id, @NonNull String guild_id, @NonNull RequestCustomKeyboard requestCustomKeyboard, String msg_id, String event_id) 发送自定义按钮模板对象MessageApi.sendCustomInLineKeyword(String bot_id, String channel_id, RequestCustomKeyboard requestCustomKeyboard, String msg_id, String event_id) 发送自定义按钮模板对象DMS_Api.sendEmbedMessage(String bot_id, String guild_id, MessageEmbed embed, String msg_id, String event_id) 发送embed模板消息 如传入event_id和msg_id其中一个,此条消息视为被动消息MessageApi.sendEmbedMessage(String bot_id, String channel_id, MessageEmbed embed, String msg_id, String event_id) 发送embed模板消息 如传入event_id和msg_id其中一个,此条消息视为被动消息DMS_Api.sendImageAndTextMessage(String bot_id, String guild_id, String content, String image_path, String msg_id, String event_id) 发送图文消息MessageApi.sendImageAndTextMessage(String bot_id, String channel_id, String content, String image_path, String msg_id, String event_id) 发送图文消息C2CApi.sendMarkdownMessage(String bot_id, String user_id, String msg_id, String event_id, MessageMarkdown markdown, MessageKeyboard keyboard) 发送markdown消息(富文本) 要求操作人在该子频道具有发送消息和对应 Markdown 模版 的权限。DMS_Api.sendMarkdownMessage(String bot_id, String guild_id, String msg_id, String event_id, MessageMarkdown markdown) 发送markdown消息(富文本) 要求操作人在该子频道具有发送消息和对应 Markdown 模版 的权限。GroupApi.sendMarkdownMessage(String bot_id, String group_id, String msg_id, String event_id, MessageMarkdown markdown, MessageKeyboard keyboard) 发送markdown消息(富文本)MessageApi.sendMarkdownMessage(String bot_id, String channel_id, String msg_id, String event_id, MessageMarkdown markdown) 发送markdown消息(富文本) 要求操作人在该子频道具有发送消息和对应 Markdown 模版 的权限。C2CApi.sendMessage(String bot_id, String user_id, String content, String msg_id) 用于向 QQ用户发送消息DMS_Api.sendMessage(String bot_id, String guild_id, String content, String image_Url, String msg_id, String event_id) 发送普通私信消息 用于向 guild_id 指定的私信会话发送普通私信消息。GroupApi.sendMessage(String bot_id, String group_id, String content, String msg_id) 用于向 QQ群发送消息MessageApi.sendMessage(String bot_id, String channel_id, String content, String image_Url, String msg_id, String event_id) 用于向 channel_id 指定的子频道发送消息。DMS_Api.sendReferenceMessage(String bot_id, String guild_id, String content, MessageReference reference) 发送私信引用消息 用于向 guild_id 指定的私信会话发送引用私信消息。MessageApi.sendReferenceMessage(String bot_id, String channel_id, String content, MessageReference reference) 发送引用消息C2CApi.sendRichMediaMessage(String bot_id, String user_id, String content, String event_id, Integer file_type, String url, Boolean srv_send_msg) 用于发送QQ好友发送富文本消息GroupApi.sendRichMediaMessage(String bot_id, String group_id, String content, String event_id, Integer file_type, String url, Boolean srv_send_msg) 用于发送QQ群发送富文本消息