(msg: Api.Message)
| 496 | function asBigInt(value: any): bigint | undefined { |
| 497 | if (value === undefined || value === null) return undefined; |
| 498 | try { return BigInt(value.value ?? value); } catch (_) { return undefined; } |
| 499 | } |
| 500 | |
| 501 | function idNumber(value: any): number { |
| 502 | const raw = value?.value ?? value; |
| 503 | if (typeof raw === "bigint") return Number(raw); |
| 504 | if (typeof raw === "number") return raw; |
nothing calls this directly
no test coverage detected