新增小红书、XMPP、元宝、Zalo 四个渠道扩展。 小红书渠道扩展主要模块:config, gateway, webhook, outbound, streaming, pairing, security, dedupe, media, status, window XMPP 渠道扩展主要模块:plugin, config, gateway, outbound, streaming, pairing, security, dedupe, accounts, commands, muc, rate_limiter, stanza_utils, status, monitor 元宝渠道扩展主要模块:plugin, client, config_schema, gateway, outbound(chunk/queue/transport), inbound(dispatcher), streaming, pairing, security, accounts, actions, commands, codec(biz/conn), session, shared, utils Zalo 渠道扩展主要模块:api, config, gateway, webhook, outbound, pairing, security, session, polling, monitor, status
22 lines
410 B
Python
22 lines
410 B
Python
from __future__ import annotations
|
|
|
|
import logging
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
async def send_sticker(
|
|
send_fn,
|
|
target_id: str,
|
|
sticker_id: str,
|
|
reply_to_id: str | None = None,
|
|
) -> None:
|
|
msg = {
|
|
"msgType": "sticker",
|
|
"targetId": target_id,
|
|
"stickerId": sticker_id,
|
|
}
|
|
if reply_to_id:
|
|
msg["replyToId"] = reply_to_id
|
|
await send_fn(msg)
|