diff --git a/bot.py b/bot.py index db4c2d0..7b89a2a 100644 --- a/bot.py +++ b/bot.py @@ -422,25 +422,9 @@ def error(update: Update, context: CallbackContext): f"
{html.escape(tb_string)}" ) -<<<<<<< HEAD - message = ( - f"An exception was raised while handling an update\n" - f"
update = {html.escape(json.dumps(update.to_dict(), indent=2, ensure_ascii=False))}" - "\n\n" - f"
context.chat_data = {html.escape(str(context.chat_data))}\n\n" - f"
context.user_data = {html.escape(str(context.user_data))}\n\n" - f"
{html.escape(tb_string)}" - ) - - # Finally, send the message - print(message) - # update.message.reply_text(text=message, parse_mode=telegram.ParseMode.HTML) - # update.message.reply_text(text="Please inform the bot admin of this issue.") -======= # Finally, send the message update.message.reply_text(text=message, parse_mode=telegram.ParseMode.HTML) update.message.reply_text(text="Please inform the bot admin of this issue.") ->>>>>>> crypto def main():