mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +01:00
replace teloxide
with teloxide_core
in doc tests
This commit is contained in:
parent
95cfc0530f
commit
842a084abf
3 changed files with 5 additions and 5 deletions
|
@ -17,10 +17,10 @@ impl Bot {
|
|||
/// ## Examples
|
||||
///
|
||||
/// ```no_run
|
||||
/// use teloxide::types::File as TgFile;
|
||||
/// use teloxide_core::types::File as TgFile;
|
||||
/// use tokio::fs::File;
|
||||
/// # use teloxide::RequestError;
|
||||
/// use teloxide::{requests::Request, Bot};
|
||||
/// # use teloxide_core::RequestError;
|
||||
/// use teloxide_core::{requests::Request, Bot};
|
||||
///
|
||||
/// # async fn run() -> Result<(), Box<dyn std::error::Error>> {
|
||||
/// let bot = Bot::new("TOKEN");
|
||||
|
|
|
@ -101,7 +101,7 @@ pub enum InlineKeyboardButtonKind {
|
|||
///
|
||||
/// # Examples
|
||||
/// ```
|
||||
/// use teloxide::types::InlineKeyboardButton;
|
||||
/// use teloxide_core::types::InlineKeyboardButton;
|
||||
///
|
||||
/// let url_button = InlineKeyboardButton::url("Text".to_string(), "http://url.com".to_string());
|
||||
/// ```
|
||||
|
|
|
@ -25,7 +25,7 @@ pub struct InlineKeyboardMarkup {
|
|||
///
|
||||
/// # Examples
|
||||
/// ```
|
||||
/// use teloxide::types::{InlineKeyboardButton, InlineKeyboardMarkup};
|
||||
/// use teloxide_core::types::{InlineKeyboardButton, InlineKeyboardMarkup};
|
||||
///
|
||||
/// let url_button = InlineKeyboardButton::url("text".to_string(), "http://url.com".to_string());
|
||||
/// let keyboard = InlineKeyboardMarkup::default().append_row(vec![url_button]);
|
||||
|
|
Loading…
Reference in a new issue