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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5066fb938778b8b6a9c5076efb6dfaf2e67c2878418eebd6e2970565ab8ed53 |
|
MD5 | db7d8ac747b9f7327e1a5a0504a536fe |
|
BLAKE2b-256 | d0ff9d00af1d39ac598bd39c44194a55a3d1eb055e4b7517ef9cdd25807cae16 |
Close
Hashes for nonebot_plugin_sendmsg_by_bots-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04f455983e9f7ac26b9bcb2dd725020396eada78a7a68b97c405ea80bd2fed03 |
|
MD5 | 782e0891280f73c7a7c6fff87fd0c004 |
|
BLAKE2b-256 | 3193a397f16e30175395993b88a09d9934d24ccce177a4d283421975b3ab10b9 |