From 7f6d2c28010c0b998e717db5a0964ba0bee0a66a Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Fri, 1 Jul 2022 23:10:00 +0400 Subject: [PATCH] Update teloxide-core to master Former-commit-id: c129b6a53dff921adcc8cc3d60eb15032980624a --- Cargo.toml | 3 ++- src/utils/html.rs | 4 ++++ src/utils/markdown.rs | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a4ece2c9..2ae8da8b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -56,7 +56,8 @@ full = [ ] [dependencies] -teloxide-core = { version = "0.6.0", default-features = false } +#teloxide-core = { version = "0.6.0", default-features = false } +teloxide-core = { git = "https://github.com/teloxide/teloxide-core", rev = "b13393d", default-features = false } teloxide-macros = { version = "0.6.2", optional = true } serde_json = "1.0" diff --git a/src/utils/html.rs b/src/utils/html.rs index 11ae475d..dc655fbf 100644 --- a/src/utils/html.rs +++ b/src/utils/html.rs @@ -191,6 +191,8 @@ mod tests { last_name: None, username: Some("abcd".to_string()), language_code: None, + is_premium: false, + added_to_attachment_menu: false, }; assert_eq!(user_mention_or_link(&user_with_username), "@abcd"); let user_without_username = User { @@ -200,6 +202,8 @@ mod tests { last_name: None, username: None, language_code: None, + is_premium: false, + added_to_attachment_menu: false, }; assert_eq!( user_mention_or_link(&user_without_username), diff --git a/src/utils/markdown.rs b/src/utils/markdown.rs index c07d53d9..4419feb9 100644 --- a/src/utils/markdown.rs +++ b/src/utils/markdown.rs @@ -240,6 +240,8 @@ mod tests { last_name: None, username: Some("abcd".to_string()), language_code: None, + is_premium: false, + added_to_attachment_menu: false, }; assert_eq!(user_mention_or_link(&user_with_username), "@abcd"); let user_without_username = User { @@ -249,6 +251,8 @@ mod tests { last_name: None, username: None, language_code: None, + is_premium: false, + added_to_attachment_menu: false, }; assert_eq!( user_mention_or_link(&user_without_username),