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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb11a04a8024bbb6b04b941b5aaa7cc72a66f9f1a547913d645d35d15711b725 |
|
MD5 | f16557cbfadc73815ced05464f754dec |
|
BLAKE2b-256 | b31fd11e6f82c4eee51eb12e55ef8a13759f673bd7996ad29a80b7c418666f86 |
Close
Hashes for nonebot_plugin_sendmsg_by_bots-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c44558c8ec2b1b06541bdb3124e92b6a4fe6ba7164e2568dd1db3c7d32fe646 |
|
MD5 | ce003d7dbfa26831209e00257ae0cf54 |
|
BLAKE2b-256 | 5811c02e1f9782c711405c99bfc061c4d5807ebc35cb64f772c0aa439cb4ed16 |