Skip to content

Commit 383cc03

Browse files
committed
Fix group link by using group username instead of id
1 parent 46855c0 commit 383cc03

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.env.example

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ TG_GITHUB_AUTH_TOKEN='github-token'
4242
# Telegram Payments
4343
TG_PAYMENT_PROVIDER_TOKEN='123:TEST:abc'
4444

45-
# Support group activation expiry and ban times
45+
# Support group
46+
TG_SUPPORT_GROUP_ID='-12345'
47+
TG_SUPPORT_GROUP_USERNAME='Support_Group'
4648
TG_SUPPORT_GROUP_ACTIVATION_EXPIRE_TIME='15 min'
4749
TG_SUPPORT_GROUP_BAN_TIME='1 day'
4850

commands/RulesCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public static function handleCallbackQuery(CallbackQuery $callback_query, array
8989
'chat_id' => $chat_id,
9090
'message_id' => $message->getMessageId(),
9191
'reply_markup' => new InlineKeyboard([
92-
['text' => LitEmoji::encodeUnicode(':white_check_mark: Ok! Go to Bot Support group...'), 'url' => 'https://t.me/' . getenv('TG_SUPPORT_GROUP_ID')],
92+
['text' => LitEmoji::encodeUnicode(':white_check_mark: Ok! Go to Bot Support group...'), 'url' => 'https://t.me/' . getenv('TG_SUPPORT_GROUP_USERNAME')],
9393
]),
9494
]);
9595

0 commit comments

Comments
 (0)