mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-31 16:40:37 +01:00
parent
f6e7c01a45
commit
cc74e7517d
2 changed files with 11 additions and 11 deletions
20
Cargo.toml
20
Cargo.toml
|
@ -57,18 +57,18 @@ full = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
#teloxide-core = { version = "0.6.0", default-features = false }
|
teloxide-core = { version = "0.7.0", default-features = false }
|
||||||
teloxide-core = { git = "https://github.com/teloxide/teloxide-core", rev = "b13393d", 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 }
|
teloxide-macros = { version = "0.6.2", optional = true }
|
||||||
|
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
|
|
||||||
#dptree = "0.2.1"
|
dptree = "0.3.0"
|
||||||
dptree = { git = "https://github.com/teloxide/dptree.git", rev = "df578e4" }
|
#dptree = { git = "https://github.com/teloxide/dptree.git", rev = "df578e4" }
|
||||||
|
|
||||||
tokio = { version = "1.8", features = ["fs"] }
|
tokio = { version = "1.8", features = ["fs"] }
|
||||||
tokio-util = "0.6"
|
tokio-util = "0.7"
|
||||||
tokio-stream = "0.1.8"
|
tokio-stream = "0.1.8"
|
||||||
|
|
||||||
url = "2.2.2"
|
url = "2.2.2"
|
||||||
|
@ -83,17 +83,17 @@ pin-project = "1.0"
|
||||||
serde_with_macros = "1.4"
|
serde_with_macros = "1.4"
|
||||||
aquamarine = "0.1.11"
|
aquamarine = "0.1.11"
|
||||||
|
|
||||||
sqlx = { version = "0.5", optional = true, default-features = false, features = [
|
sqlx = { version = "0.6", optional = true, default-features = false, features = [
|
||||||
"runtime-tokio-native-tls",
|
"runtime-tokio-native-tls",
|
||||||
"macros",
|
"macros",
|
||||||
"sqlite",
|
"sqlite",
|
||||||
] }
|
] }
|
||||||
redis = { version = "0.20", features = ["tokio-comp"], optional = true }
|
redis = { version = "0.21", features = ["tokio-comp"], optional = true }
|
||||||
serde_cbor = { version = "0.11", optional = true }
|
serde_cbor = { version = "0.11", optional = true }
|
||||||
bincode = { version = "1.3", optional = true }
|
bincode = { version = "1.3", optional = true }
|
||||||
axum = { version = "0.4.8", optional = true }
|
axum = { version = "0.5.13", optional = true }
|
||||||
tower = { version = "0.4.12", optional = true }
|
tower = { version = "0.4.12", optional = true }
|
||||||
tower-http = { version = "0.2.5", features = ["trace"], optional = true }
|
tower-http = { version = "0.3.4", features = ["trace"], optional = true }
|
||||||
rand = { version = "0.8.5", optional = true }
|
rand = { version = "0.8.5", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
@ -102,7 +102,7 @@ pretty_env_logger = "0.4.0"
|
||||||
serde = "1"
|
serde = "1"
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
tokio = { version = "1.8", features = ["fs", "rt-multi-thread", "macros"] }
|
tokio = { version = "1.8", features = ["fs", "rt-multi-thread", "macros"] }
|
||||||
reqwest = "0.10.4"
|
reqwest = "0.11.11"
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
tokio-stream = "0.1"
|
tokio-stream = "0.1"
|
||||||
|
|
||||||
|
|
|
@ -272,7 +272,7 @@ impl<B> FromRequest<B> for XTelegramBotApiSecretToken {
|
||||||
|
|
||||||
let res = req
|
let res = req
|
||||||
.headers_mut()
|
.headers_mut()
|
||||||
.and_then(|map| map.remove("x-telegram-bot-api-secret-token"))
|
.remove("x-telegram-bot-api-secret-token")
|
||||||
.map(|header| {
|
.map(|header| {
|
||||||
check_secret(header.as_bytes())
|
check_secret(header.as_bytes())
|
||||||
.map(<_>::to_owned)
|
.map(<_>::to_owned)
|
||||||
|
|
Loading…
Reference in a new issue