-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from tanhongit/feature/menu
Feature/menu
- Loading branch information
Showing
4 changed files
with
73 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
<?php | ||
|
||
use TelegramGithubNotify\App\Services\TelegramService; | ||
|
||
$menuCommands = TelegramService::MENU_COMMANDS ?? []; | ||
?> | ||
|
||
<b>BOT MENU</b> 🤖 | ||
|
||
/server - To get Server Information. | ||
/id - To get your Chat ID. | ||
/token - To get this bot token. | ||
/usage - How to use me. | ||
/settings - Settings GitHub notify. | ||
/menu - To get this menu. | ||
<?php foreach ($menuCommands as $menuCommand) : ?> | ||
<b><?= $menuCommand['command'] ?></b> - <?= $menuCommand['description'] ?> | ||
|
||
<?php endforeach; ?> | ||
|
||
Select a button: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
✅ Menu button set successfully! | ||
|
||
Please restart the bot to apply the changes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters