Skip to content

Commit

Permalink
telegram:button:update command rename
Browse files Browse the repository at this point in the history
  • Loading branch information
luzrain committed Feb 28, 2024
1 parent 336e5a8 commit 3d03db6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ There are two ways to receive messages from Telegram.
For this you need to configure webhook route and make it available from the Internet.
Send webhook url to Telegram with the command:
``` bash
$ bin/console telegram:webhook:set --url=https://domain.xyz/telagram-webhook
$ bin/console telegram:webhook:update
```

#### Polling daemon.
Expand Down Expand Up @@ -133,7 +133,7 @@ final class AccessControlController extends TelegramCommand
It's possible to publish all your commands that will be shown as list of available commands in the bot's menu button.
To do this fill in the _description_ field and the _publish_ flag in the OnCommand attribute, and run the command.
``` bash
$ bin/console telegram:button:setcommands
$ bin/console telegram:button:update
```

For button delete.
Expand Down
2 changes: 1 addition & 1 deletion src/TelegramBot/Command/ButtonSetCommandsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(

public static function getDefaultName(): string
{
return 'telegram:button:setcommands';
return 'telegram:button:update';
}

public static function getDefaultDescription(): string
Expand Down

0 comments on commit 3d03db6

Please sign in to comment.