Comments (1)
Botman is HTTP based. This means that after the bot sends a message to the user and "awaits" for the answer, the connection is closed. At the next user message, the whole application is restarted, including your singleton.
If you need to maintain a state between each bot interaction, you have to use a kind of storage.
Botman offers different types of storages out of the box:
https://botman.io/2.0/storing-information
Otherwise you can build your own, for instance, based on the database.
from botman.
Related Issues (20)
- How to show detailed information in listing of data ? HOT 1
- How to run default action when page is opened? HOT 9
- Can't integrate with Laravel 9 HOT 11
- Can I to show fontawesome-free icons? HOT 7
- How to make functionality to select a file and upload into the app ? HOT 3
- How to set time of conversation session? HOT 3
- Issues with conversations, cache and buttons HOT 1
- Deprecate Tightenco Collections in favor of Illuminate / Laravel Collections HOT 1
- Install with guzzle ^7.0.1 HOT 3
- Suggestion: enable automatic updates on packagist.org HOT 2
- Whatsapp API HOT 2
- How can i save chat logs to a log file? HOT 4
- Separate "models", error forum/slack and Discord support HOT 3
- Welcome message when web widget opened? HOT 1
- illuminate\support package should be required
- Slow bot reply with telegram-driver HOT 6
- send button/icon HOT 1
- Telegram doesn't show emoji
- Invalid URL to access Slack channel HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botman.