Switched to teloxide 0.13
This commit is contained in:
@@ -6,7 +6,7 @@ pub async fn menu(
|
||||
db: Pool,
|
||||
locale: LocaleRef,
|
||||
) -> crate::Result<()> {
|
||||
let user_id = msg.from().ok_or(NoUserInfo)?.id.0;
|
||||
let user_id = msg.from.as_ref().ok_or(NoUserInfo)?.id.0;
|
||||
|
||||
let markup = menu_markup("get", user_id, &db).await?;
|
||||
|
||||
|
Reference in New Issue
Block a user