nivez/Interactive Inputs Action
Github actions interacrive inputs using Telegram bot
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| telegram-api-token | Telegram API token | yes | — |
| telegram-chat-id | The Telegram chat id that will be used for the interactive inputs and messages | yes | — |
| question | The question / statement that will be used in Telegram followed with buttons (each button represents one of the options) | — | — |
| options | The possible options (buttons) that will appear as the interactive inputs in Telegram - represented as a JSON array of strings | — | [] |
| default-choice | Default choice that will be used if the user did not choose any of the options in Telegram | — | — |
| message | Message that will be sent thorugh Telegram after the user interaction has finished. It is possible to use %s as a variable that will be replaced with the selected choice | — | The selected choice is: %s |
| timeout | Timeout in seconds for selecting one of the possible options. When the timeout exceeds - stopping to check for updates from Telegram | — | 60 |
| timeout-message | Message that will be sent to Telegram if the timeout exceeds and the user did not select any of the options | — | Timeout exceeded without any choice... |
| is-choosing-required | If true - the user must choose one of the options - in case the user did not choose and there is no default choice - the timeout message will be sent and the run will be cancelled | — | true |
| wait-for-timeout-to-finish | If true - the run will wait for the timeout to finish even if the user already chose one of the options - that will let the user to change his choice before the timeout exceeds | — | false |
| simple-message | Just a simple message that will be sent through Telegram without any of the functionality of interactive inputs | — | — |
Outputs
| name | description |
|---|---|
| user-choice | The selected choice recieved from Telegram |