Replies: 4 comments 10 replies
-
Please read documentation more precise, you have not registered any handler: https://westacks.github.io/telebot/#/updates 'handlers' => [
// Your update handlers
], |
Beta Was this translation helpful? Give feedback.
-
In which method to write the handler? |
Beta Was this translation helpful? Give feedback.
-
'bots' => [
'admar' => [
'token' => env('TELEGRAM_BOT_TOKEN'),
'name' => env('TELEGRAM_BOT_NAME', null),
'api_url' => env('TELEGRAM_API_URL', 'https://api.telegram.org/bot{TOKEN}/{METHOD}'),
'exceptions' => true,
'async' => true,
'webapp' => [
'redirect_url' => '/auth/telegram/callback',
],
'webhook' => [
'url' => env(
'TELEGRAM_BOT_WEBHOOK_URL',
env('APP_URL') . '/api/telebot/webhook/bot/' . env('TELEGRAM_BOT_TOKEN')
),
// 'certificate' => env('TELEGRAM_BOT_CERT_PATH', storage_path('app/ssl/public.pem')),
// 'ip_address' => '8.8.8.8',
// 'max_connections' => 40,
// 'allowed_updates' => ["message", "edited_channel_post", "callback_query"],
// 'secret_token' => env('TELEGRAM_KEY', null),
],
'poll' => [
'limit' => 100,
'timeout' => 0,
'allowed_updates' => ["message", "edited_channel_post", "callback_query"]
],
'handlers' => [
// \App\Telegram\Handlers\AdmarHandler::class,
\App\Telegram\Handlers\Admar\StatAdmarBotHandler::class,
],
], |
Beta Was this translation helpful? Give feedback.
-
It seems like you're trying to set up a Telegram bot webhook using Laravel and the TeleBot package, but you're not receiving any updates in your webhook. There could be several reasons for this issue. Let's go through some troubleshooting steps to help you identify and resolve the problem:
By following these steps and adding debugging statements, you should be able to identify the issue and get your Telegram bot webhook working correctly. Make sure to monitor your server logs for any errors or issues that may arise during the webhook setup process. |
Beta Was this translation helpful? Give feedback.
-
Good afternoon, for a week now I can’t figure out why the webhook doesn’t return anything to me?
Tried on a live server, tried through polling
Here is the code
web.php
telebot.php
TelegramBotAdmarController.php
but for some reason I can't write anything to the log
Beta Was this translation helpful? Give feedback.
All reactions