a send msg tools
Project description
📖 介绍
让连接的每个bot发送消息,如无好友或群则跳过
💿 安装
使用 pip 安装
pip install nonebot-plugin-sendmsg-by-bots
使用 conda 安装
conda install nonebot-plugin-sendmsg-by-bots
🎉 使用
指令表
from nonebot_plugin_sendmsg_by_bots import tools
# 发送群消息:
await tools.send_group_msg_by_bots(group_id: int,node_msg: Message|MessageSegment|str)
# 发送群合并消息:
await tools.send_group_forward_msg_by_bots(group_id: int,node_msg: list)
# 发送私聊消息:
await tools.send_private_msg_by_bots(user_id: int,msg: Message|MessageSegment|str)
# 发送私聊合并消息:
await tools.send_private_forward_msg_by_bots(user_id: int,msg: list)
# group_id : 群号
# user_id : 好友qq号
# node_msg : 合并转发消息列表
# msg : 消息
# 发送成功会返回True,否则会返回False
# 从所有bot的群列表检索群信息
# 未检索到会返回 {"group_name":"未获取到群名","group_id":group_id}
group_info = await tools.get_all_group_info(group_id:int)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot-plugin-sendmsg-by-bots-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01c2b6f35c2fd17b7c71808d5f3bb008bf52f759484980c6cfcef5522e12dcfc |
|
MD5 | 1260e3d1d8b2fd192c9ed620493c65b5 |
|
BLAKE2b-256 | 9f21c9b01ce1f8d59f26b8a5ce0a857cdb09dca16975b117a02813cda337e038 |
Close
Hashes for nonebot_plugin_sendmsg_by_bots-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2839f13b253349145b9800bf27f763ec864da6f652658c4b9e16008d8ad5b8aa |
|
MD5 | 75fb2f9182d9fbf989b2bbad8a9680c0 |
|
BLAKE2b-256 | 0185a6ad4b28e523ad57f3aab4e17ff557622577f1bef685200f8c21cce2a3d9 |