playing with regexes

This commit is contained in:
2023-10-21 15:23:05 +02:00
parent d40afca1a4
commit 6b63276dd7
3 changed files with 13 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
import os
from telegram.ext import ConversationHandler, CommandHandler, MessageHandler, filters, CallbackQueryHandler, CallbackContext
from telegram import InlineKeyboardButton, InlineKeyboardMarkup, Update, InputMediaPhoto
from telegram.constants import ParseMode
# ACTION_CHOICE, DATE_ENTRY, ADD_CONTENT = range(3)
MEMORY_CHOICE = range(1)
@@ -81,7 +82,8 @@ class MemoryHandler(BaseHandler):
await query.edit_message_text(
f"On {chosen_match.date_pretty}, "
f"{chosen_match.author} wrote: \n"
f"{chosen_match.text}"
f"{chosen_match.spoiler_text}",
parse_mode=ParseMode.HTML
)
return ConversationHandler.END