I *think* commands have to be repeated per-scope.
This commit is contained in:
parent
52dfb1bf08
commit
c916fd9ed9
1 changed files with 37 additions and 7 deletions
|
|
@ -166,26 +166,17 @@ func (b *bot) SetCommands(ctx context.Context) (err error) {
|
|||
Scope: &telego.BotCommandScopeAllChatAdministrators{
|
||||
Type: "all_chat_administrators",
|
||||
},
|
||||
Commands: []telego.BotCommand{
|
||||
{
|
||||
Command: "settings",
|
||||
Description: "Bot settings.",
|
||||
IsEphemeral: true,
|
||||
},
|
||||
{
|
||||
Command: "start",
|
||||
Description: "Starts the bot and links it to the current user's channel.",
|
||||
IsEphemeral: true,
|
||||
},
|
||||
},
|
||||
})
|
||||
b.tgbot.SetMyCommands(ctx, &telego.SetMyCommandsParams{
|
||||
Commands: []telego.BotCommand{
|
||||
{
|
||||
Command: "help",
|
||||
Description: "Displays bot usage and help.",
|
||||
IsEphemeral: true,
|
||||
},
|
||||
{
|
||||
Command: "add",
|
||||
Description: "Submits a passage to the bot's daily passage rotation.",
|
||||
IsEphemeral: true,
|
||||
},
|
||||
{
|
||||
Command: "announce",
|
||||
Description: "Adds an announcement to the bot.",
|
||||
|
|
@ -198,18 +189,57 @@ func (b *bot) SetCommands(ctx context.Context) (err error) {
|
|||
Command: "birthday",
|
||||
Description: "Add, remove, or list birthdays.",
|
||||
},
|
||||
{
|
||||
Command: "random",
|
||||
Description: "Submits a random Bible passage to the current chat.",
|
||||
},
|
||||
{
|
||||
Command: "settings",
|
||||
Description: "Bot settings.",
|
||||
IsEphemeral: true,
|
||||
},
|
||||
{
|
||||
Command: "start",
|
||||
Description: "Starts the bot and links it to the current user's channel.",
|
||||
IsEphemeral: true,
|
||||
},
|
||||
{
|
||||
Command: "verse",
|
||||
Description: "Looks up a Bible passage. Optionally accepts a translation identifier as its second argument.",
|
||||
},
|
||||
},
|
||||
})
|
||||
b.tgbot.SetMyCommands(ctx, &telego.SetMyCommandsParams{
|
||||
Commands: []telego.BotCommand{
|
||||
{
|
||||
Command: "help",
|
||||
Description: "Displays bot usage and help.",
|
||||
IsEphemeral: true,
|
||||
},
|
||||
{
|
||||
Command: "add",
|
||||
Description: "Submits a passage to the bot's daily passage rotation.",
|
||||
IsEphemeral: true,
|
||||
},
|
||||
{
|
||||
Command: "announce",
|
||||
Description: "Adds an announcement to the bot.",
|
||||
},
|
||||
{
|
||||
Command: "announcements",
|
||||
Description: "Lists the current announcements for the week.",
|
||||
},
|
||||
{
|
||||
Command: "birthday",
|
||||
Description: "Add, remove, or list birthdays.",
|
||||
},
|
||||
{
|
||||
Command: "random",
|
||||
Description: "Submits a random Bible passage to the current chat.",
|
||||
},
|
||||
{
|
||||
Command: "add",
|
||||
Description: "Submits a passage to the bot's daily passage rotation.",
|
||||
IsEphemeral: true,
|
||||
Command: "verse",
|
||||
Description: "Looks up a Bible passage. Optionally accepts a translation identifier as its second argument.",
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue