https://github.com/bots-go-framework/bots-fw
Golang framework to build multilingual bots for messengers (Telegram, FB Messenger, Skype, Line, Kik, WeChat) hosted on AppEngine, Amazon, Azure, Heroku or standalone
https://github.com/bots-go-framework/bots-fw
bot bot-api bot-framework framework go golang telegram telegram-bot
Last synced: 8 days ago
JSON representation
Golang framework to build multilingual bots for messengers (Telegram, FB Messenger, Skype, Line, Kik, WeChat) hosted on AppEngine, Amazon, Azure, Heroku or standalone
- Host: GitHub
- URL: https://github.com/bots-go-framework/bots-fw
- Owner: bots-go-framework
- License: apache-2.0
- Created: 2016-04-30T13:10:06.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2025-12-29T01:07:21.000Z (about 2 months ago)
- Last Synced: 2025-12-29T01:59:56.564Z (about 2 months ago)
- Topics: bot, bot-api, bot-framework, framework, go, golang, telegram, telegram-bot
- Language: Go
- Homepage:
- Size: 930 KB
- Stars: 230
- Watchers: 18
- Forks: 23
- Open Issues: 13
-
Metadata Files:
- Readme: README-DB.md
- License: LICENSE
Awesome Lists containing this project
README
# Bots Framework Database
The bot framework uses [dalgo](https://github.com/dal-go) (_Db Abstraction Layer in GO_) to work with different
databases in a unified way.
It was designed to be able to work with nested collections (e.g. with Firestore)
but thanks to `dalgo` it will be able to work with any database supported by `dalgo`.
Including relational SQL databases like MySQL, PostgreSQL, etc.
## Database structure
- `botPlafforms` collection
- `bots` collection
- `botUsers` collection
- `botChats` collection
In case if you use relational SQL databases, collections will be tables and documents will be rows.
The parent keys will be foreign key fields. You would not need `botPlafforms` & `bots` tables in this case.
- `botUsers` table
- Platform string field
- Bot string field
- `botChats` table
- Platform string field
- Bot string field
### botPlatforms collection
Contains the bot platforms like `telegram`, `whatsapp`, etc.
#### bots collection
Contains the bots. Each bot has a unique id.
##### botUsers collection
Contains the bot users. Each bot user has a unique id.