irazasyed
Repos
41
Followers
481
Following
6

πŸ€– Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.

2560
605

⛅️ Curated list of awesome Cloudflare worker recipes, open-source projects, guides, blogs and other resources.

366
22

πŸ“Š Laravel Google Analytics Measurement Protocol Package

297
25

✈️ Telegram Notifications Channel for Laravel

775
140

πŸ“¦ Adds Laravel Packages Support to Lumen and Vendor Publish Artisan Command.

127
18

πŸ“¨ Facebook Notifications Channel for Laravel

141
31

Events

CouldNotSendNotification. cURL error 60: SSL certificate problem

Hi,

I'm getting following errors:

NotificationChannels\Telegram\Exceptions\CouldNotSendNotification

The communication with Telegram failed. `GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: self signed certificate in certificate chain (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.telegram.org/bot516004118:AAEKsPOlk4XKHOjtLtjGGiQhCno_fGVL/sendMessage in D:\Program Files\xampp\htdocs\roster-notifications-webservice\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:211

Created at 5 days ago
CouldNotSendNotification. cURL error 60: SSL certificate problem

Refer https://github.com/guzzle/guzzle/issues/1935#issuecomment-371756738

Created at 5 days ago
Created at 6 days ago
Call to undefined method NotificationChannels\Telegram\TelegramMessage::file()

Please look at the docs and the screenshot you shared. It should be TelegramFile::create()

Created at 1 week ago
Call to undefined method NotificationChannels\Telegram\TelegramMessage::file()

image

Created at 1 week ago
Call to undefined method NotificationChannels\Telegram\TelegramMessage::file()

Read docs. TelegramMessage doesn't have that method. You should be using TelegramFile.

Created at 1 week ago
started
Created at 2 weeks ago
Fix Chunk method error

Thanks

Created at 2 weeks ago
Method Chunk throws an error

Hi. Method chunk throws an error:

Call to a member function getBody() on array

in the file vendor/laravel-notification-channels/telegram/src/TelegramChannel.php: 73

Please fix :)

Created at 2 weeks ago

fix Chunk method error (#163)

Created at 2 weeks ago
Fix Chunk method error

Fixes #162

Created at 2 weeks ago
Created at 3 weeks ago
Created at 4 weeks ago
started
Created at 4 weeks ago
Created at 4 weeks ago
Created at 4 weeks ago
Created at 1 month ago
Created at 1 month ago
Created at 1 month ago
Created at 1 month ago
Created at 1 month ago
started
Created at 1 month ago
Created at 1 month ago
Why image uploaded Telegram message is broken in 41 b size?

In laravel app (9.19) with guzzlehttp(7.2 ) and "laravel-notification-channels/telegram (3.0 ) I send image attached to post request like :


    $response = Http::attach('document', $fileUrlToUpload, 'document.png')
        ->post(self::telegramApiUrl.$this->telegramBotToken.'/sendDocument', [
        'chat_id' => $this->channelUserId,
        'reply_to_message_id' => $replyId
    ] );

where $fileUrlToUpload - is valid url to image at my local hosting (I work on kubuntu 20.04 with apache2). and $telegramApiUrl = 'api.tlgr.org/bot'; My message at appers at Telegram channel, but image in Telegram message is broken and has 41b in size.

I replaced value of $fileUrlToUpload with accessible image url, but anyway image in Telegram message is broken and has 41b in size.

How that can be fixed ?

Thanks!

Created at 1 month ago
Why image uploaded Telegram message is broken in 41 b size?

That's not how to attach image. Refer readme.

Created at 1 month ago
started
Created at 1 month ago
Created at 1 month ago
started
Created at 1 month ago
Created at 1 month ago
How do I get the status of the sent message "ok" and "message_id?

telegram method sendmessage returns the response {"ok":true,"result":{"message_id":7661 How do I get the status of the sent message "ok" and "message_id?

It would be logical for TelegramMessage::create() to return a telegram response, but it returns the message before sending

        $result = TelegramMessage::create()
            // Optional recipient user id.
            ->to($notifiable)
            ->options($options)
            ->content("test msg")
            ->buttonWithCallback('Test callback button', 'unfollow:unfollow_confirm:');

        dd($result);
        
        NotificationChannels\Telegram\TelegramMessage {#1291 β–Ό // app\Notifications\SendMsg.php:98
          +chunkSize: null
          +token: null
          #payload: array:5 [β–Ά
            "text" => "test msg"
            "parse_mode" => "HTML"
            "chat_id" => "215050601"
            "disable_notification" => true
            "reply_markup" => "{"inline_keyboard":[[{"text":"Test callback button","callback_data":"unfollow:unfollow_confirm:"}]]}"
          ]
          #buttons: array:1 [β–Ά
            0 => array:2 [β–Ά
              "text" => "Test callback button"
              "callback_data" => "unfollow:unfollow_confirm:"
            ]
          ]
        }
Created at 1 month ago