Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hmchenaran's avatar

How to Create On-Demand Telegram Notifications in laravel

hello.

I have decided to send information to Telegram through laravel notification system.

I found two interesting packages for this:

1- irazasyed/telegram-bot-sdk 2- laravel-notification-channels/telegram

Using the first package, I was only able to send a message to a channel while I want the message to be sent to a specific user, not to the channel

I could not send a message in the second package because the following error occurred: The communication with Telegram failed. `GuzzleHttp \ Exception \ ConnectException: cURL error 28:

I want to send a specific message to a user (which may not be in the database) via telegram. Can anyone come up with a solution?

0 likes
2 replies
hmchenaran's avatar

Thank you

I had seen this tutorial before but had trouble installing it.

I think the second package I introduced is suitable for this, the laravel-notification-channels / telegram package. But because Telegram is filtered in our country, I think the connection to Telegram is not done.

If something can be done through my communication proxy, I think my problem will be solved

Please or to participate in this conversation.