create AskQuestion callback
This commit is contained in:
parent
aa32d73046
commit
955dde825b
11
src/main.rs
11
src/main.rs
@ -84,6 +84,7 @@ pub enum Callback {
|
||||
ProjectPage { id: u32 },
|
||||
GoHome,
|
||||
LeaveApplication,
|
||||
AskQuestion, // Add this line for the new callback
|
||||
}
|
||||
|
||||
type CallbackStore = CallbackInfo<Callback>;
|
||||
@ -377,6 +378,16 @@ async fn callback_handler(bot: Bot, mut db: DB, q: CallbackQuery) -> BotResult<(
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
Callback::AskQuestion => {
|
||||
answer_message(
|
||||
&bot,
|
||||
q.from.id.0 as i64,
|
||||
&mut db,
|
||||
"ask_question_msg",
|
||||
None as Option<InlineKeyboardMarkup>,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
};
|
||||
|
||||
Ok(())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user