Skip to content

Commit

Permalink
removed unimplemented commands
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Nov 20, 2023
1 parent d5454d2 commit 324ca7b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Telegram Bot Assistant written on TypeScript/Deno

[![GitHub top language](https://img.shields.io/github/languages/top/rust-lang-uz/telegram?style=flat-square&logo=github)](https://github.com/rust-lang-uz/telegram)
[![GitHub top language](https://img.shields.io/github/languages/top/rust-lang-uz/rustina?style=flat-square&logo=github)](https://github.com/rust-lang-uz/rustina)
[![Chat](https://img.shields.io/badge/Chat-grey?style=flat-square&logo=telegram)](https://t.me/rustlanguz)
[![Test CI](https://github.com/rust-lang-uz/telegram/actions/workflows/test.yml/badge.svg)](https://github.com/rust-lang-uz/telegram/actions/workflows/test.yml)

Expand Down
4 changes: 3 additions & 1 deletion src/functions/groups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::utils::{
keyboard::Keyboard,
};
use teloxide::{
payloads::SendMessageSetters,
payloads::{SendMessageSetters, EditMessageTextSetters},
prelude::*,
types::{InlineKeyboardMarkup, ParseMode},
};
Expand All @@ -14,6 +14,7 @@ pub async fn command(bot: &Bot, msg: &Message, groups: &Groups) -> ResponseResul
bot.send_message(msg.chat.id, TEXT)
.parse_mode(ParseMode::Html)
.reply_markup(keyboard_list(groups, 1))
.disable_web_page_preview(true)
.await?;

Ok(())
Expand All @@ -30,6 +31,7 @@ pub async fn callback_list(
bot.edit_message_text(chat.id, id, TEXT)
.parse_mode(ParseMode::Html)
.reply_markup(keyboard_list(groups, args[0].parse().unwrap_or(1)))
.disable_web_page_preview(true)
.await?;
} else if let Some(id) = q.inline_message_id.clone() {
bot.edit_message_text_inline(id, "Oopsie, something went wrong...")
Expand Down
13 changes: 4 additions & 9 deletions src/functions/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,17 @@ use crate::Command;
use teloxide::{payloads::SendMessageSetters, prelude::*, types::ParseMode};

static TEXT: &[(&str, &str)] = &[
("docs", "reply qilingan odamga dok borligi haqida eslatish"),
("help", "ushbu xabarni qayta ko'rsatish"),
("rules", "qoidalarni aks ettirish"),
("about", "ushbu botimizning rivojlantirish qismi"),
("group", "rust ga oid guruh va hamjamiyatlar"),
("useful", "rust haqida foydali yoki kerakli ma'lumotlar"),
("latest", "eng oxirgi reliz haqida qisqacha ma'lumot"),
("version", "biron anniq reliz haqida to'liq ma'lumot"),
(
"off",
"reply qilingan odamga offtop borligi haqida eslatish",
),
("group", "rust ga oid guruh va hamjamiyatlar"),
("help", "ushbu xabarni qayta ko'rsatish"),
("about", "ushbu botimizning rivojlantirish qismi"),
("rules", "qoidalarni aks ettirish"),
(
"which",
"ushbu guruh va foydalanuvchi metrik ma'lumotlarini ko'rsatish",
),
];

pub async fn command(bot: &Bot, msg: &Message, _cmd: &Command) -> ResponseResult<()> {
Expand Down

1 comment on commit 324ca7b

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 324ca7b Nov 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

Module not found "file:///src/mod.ts".

Please sign in to comment.