P
P
part_os2020-07-03 21:53:30
Laravel
part_os, 2020-07-03 21:53:30

Telegram Bot does not always respond, why?

Someone faced a problem why the bot does not always respond? a simple command to respond after execution. but the bot, for some reason I don’t understand, either answers or no. the code is executed, before that the software divides and logging
is done using Laravel and Telegram, Bot SDK

Log::info('TELEGRAM BOT INCOME SetValueHabit: SAVE RESULT ' . json_encode($resultValue));

$state->delete();
Telegram::sendMessage([
                                        'chat_id' => $chid,
                                        'text' => 'Отлично! Результат записал.',
                                    ]);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
part_os, 2020-10-29
@part_os

figured it out, it was necessary to do return Telegram::sendMessage

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question