create AskQuestion callback

This commit is contained in:
Akulij 2025-05-02 17:20:09 +03:00
parent aa32d73046
commit 955dde825b

View File

@ -84,6 +84,7 @@ pub enum Callback {
ProjectPage { id: u32 }, ProjectPage { id: u32 },
GoHome, GoHome,
LeaveApplication, LeaveApplication,
AskQuestion, // Add this line for the new callback
} }
type CallbackStore = CallbackInfo<Callback>; type CallbackStore = CallbackInfo<Callback>;
@ -377,6 +378,16 @@ async fn callback_handler(bot: Bot, mut db: DB, q: CallbackQuery) -> BotResult<(
) )
.await?; .await?;
} }
Callback::AskQuestion => {
answer_message(
&bot,
q.from.id.0 as i64,
&mut db,
"ask_question_msg",
None as Option<InlineKeyboardMarkup>,
)
.await?;
}
}; };
Ok(()) Ok(())