Switched to teloxide 0.13
This commit is contained in:
@@ -3,7 +3,7 @@ use teloxide::{dispatching::DpHandlerDescription, dptree::Handler};
|
||||
|
||||
#[allow(clippy::needless_pass_by_value)]
|
||||
fn has_no_user_info(msg: Message) -> bool {
|
||||
msg.from().is_none()
|
||||
msg.from.is_none()
|
||||
}
|
||||
|
||||
async fn notify_about_no_user_info(
|
||||
|
@@ -14,7 +14,7 @@ type DynError = Arc<dyn std::error::Error + Send + Sync>;
|
||||
/// Returns None if account exists, Some(None) if there's an account and Some(Some(DynError)) if an error occures.
|
||||
/// The String represents the error that occured
|
||||
async fn master_pass_exists(update: Update, db: Pool) -> Option<Option<DynError>> {
|
||||
let user_id = match update.user() {
|
||||
let user_id = match update.from() {
|
||||
Some(user) => user.id.0,
|
||||
None => return Some(Some(Arc::new(NoUserInfo))),
|
||||
};
|
||||
|
Reference in New Issue
Block a user