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_group_forward_msg_by_bots_once(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)
# 发送私聊合并消息(一次收手):
await tools.send_private_forward_msg_by_bots_once(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)
# 从所有bot的群列表检索群成员列表
member_list = await get_group_member_list(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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d177c2d10572896765be7295bdc760cce9ccaec5dcfec5d4a97ce7657013a557 |
|
MD5 | bff76ca555c6833531924f6c7fdd5e7b |
|
BLAKE2b-256 | 9a4a555337f42e6ef13049cc1322fe7cbe707b47d149e0d4a5e15451d9a8f937 |
Close
Hashes for nonebot_plugin_sendmsg_by_bots-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf828f330fc11e812da309b46403b48853950349044f0aaf10ae0efb5c6f151d |
|
MD5 | cef74582b8012594c2f3343fe71fb32b |
|
BLAKE2b-256 | ab6f8b66d0788477b744da88bead34dcf7162dd0b7f7623edf623bfd003ad1dd |