Skip to content

Commit

Permalink
removing completed part of ts
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Nov 16, 2023
1 parent 655be21 commit dd986e8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 118 deletions.
23 changes: 0 additions & 23 deletions delta/about.ts

This file was deleted.

37 changes: 0 additions & 37 deletions delta/help.ts

This file was deleted.

35 changes: 0 additions & 35 deletions delta/rules.ts

This file was deleted.

22 changes: 0 additions & 22 deletions delta/start.ts

This file was deleted.

9 changes: 8 additions & 1 deletion src/functions/about.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::utils::kbmng::Keyboard;
use crate::{utils::kbmng::Keyboard, hooks};
use teloxide::{
payloads::SendMessageSetters,
prelude::*,
Expand All @@ -20,6 +20,13 @@ pub fn keyboard() -> InlineKeyboardMarkup {
}

pub async fn command(bot: &Bot, msg: &Message) -> ResponseResult<()> {
if !msg.chat.is_private() {
return {
hooks::is_private(bot, msg).await.unwrap();
Ok(())
}
}

bot.send_message(msg.chat.id, TEXT)
.parse_mode(ParseMode::Html)
.reply_markup(keyboard())
Expand Down

0 comments on commit dd986e8

Please sign in to comment.