mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-24 23:57:38 +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
|
/// ## 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");
|
||||||
|
|
|
@ -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());
|
||||||
/// ```
|
/// ```
|
||||||
|
|
|
@ -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]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue