Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
updates communities
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Dec 10, 2023
1 parent 16fd349 commit 1fe911e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions data/communities.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
4 changes: 2 additions & 2 deletions src/hooks/is_private.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ use crate::utils::{
message::{delete_timer, Rustina},
};

static TEXT: &str = "⚠️ <b>Bu komanda faqat shaxsiy chat uchun!</b>";
static TEXT: &str = "⚠️ <b>This command can be used only in DMs!</b>";

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<bool> {
Expand Down

0 comments on commit 1fe911e

Please sign in to comment.