From 8e4ecb04ece93813a742e24d4e4e4623d2e699a7 Mon Sep 17 00:00:00 2001 From: Ekaropolus Date: Thu, 29 May 2025 23:56:06 -0600 Subject: [PATCH] text for digital twin --- pxy_bots/handlers.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pxy_bots/handlers.py b/pxy_bots/handlers.py index 7f5d51f..5bd8e51 100644 --- a/pxy_bots/handlers.py +++ b/pxy_bots/handlers.py @@ -33,26 +33,26 @@ async def help_command(update: Update): user = update.effective_user await update.message.reply_text(f"Help! How can I assist you, {user.first_name}?") - async def handle_location(update: Update): """Respond to a location message.""" location = update.message.location if location: - await update.message.reply_text( - message = ( + lat = location.latitude + lon = location.longitude + text = ( "🚀 Your Digital Twin is ready!\n\n" - f"🌍 Latitude: {location.latitude}\n" - f"🌍 Longitude: {location.longitude}\n\n" - f"🔗 Access it here:\n" - f"https://app.polisplexity.tech/city/digital/twin/com_con/?lat={location.latitude}&long={location.longitude}\n\n" - "Thanks for sharing your location!" - ) - - ) + f"🌍 Latitude: {lat}\n" + f"🌍 Longitude: {lon}\n\n" + "🔗 Access it here:\n" + f"https://app.polisplexity.tech/city/digital/twin/com_con/?lat={lat}&long={lon}\n\n" + "Thanks for sharing your location!") + await update.message.reply_text(text) else: await update.message.reply_text("Please share your location.") + + async def respond(update, bot_name): """Respond to user messages using the LangChain AI service.""" try: