---
title: "慈善项目事件"
canonical_url: "https://tweetstream.io/zh-cn/docs/charity"
last_updated: 2026-09-24
---

# 慈善项目事件

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

Canonical URL: https://tweetstream.io/zh-cn/docs/charity

## 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
  }
}
```
