Introduced GetUserExt

This commit is contained in:
2024-08-17 18:35:29 +03:00
parent 374a9d91c7
commit 659965a744
19 changed files with 38 additions and 19 deletions

View File

@@ -6,7 +6,7 @@ pub async fn menu(
db: Pool,
locale: LocaleRef,
) -> crate::Result<()> {
let user_id = msg.from.as_ref().ok_or(NoUserInfo)?.id.0;
let user_id = msg.get_user_id()?;
let markup = menu_markup("get", user_id, &db).await?;