跳到文档正文

慈善项目事件

在设置中开启慈善项目提醒,并接收实时 charity/added 事件。

运行五分钟快速开始
在聊天中打开
按产品代码校对:2026年9月2日

charity/added

慈善项目事件仅实时发送。使用消息信封 id 忽略完全相同的重放。

慈善项目新增类型

typescript
type CharityAddedEvent = {
  id: string;
  name: string;
  slug: string;
  enabled: boolean;
  taxId?: string;
  location?: {
    city?: string;
    state?: string;
    country?: string;
  };
  observedAt: number;
};

慈善项目新增事件

json
{
  "v": 1,
  "t": "charity",
  "op": "added",
  "id": "4ffccf6e-66d4-555a-af5d-ceb36c10e3f0",
  "ts": 1772000001060,
  "d": {
    "id": "4ffccf6e-66d4-555a-af5d-ceb36c10e3f0",
    "name": "Council on Foreign Relations",
    "slug": "council-on-foreign-relations",
    "enabled": true,
    "taxId": "13-1628168",
    "location": {
      "city": "New York City",
      "state": "NY",
      "country": "US"
    },
    "observedAt": 1772000001060
  }
}