This repository has been archived by the owner on Apr 19, 2022. It is now read-only.
Releases: danyspin97/PhpBotFramework
Releases · danyspin97/PhpBotFramework
v2.0.2 Bug fixes and MultiCharacterCommand
- Documentation improvement
- MultiCharacterCommand
- Bug fixes
v2.0.1
Add admin commands, improve files sending.
Version 2.0.0 - new major version
- Reworked all framework
- Split Bot and CoreBot classes in different classes and traits to improve modularity
- Improved multi language support by adding getStr method to get a localized string
- Save all localized strings in json files and load them using loadAllLanguages or loadSingleLanguage methods
- Database handling has been improved by adding some methods (connect, addUser)
- Broadcast a message to all bot users
- Redis cannot be used anymore as stand alone database for containing user languages
- Send file along with api methods whetever they are, they will be handled automatically
- Upload files along with api request, send local image as photo just by sending its local path
- Added PHPStan as checker to fix majority of bugs
- Improved design by appling "composition over inheritance" principle
- Improved documentation
- Added simple unit testing
- Added variuos example
- Fixed many bugs
v1.1.2
Changelog:
- New inline keyboard buttons creation
- setUpdateReturned
- Bug fixes
v1.1.1 Bug fixes
Changes:
- Changed Bot::$inline_keyboard to Bot::$keyboard
- Fixed InlineKeyboard::getChooseLanguageKeyboard
- Documentation improved
v1.1.0 Helper functions and improved documentation
New features:
- State example
- Load localization from a directory and save it in $local
- Broadcast a message to all user registred into the bot
- Add a user to the database
- Find all hashtags in a string
Callback commands and adjustments
Added callback commands, sendVoice method, changed parameters order for editMessageText, added callback commands documentation, improved method documentation, removed reference where not needed, changed InlineKeyboard::getCompositeListKeyboard to InlineKeyboard::addCompositeListKeyboard.
Bug fixes
v1.0.1 Added initBot, fixed command error
First release
First release of the framework, with all the components needed to create a bot.
Support for the most important api methods, for both getUpdates and webhook, for multilanguage bot and multistate bot, implements a command-handle system.