From 6af01f18c2bb4f641d85d4b3caa00b4e2e842a77 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Wed, 22 Feb 2023 15:57:02 -0800 Subject: create oauth app before user login --- bot.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'bot.py') diff --git a/bot.py b/bot.py index 6198bc4..3b45906 100644 --- a/bot.py +++ b/bot.py @@ -85,10 +85,7 @@ class FediLoginCallbackContext(CallbackContext[ExtBot, dict, dict, dict]): async def process_oauth_login_callback(update: FediLoginCallbackUpdate, context: FediLoginCallbackContext) -> None: - combined_payloads = update.code - text = "Login success, your code is: {}".format(combined_payloads) - print(text) - print(update.state) + text = "Login success, your OAuth code is: {}".format(update.code) await context.bot.send_message(chat_id=update.state, text=text) -- cgit v1.2.3