From 1fe911e1222df20d7253c9b8faa777c614e73ffe Mon Sep 17 00:00:00 2001 From: Sokhibjon Orzikulov Date: Sun, 10 Dec 2023 15:29:47 +0500 Subject: [PATCH] updates communities --- data/communities.json | 24 ++++++++++++------------ src/hooks/is_private.rs | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/data/communities.json b/data/communities.json index 1829c83..8761e8e 100644 --- a/data/communities.json +++ b/data/communities.json @@ -1,35 +1,35 @@ [ { - "name": "Global Jamiyat", - "about": "Hamma narsa kamayadi, shuning uchunam dunyoni oksidlash uchun rust ishlating.", + "name": "Global Community", + "about": "Everything else is reducing, so use rust to oxidize the world.", "telegram": "@rustdevs", "link": "https://rust-lang.org" }, { - "name": "O'zbek Hamjamiyati", + "name": "Uzbek Community", "about": "O'zbek Rust dasturchilariga qaratilgan jamiyat", "telegram": "@rustlanguz", "link": "https://rust-lang.uz" }, { - "name": "Ingliz Hamjamiyat", - "about": "Boshlang'ich rust dasturchilari uchun rust haqida qo'llanmalar yoki proyektlar ulashadigan kanal", + "name": "English Community", + "about": "A channel to share rust tutorials and projects for beginners", "telegram": "@rustlang_en" }, { - "name": "Rus Hamjamiyat", - "about": "Rust — ruscha gaplashadigan hamjamiyat", + "name": "Russian Community", + "about": "Rust — русскоговорящее сообщество", "telegram": "@rustlang_ru", "link": "https://rust-lang.ru" }, { - "name": "Saralangan yangiliklar", - "about": "Saralab olingan Rust yangiliklari telegramingizga yetkaziladi.", - "telegram": "@this_week_in_rust" + "name": "Handpicked News", + "about": "Handpicked Rust updates, delivered to your telegram.", + "telegram": "this_week_in_rust" }, { "name": "Rust Offtopic", - "about": "Mavzudan tashqarida gaplashiladigan guruh", - "telegram": "@rustlanguz_offtopic" + "about": "The place where you can share anything (probably)...", + "telegram": "@offtopica" } ] diff --git a/src/hooks/is_private.rs b/src/hooks/is_private.rs index 4843501..45eeed9 100644 --- a/src/hooks/is_private.rs +++ b/src/hooks/is_private.rs @@ -9,11 +9,11 @@ use crate::utils::{ message::{delete_timer, Rustina}, }; -static TEXT: &str = "⚠️ Bu komanda faqat shaxsiy chat uchun!"; +static TEXT: &str = "⚠️ This command can be used only in DMs!"; pub fn keyboard() -> InlineKeyboardMarkup { let mut keyboard: Keyboard = Keyboard::new(); - keyboard.url("Shaxsiy Chat", "https://t.me/rustinabot") + keyboard.url("Direct Message", "https://t.me/rustinabot") } pub async fn is_private(bot: &Bot, msg: &Message) -> ResponseResult {