|
4 | 4 | [![Chat on Telegram][ico-telegram]][link-telegram]
|
5 | 5 | [![Latest Version on Packagist][ico-version]][link-packagist]
|
6 | 6 | [![Software License][ico-license]](LICENSE.md)
|
7 |
| -[![SensioLabsInsight][ico-sensiolabs]][link-sensiolabs] |
8 | 7 | [![Quality Score][ico-code-quality]][link-code-quality]
|
9 | 8 | [![Total Downloads][ico-downloads]][link-packagist]
|
10 | 9 |
|
@@ -62,6 +61,8 @@ You may not be able to send notifications if Telegram Bot API is not accessible
|
62 | 61 | you can either set a proxy by following the instructions [here](http://docs.guzzlephp.org/en/stable/quickstart.html#environment-variables) or
|
63 | 62 | use a web bridge by setting the `base_uri` config above with the bridge uri.
|
64 | 63 |
|
| 64 | +You can set `HTTPS_PROXY` in your `.env` file. |
| 65 | + |
65 | 66 | ## Usage
|
66 | 67 |
|
67 | 68 | You can now use the channel in your `via()` method inside the Notification class.
|
@@ -249,7 +250,7 @@ Notification::route('telegram', 'TELEGRAM_CHAT_ID')
|
249 | 250 | - `token($token)`: (string) Bot token if you wish to override the default token for a specific notification (optional).
|
250 | 251 | - `content('')`: (string) File caption, supports markdown. For more information on supported markdown styles, check out these [docs](https://telegram-bot-sdk.readme.io/reference#section-formatting-options).
|
251 | 252 | - `view($view, $data = [], $mergeData = [])`: (string) Blade template name with Telegram supported HTML or Markdown syntax content if you wish to use a view file instead of the `content()` method.
|
252 |
| -- `file($file, $type, $filename = null)`: Local file path or remote URL, `$type` of the file (Ex:`photo`, `audio`, `document`, `video`, `animation`, `voice`, `video_note_`) and optionally filename with extension. Ex: `sample.pdf`. You can use helper methods instead of using this to make it easier to work with file attachment. |
| 253 | +- `file(string|resource|StreamInterface $file, $type, $filename = null)`: Local file path or remote URL, `$type` of the file (Ex:`photo`, `audio`, `document`, `video`, `animation`, `voice`, `video_note_`) and optionally filename with extension. Ex: `sample.pdf`. You can use helper methods instead of using this to make it easier to work with file attachment. |
253 | 254 | - `photo($file)`: Helper method to attach a photo.
|
254 | 255 | - `audio($file)`: Helper method to attach an audio file (MP3 file).
|
255 | 256 | - `document($file, $filename = null)`: Helper method to attach a document or any file as document.
|
@@ -297,19 +298,15 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
|
297 | 298 | [ico-telegram]: https://img.shields.io/badge/@PHPChatCo-2CA5E0.svg?style=flat-square&logo=telegram&label=Telegram
|
298 | 299 | [ico-version]: https://img.shields.io/packagist/v/laravel-notification-channels/telegram.svg?style=flat-square
|
299 | 300 | [ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
|
300 |
| -[ico-travis]: https://img.shields.io/travis/laravel-notification-channels/telegram/master.svg?style=flat-square |
301 | 301 | [ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/laravel-notification-channels/telegram.svg?style=flat-square
|
302 | 302 | [ico-code-quality]: https://img.shields.io/scrutinizer/g/laravel-notification-channels/telegram.svg?style=flat-square
|
303 | 303 | [ico-downloads]: https://img.shields.io/packagist/dt/laravel-notification-channels/telegram.svg?style=flat-square
|
304 |
| -[ico-sensiolabs]: https://img.shields.io/sensiolabs/i/d28e31ec-55ce-4306-88a3-84d5d14ad3db.svg?style=flat-square |
305 | 304 |
|
306 | 305 | [link-phpchat]: https://phpchat.co/?ref=laravel-channel-telegram
|
307 | 306 | [link-telegram]: https://t.me/PHPChatCo
|
308 | 307 | [link-repo]: https://github.com/laravel-notification-channels/telegram
|
309 | 308 | [link-packagist]: https://packagist.org/packages/laravel-notification-channels/telegram
|
310 |
| -[link-travis]: https://travis-ci.org/laravel-notification-channels/telegram |
311 | 309 | [link-scrutinizer]: https://scrutinizer-ci.com/g/laravel-notification-channels/telegram/code-structure
|
312 |
| -[link-sensiolabs]: https://insight.sensiolabs.com/projects/d28e31ec-55ce-4306-88a3-84d5d14ad3db |
313 | 310 | [link-code-quality]: https://scrutinizer-ci.com/g/laravel-notification-channels/telegram
|
314 | 311 | [link-author]: https://github.com/irazasyed
|
315 | 312 | [link-contributors]: ../../contributors
|
0 commit comments