Skip to content

Commit 47ff2a7

Browse files
committed
fix: broken bot referrer links
1 parent b41d116 commit 47ff2a7

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<header>
22
<img src=".github/assets/logo.png" alt="logo" height="100" align="left">
3-
<h1 style="display: inline">Rustina Telegram</h1>
3+
<h1 style="display: inline">Rustacean Telegram</h1>
44

55
Telegram Bot Assistant written on Teloxide/Rust
66

7-
[![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)
7+
[![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)
88
[![Chat](https://img.shields.io/badge/Chat-grey?style=flat-square&logo=telegram)](https://t.me/rustlanguz)
99
[![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)
1010

src/functions/groups.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::utils::groups::{Group, Groups};
22
use orzklv::telegram::{keyboard::Keyboard, topic::Topics};
33
use teloxide::{payloads::EditMessageTextSetters, prelude::*, types::*};
44

5-
static TEXT: &str = "<b>Telegramdagi Rust Hamjamiyatlari yoki Guruhlari:</b>\nAgar o'zingizni guruhingizni qo'shmoqchi bo'lsangiz, bizni <a href='https://github.com/rust-lang-uz/rustina/blob/main/data/communities.json'>community.json</a> ni yangilang!";
5+
static TEXT: &str = "<b>Telegramdagi Rust Hamjamiyatlari yoki Guruhlari:</b>\nAgar o'zingizni guruhingizni qo'shmoqchi bo'lsangiz, bizni <a href='https://github.com/rust-lang-uz/telegram/blob/main/data/communities.json'>community.json</a> ni yangilang!";
66

77
pub async fn command(bot: &Bot, msg: &Message, groups: &Groups) -> ResponseResult<()> {
88
bot.send_message_tf(msg.chat.id, TEXT, msg)

src/functions/useful.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use teloxide::{payloads::SendMessageSetters, prelude::*, types::*};
44

55
static TEXT: &str = "<b>Rustga oid foydali materiallar:</b>\n\
66
Agar o'zingizdan material qo'shmoqchi bo'lsangiz, bizni \
7-
<a href='https://github.com/rust-lang-uz/rustina/blob/main/data/source.json'>\
7+
<a href='https://github.com/rust-lang-uz/telegram/blob/main/data/source.json'>\
88
source.json</a> ni yangilang!";
99

1010
pub async fn command(bot: &Bot, msg: &Message, resources: &Resources) -> ResponseResult<()> {

src/functions/warn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ pub fn view_detail(from: (&str, &str), topic: String) -> String {
292292
{} guruhimizda ushbu mavzuga oid narsalar haqida suhbatlashish ruxsat etiladi. \
293293
Boshqalarga halaqit qilmayliga 😉\
294294
\n\n\
295-
<b>Hurmat ila, Rustina</b>",
295+
<b>Hurmat ila, Rustacean</b>",
296296
from.0,
297297
from.1,
298298
topic,

src/hooks/is_private.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ static TEXT: &str = "⚠️ <b>Bu komanda faqat shaxsiy chat uchun!</b>";
1111
pub fn keyboard() -> InlineKeyboardMarkup {
1212
let mut keyboard: Keyboard = Keyboard::new();
1313
keyboard
14-
.url("Shaxsiy Chat", "https://t.me/rustinabot")
14+
.url("Shaxsiy Chat", "https://t.me/rustaceanbot")
1515
.unwrap()
1616
}
1717

src/utils/github.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ impl GitHub {
1212

1313
let client = client.add_header(
1414
"User-Agent".parse().unwrap(),
15-
"Rustina Assistant (support@floss.uz)".to_string(),
15+
"Rustacean Assistant (support@floss.uz)".to_string(),
1616
);
1717

1818
match token {

0 commit comments

Comments
 (0)