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
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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a98f518dff96912435353e6e0f98d066fd563efab1b4ddf619476fd8e62708f |
|
MD5 | 7984b54ab792e93cce30421c18a46c6a |
|
BLAKE2b-256 | da09946eeab95331ed8370ff6f1a7f6232eabff83f8665b12d91668daa11b8c8 |
Close
Hashes for nonebot_plugin_sendmsg_by_bots-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75abda2249e09fe2aec4b2995d1f4e5b95f33ec93d3f8967fa16135f8d91f664 |
|
MD5 | a921753ee9d3fb7086657f3d250256a5 |
|
BLAKE2b-256 | 622f8de598dbf211ed3e4971ca019f8e930968d3db6021b7f6f0a7047bc72e3b |