Download the PHP package edvardpotter/telegram-bot-conversation without Composer
On this page you can find all versions of the php package edvardpotter/telegram-bot-conversation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download edvardpotter/telegram-bot-conversation
More information about edvardpotter/telegram-bot-conversation
Files in edvardpotter/telegram-bot-conversation
Download edvardpotter/telegram-bot-conversation
More information about edvardpotter/telegram-bot-conversation
Files in edvardpotter/telegram-bot-conversation
Vendor edvardpotter
Package telegram-bot-conversation
Short Description Telegram bot conversation
License MIT
Package telegram-bot-conversation
Short Description Telegram bot conversation
License MIT
Please rate this library. Is it a good library?
Informations about the package telegram-bot-conversation
Telegram Conversation Library
A library for creating Telegram bots with support for declarative command descriptions and conversations (dialogue states).
Features
- Declarative description of commands and their handlers
- State system for creating multi-step dialogues
- Support for regular commands and inline buttons
- Support for patterns and regular expressions in commands
- Simple and intuitive API
Installation
Usage
Simple Example
Working with Inline Buttons
Using Patterns and Regular Expressions
The library supports two types of command patterns:
- Templates with placeholders in
{name}format - Regular expressions with capture groups
([0-9]+)
Command parameters are passed as separate arguments to the handler function:
Note: The order of parameters is important! System parameters always come first:
$message,$conversation,$api, followed by parameters extracted from the message text.
License
MIT
All versions of telegram-bot-conversation with dependencies
PHP Build Version
Package Version
The package edvardpotter/telegram-bot-conversation contains the following files
Loading the files please wait ...