Skip to content

v2.0.0

Latest

Choose a tag to compare

@Dratejinn Dratejinn released this 04 Jul 15:14

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.