-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Open
Description
Description
We can specify the user ID when sending push messages. It may be better to allow configuring the recipient dynamically.
I can be assigned for this.
Example
Implementation reference:
symfony/src/Symfony/Component/Notifier/Bridge/Telegram/TelegramOptions.php
Lines 36 to 49 in 9d89e05
public function getRecipientId(): ?string | |
{ | |
return $this->options['chat_id'] ?? null; | |
} | |
/** | |
* @return $this | |
*/ | |
public function chatId(string $id): static | |
{ | |
$this->options['chat_id'] = $id; | |
return $this; | |
} |
$options['chat_id'] ??= $message->getRecipientId() ?: $this->chatChannel; |