(stickersBot: any, statusMsg: Api.Message)
| 405 | } |
| 406 | } |
| 407 | |
| 408 | private async handleStickerBotInteraction(stickersBot: any, statusMsg: Api.Message): Promise<void> { |
| 409 | // 等待机器人的回复 |
| 410 | await this.sleep(3000); |
| 411 | |
| 412 | // 发送命令创建或添加到贴纸包 |
| 413 | await statusMsg.edit({ text: "📝 正在创建/更新贴纸包..." }); |
| 414 | |
| 415 | // 发送 /addsticker 命令 |
| 416 | await this.client.sendMessage(stickersBot, { |
| 417 | message: `/addsticker` |
| 418 | }); |
| 419 | |
| 420 | await this.sleep(2000); |
| 421 | |
| 422 | // 发送贴纸包名称 |
| 423 | await this.client.sendMessage(stickersBot, { |
| 424 | message: this.config.defaultStickerPackName |
| 425 | }); |
| 426 | |
| 427 | await this.sleep(2000); |
| 428 | |
| 429 | // 发送表情 |
| 430 | await this.client.sendMessage(stickersBot, { |
| 431 | message: this.config.defaultEmoji |
| 432 | }); |
| 433 | |
| 434 | await statusMsg.edit({ text: "✨ 贴纸包操作完成!" }); |
| 435 | } |
| 436 | |
| 437 | private getRandomEmoji(): string { |
no test coverage detected