mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-11 03:13:46 +00:00
feat(modules): add an unlisted command visibility
Unlisted commands can be run by anyone like public ones but never appear in /help or the Telegram command menu.
This commit is contained in:
1 parent
d2f09ecb33
commit
577c0e3a70
14 files changed
+14
-4
No files matched your search
@@ -24,6 +24,7 @@ func TestBotCommandMenu_UsesLoadedPublicCommandsInModuleOrder(t *testing.T) {
|
||||
Commands: []modules.Command{
|
||||
{Name: "beta_public", Description: "Beta public", Parameters: "<value>", Visibility: modules.VisibilityPublic},
|
||||
{Name: "beta_private", Description: "Beta private", Visibility: modules.VisibilityPrivate},
|
||||
{Name: "beta_unlisted", Description: "Beta unlisted", Visibility: modules.VisibilityUnlisted},
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user