random delay between min and max ms
(min: number, max: number)
| 37 | |
| 38 | const peelChatId = (id: any) => String(typeof id === "bigint" ? id.toString() : id).replace(/^-100/, ""); |
| 39 | |
| 40 | /** getEntity 返回的 Entity 联合类型上并非所有变体都有 username/title 等字段 */ |
| 41 | type EntityFields = { |
| 42 | id?: unknown; |
| 43 | username?: string; |
| 44 | title?: string; |
| 45 | firstName?: string; |