diff options
author | clarkzjw <[email protected]> | 2023-02-22 15:57:02 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-23 12:07:32 -0800 |
commit | 6af01f18c2bb4f641d85d4b3caa00b4e2e842a77 (patch) | |
tree | 337cb8f963e3e5367e52d93efceb65539196b8a6 /bot.py | |
parent | ae99c2d7237021e2abb20d4b41a24e0b73028519 (diff) | |
download | swarm2fediverse-6af01f18c2bb4f641d85d4b3caa00b4e2e842a77.tar.gz |
create oauth app before user login
Diffstat (limited to 'bot.py')
-rw-r--r-- | bot.py | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -85,10 +85,7 @@ class FediLoginCallbackContext(CallbackContext[ExtBot, dict, dict, dict]): | |||
85 | 85 | ||
86 | 86 | ||
87 | async def process_oauth_login_callback(update: FediLoginCallbackUpdate, context: FediLoginCallbackContext) -> None: | 87 | async def process_oauth_login_callback(update: FediLoginCallbackUpdate, context: FediLoginCallbackContext) -> None: |
88 | combined_payloads = update.code | 88 | text = "Login success, your OAuth code is: {}".format(update.code) |
89 | text = "Login success, your code is: {}".format(combined_payloads) | ||
90 | print(text) | ||
91 | print(update.state) | ||
92 | await context.bot.send_message(chat_id=update.state, text=text) | 89 | await context.bot.send_message(chat_id=update.state, text=text) |
93 | 90 | ||
94 | 91 | ||