replace teloxide with teloxide_core in doc tests

This commit is contained in:
Waffle 2020-08-12 20:23:18 +03:00
parent 95cfc0530f
commit 842a084abf
3 changed files with 5 additions and 5 deletions

View file

@ -17,10 +17,10 @@ impl Bot {
/// ## Examples /// ## Examples
/// ///
/// ```no_run /// ```no_run
/// use teloxide::types::File as TgFile; /// use teloxide_core::types::File as TgFile;
/// use tokio::fs::File; /// use tokio::fs::File;
/// # use teloxide::RequestError; /// # use teloxide_core::RequestError;
/// use teloxide::{requests::Request, Bot}; /// use teloxide_core::{requests::Request, Bot};
/// ///
/// # async fn run() -> Result<(), Box<dyn std::error::Error>> { /// # async fn run() -> Result<(), Box<dyn std::error::Error>> {
/// let bot = Bot::new("TOKEN"); /// let bot = Bot::new("TOKEN");

View file

@ -101,7 +101,7 @@ pub enum InlineKeyboardButtonKind {
/// ///
/// # Examples /// # Examples
/// ``` /// ```
/// use teloxide::types::InlineKeyboardButton; /// use teloxide_core::types::InlineKeyboardButton;
/// ///
/// let url_button = InlineKeyboardButton::url("Text".to_string(), "http://url.com".to_string()); /// let url_button = InlineKeyboardButton::url("Text".to_string(), "http://url.com".to_string());
/// ``` /// ```

View file

@ -25,7 +25,7 @@ pub struct InlineKeyboardMarkup {
/// ///
/// # Examples /// # 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 url_button = InlineKeyboardButton::url("text".to_string(), "http://url.com".to_string());
/// let keyboard = InlineKeyboardMarkup::default().append_row(vec![url_button]); /// let keyboard = InlineKeyboardMarkup::default().append_row(vec![url_button]);