We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e30a869 commit 9df1bb9Copy full SHA for 9df1bb9
1 file changed
src/functions/useful.rs
@@ -1,3 +1,4 @@
1
+use crate::hooks;
2
use crate::utils::resources::{Resource, Resources};
3
use orzklv::telegram::{keyboard::Keyboard, topic::Topics};
4
use teloxide::{payloads::SendMessageSetters, prelude::*, types::*};
@@ -8,6 +9,10 @@ Agar o'zingizdan material qo'shmoqchi bo'lsangiz, bizni \
8
9
source.json</a> ni yangilang!";
10
11
pub async fn command(bot: &Bot, msg: &Message, resources: &Resources) -> ResponseResult<()> {
12
+ if !hooks::is_private(bot, msg).await.unwrap() {
13
+ return Ok(());
14
+ }
15
+
16
let categories = resources.get_keys();
17
18
bot.send_message_tf(msg.chat.id, TEXT, msg)
0 commit comments