Download the PHP package symfony/telegram-notifier without Composer
On this page you can find all versions of the php package symfony/telegram-notifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download symfony/telegram-notifier
More information about symfony/telegram-notifier
Files in symfony/telegram-notifier
Package telegram-notifier
Short Description Symfony Telegram Notifier Bridge
License MIT
Homepage https://symfony.com
Informations about the package telegram-notifier
Telegram Notifier
Provides Telegram integration for Symfony Notifier.
DSN example
where:
TOKEN
is your Telegram tokenCHAT_ID
is your Telegram chat id
Adding Interactions to a Message
With a Telegram message, you can use the TelegramOptions
class to add
message options.
Adding files to a Message
With a Telegram message, you can use the TelegramOptions
class to add
message options.
:warning: WARNING In one message you can send only one file
Telegram supports 3 ways for passing files:
-
You can send files by passing public http url to option:
-
Photo
-
Video
-
Animation
-
Audio
-
Document
- Sticker
-
-
You can send files by passing local path to option, in this case file will be sent via multipart/form-data:
-
Photo
-
Video
-
Animation
-
Audio
-
Document
- Sticker
-
-
You can send files by passing file_id to option:
-
Photo
-
Video
-
Animation
-
Audio
-
Document
- Sticker - Can't be sent using file_id
-
Full example:
Adding Location to a Message
With a Telegram message, you can use the TelegramOptions
class to add
message options.
Adding Venue to a Message
With a Telegram message, you can use the TelegramOptions
class to add
message options.
Adding Contact to a Message
With a Telegram message, you can use the TelegramOptions
class to add
message options.
Updating Messages
The TelegramOptions::edit()
method was introduced in Symfony 6.2.
When working with interactive callback buttons, you can use the TelegramOptions
to reference a previous message to edit.
Answering Callback Queries
The TelegramOptions::answerCallbackQuery()
method was introduced in Symfony 6.3.
When sending message with inline keyboard buttons with callback data, you can use
TelegramOptions
to answer callback queries.
Resources
All versions of telegram-notifier with dependencies
symfony/http-client Version ^6.4|^7.0
symfony/mime Version ^6.4|^7.0
symfony/notifier Version ^6.4|^7.0