switch buttons

This commit is contained in:
bakatrouble 2023-09-08 03:21:37 +03:00
parent 1cab901188
commit d7b01d68f6

View File

@ -87,8 +87,8 @@ async def send_post(post: E621Post, tag_list: List[str]):
mp4_path.unlink() mp4_path.unlink()
elif post.file.ext in ('png', 'jpg'): elif post.file.ext in ('png', 'jpg'):
markup = InlineKeyboardMarkup(inline_keyboard=[[ markup = InlineKeyboardMarkup(inline_keyboard=[[
InlineKeyboardButton(text='Safe', callback_data='send pics'),
InlineKeyboardButton(text='NSFW', callback_data='send nsfw'), InlineKeyboardButton(text='NSFW', callback_data='send nsfw'),
InlineKeyboardButton(text='Safe', callback_data='send pics'),
]]) ]])
# if post.file.size > 10000000: # if post.file.size > 10000000:
logging.warning('compressing') logging.warning('compressing')