mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 17:52:12 +01:00
Fix test src/core/types/inline_keyboard_markup.rs - core::types::inline_keyboard_markup::InlineKeyboardMarkup (line 18)
This commit is contained in:
parent
feee762d78
commit
1bee0a9c26
1 changed files with 8 additions and 9 deletions
|
@ -15,20 +15,19 @@ pub struct InlineKeyboardMarkup {
|
||||||
/// Build Markup
|
/// Build Markup
|
||||||
///
|
///
|
||||||
/// Example:
|
/// Example:
|
||||||
/// ```edition2018
|
/// ```
|
||||||
/// use async_telegram_bot::core::types::{
|
/// use async_telegram_bot::core::types::{
|
||||||
/// InlineKeyboardMarkup,
|
/// InlineKeyboardMarkup,
|
||||||
/// InlineKeyboardButton
|
/// InlineKeyboardButton
|
||||||
/// };
|
/// };
|
||||||
///
|
///
|
||||||
/// fn main() {
|
///
|
||||||
/// let url_button = InlineKeyboardButton::url(
|
/// let url_button = InlineKeyboardButton::url(
|
||||||
/// "text".to_string(),
|
/// "text".to_string(),
|
||||||
/// "http://url.com".to_string()
|
/// "http://url.com".to_string()
|
||||||
/// );
|
/// );
|
||||||
/// let keyboard = InlineKeyboardMarkup::new()
|
/// let keyboard = InlineKeyboardMarkup::new()
|
||||||
/// .row(vec![url_button]);
|
/// .append_row(vec![url_button]);
|
||||||
/// }
|
|
||||||
/// ```
|
/// ```
|
||||||
impl InlineKeyboardMarkup {
|
impl InlineKeyboardMarkup {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
|
|
Loading…
Reference in a new issue