📖 介绍
让连接的每个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)
# 发送群消息(只发成功一次)(self_id 可选,选了之后指定哪个id的bot账号发送):
await tools.send_group_msg_by_bots_once(group_id: int,node_msg: Message|MessageSegment|str,self_id: Optional[str] = None)
# 发送群合并消息(能发都发):
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,self_id: Optional[str] = None)
# 发送私聊消息(能发都发):
await tools.send_private_msg_by_bots(user_id: int,msg: Message|MessageSegment|str)
# 发送私聊消息(只发成功一次收手):
await tools.send_private_msg_by_bots_once(user_id: int,msg: Message|MessageSegment|str,self_id: Optional[str] = None)
# 发送私聊合并消息(能发都发):
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: lis,self_id: Optional[str] = Nonet)
# 被动回复消息,以拉格兰md形式发送
await tools.send_text2md(text: str):
# group_id : 群号
# user_id : 好友qq号
# node_msg : 合并转发消息列表
# msg : 消息
# 发送成功会返回True,否则会返回False
# 发送合并消息,超过200条会自动转多条发送
# 从所有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)
Metadata
Release files for nonebot-plugin-sendmsg-by-bots 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot-plugin-sendmsg-by-bots-0.2.0.tar.gz | 4.6 kB | Without provenance | Details for nonebot-plugin-sendmsg-by-bots-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_sendmsg_by_bots-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_sendmsg_by_bots-0.2.0-py3-none-any.whl |
Total release size: 10.9 kB
Release files / nonebot-plugin-sendmsg-by-bots-0.2.0.tar.gz
| Download URL | nonebot-plugin-sendmsg-by-bots-0.2.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8757e4846315bdb2fc84f1d6cbb53daff559c9fc16d6f1d387de9b6925c520d5
|
|
BLAKE2b-256 checksum How to use checksums |
96850c17b0b1ea7485c40342161f18eb9964fe1dfddccf3bdc34d434ca7e01a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / nonebot_plugin_sendmsg_by_bots-0.2.0-py3-none-any.whl
| Download URL | nonebot_plugin_sendmsg_by_bots-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28a7678656a987f6624547391010d1fd70cb9a7108877fdfc347acbda87c0311
|
|
BLAKE2b-256 checksum How to use checksums |
2fafb6864c475ee25967b1000103efc2d150e8a00cbd16a693e86d1920a5b032
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for nonebot-plugin-sendmsg-by-bots 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.