Repository navigation
Releases: Dratejinn/telegrambot
Release list
v2.0.0
Breaking changes:
Bot:
- The bot now has the token as a required argument (nullable string)
- A new secondary required argument privacyPolicyEmailAddress (string, the e-mail address that can be passed on to the privacyPolicy command handler)
MessageHandler:
MessageHandler now has the abstract method _getPrivacyCommandHandler This method is required to have the bot present its privacy policy. Two default policies have been implemented in the library.
- Telegram\Bot\Handler\Command\DataStoredPrivacyPolicyHandler
- Telegram\Bot\Handler\Command\NoDataStoredPrivacyPolicyHandler
Send methods:
All send methods have been updated to make use of an internal OutboundException when the reply from the telegram API did not yield the correct result. The OutboundException class extends the regular \Exception.
Legal notice:
Note: Ensure that the Privacy Policy complies with applicable laws and regulations, such as the General Data Protection Regulation (GDPR) for users in the European Union, the California Consumer Privacy Act (CCPA) for users in California, and other relevant privacy laws. It is advisable to consult with a legal professional to tailor the privacy policy to your specific situation.
v1.10.4
v1.10.3
Hotfix 1.10.2
- Fixed missing self return in Chat::Create
Hotfix 1.10.1
Fixed missing argument in pdo connector.
Changed the call method on ASend to return the response from telegram so implementors can parse and handle the output.
Update to bot api 5.2
SetCommand Support
Added support to automaticaly set the bots commands.
To automatically add commands to the bot overwrite the following methods from ACommandHandler:
ShouldPublishCommand and GetDescriptionForCommand
Update to bot api 4.7
Update to bot api 4.7
Introduced method handleMessage on AMessageHandler
Update to bot api 4.6
Update to bot api 4.6
minor bug fixes
Update to bot api 3.6
Updated to bot api 3.6
Small minor fixes