-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
34 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
use crate::utils::kbmng::Keyboard; | ||
use teloxide::{ | ||
payloads::SendMessageSetters, | ||
prelude::*, | ||
types::{InlineKeyboardMarkup, ParseMode}, | ||
}; | ||
|
||
static TEXT: &str = r#" | ||
<b>Hurmatli foydalanuvchi!</b> | ||
Bizning botimiz aktiv tarzda shakllantirib boriladi. Buning ustida esa bir necha avtor va dasturchilar turadi, ushbu havolalar orqali bizning sinovchilarimizdan biriga aylaning va biz bilan botimiz, hamda guruhimiz ishlatish qulayligini oshiring. | ||
"#; | ||
|
||
pub fn keyboard() -> InlineKeyboardMarkup { | ||
let mut keyboard = Keyboard::new(); | ||
keyboard.url( | ||
"Ochiq Havolalar", | ||
"https://github.com/rust-lang-uz/rustina", | ||
) | ||
} | ||
|
||
pub async fn command(bot: &Bot, msg: &Message) -> ResponseResult<()> { | ||
bot.send_message(msg.chat.id, TEXT) | ||
.parse_mode(ParseMode::Html) | ||
.reply_markup(keyboard()) | ||
.await?; | ||
|
||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters