Repository navigation
v1.0.0-alpha.2
π What's New in v1.0.0-alpha.2
This release introduces flexible SSL verification configuration across HTTP transports (GuzzleHttpClient and CurlHttpClient), making it easier to work in environments with self-signed certificates, corporate proxies, or custom CA bundles.
β¨ Features & Improvements
- SSL Verification Option (
verify_ssl/verifySsl):- Added
verifySslconfiguration toConfigandConfigBuilder. - Supports both
boolandstringtypes:false(default): Disables SSL certificate validation (useful for local development, corporate proxies, or restricted networks).true: Enables standard SSL verification against system CA certificates.string: Path to a custom CA bundle file (e.g./path/to/cacert.pem).
- Added
- HTTP Transport Integration:
- Guzzle: Configured via
'verify' => $config->verifySsl ?? false. - cURL: Sets
CURLOPT_SSL_VERIFYPEER/CURLOPT_SSL_VERIFYHOSTand appliesCURLOPT_CAINFOwhen a CA bundle path is provided.
- Guzzle: Configured via
- Application Orchestrator Support:
- Added
verify_sslkey support inAppconfiguration array and.env.
- Added
- Documentation & LLM Hub:
- Updated API catalog cards in
docs/guide/configuration.md. - Regenerated
llms-full.txtand downloadable offline skill package (tueen-telegram-bot-api-sdk.zip).
- Updated API catalog cards in
- Test Suite:
- Added dedicated unit tests in
GuzzleHttpClientTestand updatedTelegramClientTest/Php85FeaturesTest.
- Added dedicated unit tests in
π» Usage Example
use Tueen\Telegram\Telegram;
// 1. Disable SSL verification (default behavior)
$bot = Telegram::create('YOUR_BOT_TOKEN')
->withVerifySsl(false)
->client();
// 2. Enable standard SSL verification
$bot = Telegram::create('YOUR_BOT_TOKEN')
->withVerifySsl(true)
->client();
// 3. Use a custom CA bundle file
$bot = Telegram::create('YOUR_BOT_TOKEN')
->withVerifySsl('/etc/ssl/certs/custom-ca.pem')
->client();
Or via direct configuration / config.php:
return [
'token' => 'YOUR_BOT_TOKEN',
'verify_ssl' => false, // bool or path string
];
π¦ Full Changelog
Full Changelog: https://github.com/tueen/telegram/compare/v1.0.0-alpha.1...v1.0.0-alpha.2