-
Notifications
You must be signed in to change notification settings - Fork 1
Tin Nhắn
ardennguyen edited this page Jul 1, 2026
·
4 revisions
| Lệnh | Mô tả |
|---|---|
msg send <threadId> <text> [-t 0|1] [--md] [--style specs...] |
Gửi tin nhắn văn bản |
msg send-image <threadId> <paths...> [-t 0|1] [-m caption] |
Gửi hình ảnh |
msg send-file <threadId> <paths...> [-t 0|1] [-m caption] |
Gửi file |
msg send-card <threadId> <userId> [-t 0|1] [--phone NUM] |
Gửi danh thiếp liên hệ |
msg send-bank <threadId> <accountNum> -b BANK [-n name] [-t 0|1] |
Gửi thẻ chuyển khoản |
msg send-qr-transfer <threadId> <accountNum> -b BANK [-a amount] [-m content] [--template tpl] |
Gửi VietQR chuyển khoản |
msg send-voice <threadId> <voiceUrl> [-t 0|1] [--ttl ms] |
Gửi tin nhắn thoại từ URL |
msg send-link <threadId> <url> [-m caption] [-t 0|1] |
Gửi link kèm xem trước |
msg send-video <threadId> <videoUrl> --thumb <url> [-m caption] [-d ms] [-W px] [-H px] |
Gửi video từ URL |
msg sticker <threadId> <keyword> [-t 0|1] |
Tìm và gửi nhãn dán |
msg sticker-list <keyword> |
Tìm nhãn dán (trả về danh sách ID) |
msg sticker-detail <stickerIds...> |
Xem chi tiết nhãn dán |
msg sticker-category <categoryId> |
Xem danh mục nhãn dán |
msg react <msgId> <threadId> <emoji> [-t 0|1] |
Thả cảm xúc tin nhắn |
msg delete <msgId> <threadId> [-t 0|1] |
Xóa tin nhắn |
msg forward <msgId> <threadId> [-t 0|1] |
Chuyển tiếp tin nhắn |
msg history <threadId> [-n limit] [-t 0|1] [--no-cache] [--reverse] |
Lịch sử tin nhắn (cache-first; --no-cache fetch live + backfill; --reverse hiển thị mới nhất trước) |
msg search <query> [-t threadId] [-n limit] |
Tìm kiếm toàn văn bản trong cache (FTS5, offline) |
zalo-agent msg send <threadId> "**Đậm** *Nghiêng* __Gạch dưới__ ~~Gạch ngang~~ {red:Đỏ} {big:TO}" --md| Cú pháp | Kiểu |
|---|---|
**text** |
Đậm |
*text* |
Nghiêng |
__text__ |
Gạch dưới |
~~text~~ |
Gạch ngang |
{red:text} |
Màu đỏ |
{orange:text} |
Màu cam |
{yellow:text} |
Màu vàng |
{green:text} |
Màu xanh lá |
{big:text} |
Cỡ chữ lớn |
{small:text} |
Cỡ chữ nhỏ |
# Định dạng: start:len:style
zalo-agent msg send <threadId> "Hello World" --style 0:5:bold 6:5:italicMã cảm xúc: :> (haha), /-heart (tim), /-strong (thích), :o (wow), :-(( (khóc), :-h (tức giận)
zalo-agent msg react <msgId> <threadId> "/-heart"# Đọc từ cache (nhanh nếu listen/mcp start đang chạy)
zalo-agent msg history <threadId>
# Fetch live từ Zalo + backfill cache
zalo-agent msg history <threadId> --no-cache
# Hiển thị tin nhắn mới nhất trước (mặc định: cũ → mới theo thứ tự chat)
zalo-agent msg history <threadId> --no-cache --reverse
# Tìm kiếm toàn văn bản trong tất cả tin nhắn đã có trong cache
zalo-agent msg search "sinh nhật"
zalo-agent msg search "họp" -t <threadId> # Chỉ trong một thread