Skip to content

How can I find out that the bot is blocked? #75

Discussion options

You must be logged in to vote

The reason you don't get an exception there is because TelegramNotification class is only creating a dataset for future notification, so there are no errors yet. Sending of notification happens internally

public function send(mixed $notifiable, Notification $notification)
{
$data = call_user_func([$notification, 'toTelegram'], $notifiable);
$data = new TelegramNotification((string) $data);
$data = $data->jsonSerialize();
$bot = $this->botmanager->bot($data['bot'] ?? null);
$this->dispatcher->dispatch(new NotificationSending($notifiable, $notification, static::clas…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by punyflash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants