modulepackage
1.2.2
Repository: https://github.com/hbbtekademy/tbotworkflow.git
Documentation: pkg.go.dev
# README
tbotworkflow - Telegram Bot Workflows
Use tbotworkflow to build interactive sequential and conditional workflows for your Telegram Bot to gather user input.
Features
- Build interactive Sequential and Conditional workflows for your Telegram Bot.
- No thirdparty library dependencies (except for Official Go Telegram Bot API).
- Does not require access to your Bot Token.
Limitations
- Currently supports only normal Reply Markup Keyboards. Inline keyboards not supported.
Installation
go get -u github.com/hbbtekademy/tbotworkflow
Examples
Sequential Workflow
Conditional Workflow
Optional Parameters
# Packages
No description provided by the author
# Functions
NewCancelButtonConfig returns a pointer to cancel button config.
NewWorkflow returns a TBotWorkflow.
NewWorkflowController returns a pointer to a new WorkflowController.
NewWorkflowStep returns a pointer to TBotWorkflowStep for given name, key, replyText and Telegram Reply Markup Keyboard.
# Structs
CancelButtonConfig will tell the workflow if a particular user input should be considered as a workflow cancel request.
TBotWorkflow is the workflow to be triggered for a particular Bot Command.
TBotWorkflowController controls all the workflows and their execution.
TBotWorkflowStep is the baisc unit of the workflow.
UserInputs captures the user inputs for each step of the workflow.