Skip to content

Commit eb99a2b

Browse files
authored
Merge pull request #2 from WizardLoop/dev
[1.0.1]
2 parents ab6553f + fe062a1 commit eb99a2b

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ services:
77
working_dir: /app/src
88
volumes:
99
- ./:/app
10-
env_file:
11-
- .env
12-
command: php /app/src/bot.php
10+
command: php /app/src/bot.php

src/Handlers/Handlers.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ public function startHandle(Incoming & PrivateMessage $message): void {
3737
$welcome_button1_data = $translate['welcome_button1_data'] ?? 'https://t.me/GetAnyMessageChat';
3838
$welcome_button2_txt = $translate['welcome_button2_txt'] ?? 'Updates Channel 🔔';
3939
$welcome_button2_data = $translate['welcome_button2_data'] ?? 'https://t.me/GetAnyMessageUpdates';
40-
$welcome_button10_txt = $translate['welcome_button10_txt'] ?? 'Donate 🦾';
41-
$welcome_button10_data = $translate['welcome_button10_data'] ?? 'Donate';
4240
$source_code_txt = $translate['source_code_txt'] ?? '⭐️ Source Code 🔗';
4341
$source_code_url = $translate['source_code_url'] ?? 'https://github.com/WizardLoop/GetAnyMessage';
4442

@@ -48,7 +46,7 @@ public function startHandle(Incoming & PrivateMessage $message): void {
4846
$language_data = $translate['language_data'] ?? 'setLanguage';
4947

5048
$bot_API_markup[] = [['text'=>$welcome_button1_txt,'url'=>$welcome_button1_data],['text'=>$welcome_button2_txt,'url'=>$welcome_button2_data]];
51-
$bot_API_markup[] = [['text'=>$welcome_button10_txt,'callback_data'=>$welcome_button10_data]];
49+
$bot_API_markup[] = [['text'=>$source_code_txt,'url'=>$source_code_url]];
5250
$bot_API_markup[] = [['text'=>$language_button,'callback_data'=>$language_data]];
5351
$bot_API_markup = [ 'inline_keyboard'=> $bot_API_markup,];
5452

@@ -108,8 +106,6 @@ public function backStart(int $senderId, int $msgid): void {
108106
$welcome_button1_data = $translate['welcome_button1_data'] ?? 'https://t.me/GetAnyMessageChat';
109107
$welcome_button2_txt = $translate['welcome_button2_txt'] ?? 'Updates Channel 🔔';
110108
$welcome_button2_data = $translate['welcome_button2_data'] ?? 'https://t.me/GetAnyMessageUpdates';
111-
$welcome_button10_txt = $translate['welcome_button10_txt'] ?? 'Donate 🦾';
112-
$welcome_button10_data = $translate['welcome_button10_data'] ?? 'Donate';
113109
$source_code_txt = $translate['source_code_txt'] ?? '⭐️ Source Code 🔗';
114110
$source_code_url = $translate['source_code_url'] ?? 'https://github.com/WizardLoop/GetAnyMessage';
115111

@@ -119,7 +115,7 @@ public function backStart(int $senderId, int $msgid): void {
119115
$language_data = $translate['language_data'] ?? 'setLanguage';
120116

121117
$bot_API_markup[] = [['text'=>$welcome_button1_txt,'url'=>$welcome_button1_data],['text'=>$welcome_button2_txt,'url'=>$welcome_button2_data]];
122-
$bot_API_markup[] = [['text'=>$welcome_button10_txt,'callback_data'=>$welcome_button10_data]];
118+
$bot_API_markup[] = [['text'=>$source_code_txt,'url'=>$source_code_url]];
123119
$bot_API_markup[] = [['text'=>$language_button,'callback_data'=>$language_data]];
124120
$bot_API_markup = [ 'inline_keyboard'=> $bot_API_markup,];
125121

0 commit comments

Comments
 (0)