Download the PHP package maxbond/telegram-custom-url without Composer
On this page you can find all versions of the php package maxbond/telegram-custom-url. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download maxbond/telegram-custom-url
More information about maxbond/telegram-custom-url
Files in maxbond/telegram-custom-url
Package telegram-custom-url
Short Description Telegram Notifications Driver
License MIT
Homepage https://github.com/laravel-notification-channels/telegram
Informations about the package telegram-custom-url
Telegram Notifications Channel for Laravel 5.3 [WIP]
This package makes it easy to send Telegram notification using Telegram Bot API with Laravel 5.3.
Contents
- Installation
- Setting up your Telegram bot
- Usage
- Available Message methods
- Alternatives
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
You must install the service provider:
Setting up your Telegram Bot
Talk to @BotFather and generate a Bot API Token.
Then, configure your Telegram Bot API Token:
Usage
You can now use the channel in your via()
method inside the Notification class.
Here's a screenshot preview of the above notification on Telegram Messenger:
Attach a Photo
Sample :
Attach a Document
Sample :
Routing a message
You can either send the notification by providing with the chat id of the recipient to the to($chatId)
method like shown in the above example or add a routeNotificationForTelegram()
method in your notifiable model:
Available Message methods
to($chatId)
: (integer) Recipient's chat id.content('')
: (string) Notification message, supports markdown. For more information on supported markdown styles, check out these docs.button($text, $url)
: (string) Adds an inline "Call to Action" button. You can add as many as you want and they'll be placed 2 in a row.options([])
: (array) Allows you to add additional or overridesendMessage
payload (A Telegram Bot API method used to send message internally). For more information on supported parameters, check out these docs.
Alternatives
For advance usage, please consider using telegram-bot-sdk instead.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- Syed Irfaq R.
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of telegram-custom-url with dependencies
guzzlehttp/guzzle Version ^6.2
illuminate/notifications Version >=5.3
illuminate/support Version >=5.1