fbradyirl / webex_bot

Python package for a Webex Bot based on websockets.
MIT License
68 stars 44 forks source link

The card displayed for Help restricts the number of buttons to 5 #28

Open 5r33 opened 2 years ago

5r33 commented 2 years ago

Description

In the example.py tried to add commands to the bot using add_command.

gconklin commented 2 years ago

This seems to be a limitation of the Adaptive Cards template used by Cisco and not something the bot can get around.

gconklin commented 2 years ago

As a work around, you could replace the built-in help command with your own that just outputs a text list of the command_keyword and help_message. (This is what I do) See issue #25 for talk about replacing the default help command.

gconklin commented 2 years ago

Looks like this can gotten around by building the adaptive card differently.

Of note, I saw the 5 button limitation in the Windows client. On the phone, I was able to see all buttons rendered.

The internal help command may be able to get around the limitation by not using "actions", but instead using multiple "ActionSet" blocks, with a max of 5 "Action.Submit" entries per block. It doesn't format as nicely, but would generate all of the buttons.