MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / parseDurationMinutes

Function parseDurationMinutes

tmp_admin/tmp_admin.ts:185–192  ·  view source on GitHub ↗
(raw?: string)

Source from the content-addressed store, hash-verified

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

Callers 1

addTemporaryAdminMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected