(msg: Api.Message, command: string)
| 257 | |
| 258 | type QuoteUser = { |
| 259 | id: number; |
| 260 | name: string | false; |
| 261 | first_name: string | false; |
| 262 | photo: Record<string, never>; |
| 263 | emoji_status?: any; |
| 264 | }; |
| 265 | |
| 266 | function generateRandomColor(): string { |
| 267 | return `#${Math.floor(Math.random() * 0xffffff).toString(16).padStart(6, "0")}`; |
| 268 | } |
| 269 | |
| 270 | function getCommandArgsText(msg: Api.Message, command: string): string { |
| 271 | const raw = ((msg as any).message || (msg as any).text || "") as string; |