codedao12 - Zalo User icon

codedao12 - Zalo User

Tổng hợp chức năng gửi tin nhắn, quản lý user, group, cài đặt

Actions104

Message → Tin nhắn: Gửi danh thiếp

AI-generated

Summary

Send a contact card message via Zalo to a specified user or group chat with optional custom credential usage.

Inputs

  • useSession — Choose whether to use custom credential (session) for authentication; enables selecting a login account by userID or phone number.
  • connectToId (required) — Select the Zalo account (userID or phone) to be used for sending the message when custom credential is enabled.
  • threadType (required) — Specify the type of conversation to send the contact card to: user (private chat) or group.
  • threadId (required) — The ID of the user or group conversation thread where the contact card will be sent.
  • cardPhoneNumber — Optional phone number to include with the contact card.
  • ttl — Time To Live in seconds for how long the message should exist; 0 means the message is permanent.

Output shape

The operation returns the result of the send card message API call, typically including message metadata indicating success or failure.

Authentication depends on whether custom credential is used; the operation requires valid session or credential. The threadId and threadType define the recipient conversation target.

Examples

Example 1: Send a contact card from a specified Zalo user account to a private user by their threadId, including optional phone number and permanent message (ttl=0).

Set useSession to true or false depending on credential management, supply threadType (0 for user), provide valid threadId, optionally include cardPhoneNumber, and optionally specify ttl.

Links

Discussion