diff --git a/README.md b/README.md index 1087a09d..94b9e44b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ > [v0.11 -> v0.11.1 migration guide >>](MIGRATION_GUIDE.md#011---0111)
- +

teloxide

diff --git a/crates/teloxide-core/README.md b/crates/teloxide-core/README.md index 5ccee596..d4c80ba5 100644 --- a/crates/teloxide-core/README.md +++ b/crates/teloxide-core/README.md @@ -1,5 +1,5 @@
- +

teloxide-core

diff --git a/crates/teloxide-core/src/serde_multipart/mod.rs b/crates/teloxide-core/src/serde_multipart/mod.rs index 5d04902a..51b24fd8 100644 --- a/crates/teloxide-core/src/serde_multipart/mod.rs +++ b/crates/teloxide-core/src/serde_multipart/mod.rs @@ -118,7 +118,7 @@ mod tests { ChatId(0), [ InputMedia::Photo( - InputMediaPhoto::new(InputFile::file("./media/logo.png")) + InputMediaPhoto::new(InputFile::file("../../media/teloxide-core-logo.png")) .caption(CAPTION) .parse_mode(ParseMode::MarkdownV2) .caption_entities(entities()), @@ -128,10 +128,12 @@ mod tests { ), InputMedia::Animation( InputMediaAnimation::new(InputFile::read( - File::open("./media/example.gif").await.unwrap(), + File::open("../../media/example.gif").await.unwrap(), )) .thumb(InputFile::read( - File::open("./media/logo.png").await.unwrap(), + File::open("../../media/teloxide-core-logo.png") + .await + .unwrap(), )) .duration(17), ), @@ -153,7 +155,7 @@ mod tests { to_form_ref(&payloads::AddStickerToSet::new( UserId(0), "name", - InputSticker::Png(InputFile::file("./media/logo.png")), + InputSticker::Png(InputFile::file("../../media/teloxide-core-logo.png")), "✈️⚙️", )) .unwrap() @@ -163,12 +165,17 @@ mod tests { #[tokio::test] async fn test_send_animation() { to_form_ref( - &payloads::SendAnimation::new(ChatId(0), InputFile::file("./media/logo.png")) - .caption_entities(entities()) - .thumb(InputFile::read( - File::open("./media/logo.png").await.unwrap(), - )) - .allow_sending_without_reply(true), + &payloads::SendAnimation::new( + ChatId(0), + InputFile::file("../../media/teloxide-core-logo.png"), + ) + .caption_entities(entities()) + .thumb(InputFile::read( + File::open("../../media/teloxide-core-logo.png") + .await + .unwrap(), + )) + .allow_sending_without_reply(true), ) .unwrap() .await; diff --git a/crates/teloxide/src/lib.rs b/crates/teloxide/src/lib.rs index b401de2a..b7c6234b 100644 --- a/crates/teloxide/src/lib.rs +++ b/crates/teloxide/src/lib.rs @@ -39,10 +39,10 @@ // [2]: https://github.com/rust-lang/rustfmt/issues/4787 // [3]: https://github.com/rust-lang/rust/issues/82768#issuecomment-803935643 #![cfg_attr(feature = "nightly", cfg_attr(feature = "nightly", doc = include_str!("features.md")))] -// https://github.com/teloxide/teloxide/raw/master/logo.svg doesn't work in html_logo_url, I don't know why. +// https://github.com/teloxide/teloxide/raw/master/media/teloxide-logo.svg doesn't work in html_logo_url, I don't know why. #![doc( - html_logo_url = "https://github.com/teloxide/teloxide/raw/master/ICON.png", - html_favicon_url = "https://github.com/teloxide/teloxide/raw/master/ICON.png" + html_logo_url = "https://github.com/teloxide/teloxide/raw/master/media/teloxide-logo.png", + html_favicon_url = "https://github.com/teloxide/teloxide/raw/master/teloxide-logo.png" )] // To properly build docs of this crate run // ```console diff --git a/crates/teloxide-core/media/example.gif b/media/example.gif similarity index 100% rename from crates/teloxide-core/media/example.gif rename to media/example.gif diff --git a/crates/teloxide-core/media/logo.png b/media/teloxide-core-logo.png similarity index 100% rename from crates/teloxide-core/media/logo.png rename to media/teloxide-core-logo.png diff --git a/crates/teloxide-core/media/logo.svg b/media/teloxide-core-logo.svg similarity index 100% rename from crates/teloxide-core/media/logo.svg rename to media/teloxide-core-logo.svg diff --git a/ICON.png b/media/teloxide-logo.png similarity index 100% rename from ICON.png rename to media/teloxide-logo.png diff --git a/logo.svg b/media/teloxide-logo.svg similarity index 100% rename from logo.svg rename to media/teloxide-logo.svg