(raw?: string)
| 183 | } |
| 184 | return minutes; |
| 185 | } |
| 186 | |
| 187 | function formatDuration(minutes: number): string { |
| 188 | return `${minutes} 分钟`; |
| 189 | } |
| 190 | |
| 191 | function getReplyToMsgId(msg: Api.Message, trigger?: Api.Message): number | undefined { |
| 192 | return trigger?.id || msg.id; |
| 193 | } |
| 194 | |
| 195 | function getChatKey(chatEntity: any, msg: Api.Message): string { |