buttons fix
All checks were successful
fetch npm modules / f0ck the f0cker (push) Successful in 37s

This commit is contained in:
Flummi
2023-05-02 02:27:35 +02:00
parent 85d683ca31
commit 8e02892df0
3 changed files with 23 additions and 8 deletions

View File

@@ -209,8 +209,8 @@ export default async bot => {
await e.reply(outputmsgtg, {
reply_markup: JSON.stringify({
inline_keyboard: [[
{ text: 'sfw', callback_data: `b_sfw:${itemid}` },
{ text: 'nsfw', callback_data: `b_nsfw:${itemid}` },
{ text: (await lib.hasTag(itemid, 1) ? '✓ ' : '') + 'sfw', callback_data: `b_sfw:${itemid}` },
{ text: (await lib.hasTag(itemid, 2) ? '✓ ' : '') + 'nsfw', callback_data: `b_nsfw:${itemid}` },
{ text: 'tags', callback_data: `b_tags:${itemid}` },
{ text: '❌ delete', callback_data: `b_delete:${itemid}` }
], [