Chuyển tới nội dung chính

sendSticker

API cho phép Bot của bạn gửi tin nhắn Sticker đến người dùng hoặc các cuộc trò chuyện.

  • URL: https://bot-api.zaloplatforms.com/bot${BOT_TOKEN}/sendSticker
  • Method: POST
  • Response Type: application/json

Sample code

const axios = require('axios');

const entrypoint = `https://bot-api.zaloplatforms.com/bot${BOT_TOKEN}/sendSticker`;
const response = await axios.post(entrypoint, { chat_id: 'abc.xyz', sticker: '0e078a2fb66a5f34067b'});

Parameters

TrườngKiểu dữ liệuBắt buộcMô tả
chat_idStringtrueID của người nhận hoặc cuộc trò chuyện
stickerStringtrueTruyền vào stricker lấy từ nguồn: https://stickers.zaloapp.com/. Vui lòng xem video hướng dẫn tại đây: https://vimeo.com/649330161

Sample response

{
"ok": true,
"result": {
"message_id": "82599fa32f56d00e8941",
"date": 1749632637199
}
}