(20241206) Webhook setup for Telegram.

This commit is contained in:
2024-12-06 10:43:02 +05:30
parent c260529ef2
commit ebe456a8fe
+1 -1
View File
@@ -221,7 +221,7 @@ async def callback_test(
# print("TG BOT:", json.to_string(client_response)) # print("TG BOT:", json.to_string(client_response))
client_response = await set_telegram_webhook( client_response = await set_telegram_webhook(
bot_token = inbound_data.auth.botToken, bot_token = inbound_data.auth.botToken,
webhook_url = r"https://nexcom.ditscentre.in/test/callback" webhook_url = f"https://nexcom.ditscentre.in/chat/webhook/{inbound_data.auth.botToken}"
) )
return "ok" return "ok"