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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11b669ecc1bff137374e320695c3fc6359e1cc41cef7650a27099c14c0ede158 |
|
MD5 | 009326818ff3eccd63b65e5537784e2a |
|
BLAKE2b-256 | 37051648cbe631d110ea3aca70437e49b22420db6a321f041b0fcfd5cc0f35c5 |
Close
Hashes for nonebot_plugin_sendmsg_by_bots-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e936d1be61fd4bda70f07c1b599a21a00cb19f27158ef9d47c2ffeab9de4e47 |
|
MD5 | 01b7915c2845b5881a4b11d297068b2c |
|
BLAKE2b-256 | d8e85530cbdcc485a0fecabb199e266799c15e2e0aedb5a65ccdb61235ab59bf |