Update
This commit is contained in:
@@ -26,6 +26,7 @@ export class SqsPostService {
|
|||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
this.logger.error(`SqsPostService -> K tim thay username=${username} `);
|
this.logger.error(`SqsPostService -> K tim thay username=${username} `);
|
||||||
|
throw new Error(`Khong tim thay queue username=${username}`);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -131,12 +131,13 @@ export class TelegramUpdates {
|
|||||||
await this.sharedAutoComment(ctx, payload, 'realflashkaze');
|
await this.sharedAutoComment(ctx, payload, 'realflashkaze');
|
||||||
}
|
}
|
||||||
|
|
||||||
@Action(/action_auto_comment_(.+)/)
|
@Action(/action_auto_comment-(.+)/)
|
||||||
async onDownloadAction(@Ctx() ctx: Context) {
|
async onDownloadAction(@Ctx() ctx: Context) {
|
||||||
await ctx.answerCbQuery(); // Tắt trạng thái loading trên nút bấm
|
await ctx.answerCbQuery(); // Tắt trạng thái loading trên nút bấm
|
||||||
|
|
||||||
const callbackData = (ctx.callbackQuery as any).data;
|
// @ts-ignore
|
||||||
const accountX = callbackData.split('_')[1];
|
const callbackData = ctx.callbackQuery.data as any;
|
||||||
|
const accountX = callbackData.split('-')[1];
|
||||||
|
|
||||||
// Ép kiểu để ép TypeScript nhận diện đúng đối tượng tin nhắn chữ
|
// Ép kiểu để ép TypeScript nhận diện đúng đối tượng tin nhắn chữ
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
@@ -962,8 +963,8 @@ export class TelegramUpdates {
|
|||||||
reply_markup: {
|
reply_markup: {
|
||||||
inline_keyboard: [
|
inline_keyboard: [
|
||||||
[
|
[
|
||||||
{text: '📥 Chạy lệnh auto cmt flashkaze', callback_data: 'action_auto_comment_realflashkaze'},
|
{text: '📥 Cmt realflashkaze', callback_data: 'action_auto_comment-realflashkaze'},
|
||||||
{text: '📥 Chạy lệnh auto cmt ech com', callback_data: 'action_auto_comment_echcomvuive'}
|
{text: '📥 Cmt echcomvuive', callback_data: 'action_auto_comment-echcomvuive'}
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user