aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-23 00:13:47 -0800
committerclarkzjw <[email protected]>2023-02-23 12:07:32 -0800
commit770cd0ec5eb556d912bd9d200b2da76c7e3bd7c8 (patch)
tree11cc26af821ea2b7e97c623aedfe51c487559f0e /callback.py
parent5402e3a2e9df24a883e2e20dfae6c92f11b8d499 (diff)
downloadswarm2fediverse-770cd0ec5eb556d912bd9d200b2da76c7e3bd7c8.tar.gz
bot: fix login flow
Diffstat (limited to 'callback.py')
-rw-r--r--callback.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/callback.py b/callback.py
index 23b814b..d968523 100644
--- a/callback.py
+++ b/callback.py
@@ -97,10 +97,11 @@ async def callback_generate_fedi_login_url(update: Update, context: ContextTypes
97 scopes=BOT_SCOPE, 97 scopes=BOT_SCOPE,
98 state=state) 98 state=state)
99 99
100 await update.message.reply_text(PROMPT_FEDI_LOGIN, 100 msg = await update.message.reply_text(PROMPT_FEDI_LOGIN,
101 reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("Login", url=oauth_url)]]), 101 reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("Login", url=oauth_url)]]),
102 parse_mode=ParseMode.MARKDOWN) 102 parse_mode=ParseMode.MARKDOWN)
103 103
104 context.user_data[PROMPT_FEDI_LOGIN] = msg.message_id
104 return FEDI_LOGIN 105 return FEDI_LOGIN
105 106
106 107
Powered by cgit v1.2.3 (git 2.41.0)