Git Product home page Git Product logo

Comments (14)

MBoretto avatar MBoretto commented on May 18, 2024

Is your link to hook.php secure (https)? In 0.17.2 Exceptions are logged this can help to understand the problem.

from core.

weiddolo avatar weiddolo commented on May 18, 2024

Yes is on HTTPS. I've update file TelegramException.php but i retrive always Input is empty!

from core.

weiddolo avatar weiddolo commented on May 18, 2024

This is LOG file:

2015-09-22 00:43:47 exception 'Longman\TelegramBot\Exception\TelegramException' with message 'Input is empty!' in /var/www/vhosts/domain.it/sub.domain.it//weiddolo/src/Telegram.php:330
Stack trace:
#0 /var/www/vhosts/domain.it/sub.domain.it/weiddolo/hook.php(30): Longman\TelegramBot\Telegram->handle()
#1 {main}

from core.

weiddolo avatar weiddolo commented on May 18, 2024

Any ideas?

from core.

danielberlin avatar danielberlin commented on May 18, 2024

The input should only be logged as empty when you directly access your hook.php in your browser. The requests from the Telegram API should not produce the empty error. Have a look at what is logged in the web server's error_log when Telegram requests hook.php.

I also have the problem that the bot does not answer but I think it's because the echo command is not set up properly and so far this is not documented how to do it.

from core.

weiddolo avatar weiddolo commented on May 18, 2024

With the 0.18.0 version i do not see this problem. But if i went in hook.php, the page is blank and the bot still does not respond

from core.

ShinDongHwan avatar ShinDongHwan commented on May 18, 2024

I want to solve same problem. i setted using set.php, but message 'Input is empty!'.
plz, help me...

from core.

MBoretto avatar MBoretto commented on May 18, 2024

If webhook has been set properly telegram will point to that address.
You don't need to open the page from you browser.
#38
#16

from core.

ShinDongHwan avatar ShinDongHwan commented on May 18, 2024

not solve...TT.

http://hscoop.esy.es/wordpress/tele/php-telegram-bot/examples/hook.php

and $telegram->setWebHook($url, $cert);
$url is hoop.php ??
$cert is ~.crt path??

i want you to understand my English skill.

from core.

MBoretto avatar MBoretto commented on May 18, 2024

feel free to reopen this

from core.

antonkazakov avatar antonkazakov commented on May 18, 2024

have the same problem. Web hook is set but hook.php says input is empty, bot does not respond

from core.

devdenis avatar devdenis commented on May 18, 2024

Have the same problem. Use SSL from Let's Encrypt, webhook is set, but have the error
Fatal error: Uncaught exception 'Longman\TelegramBot\Exception\TelegramException' with message 'Input is empty!' in /path/vendor/longman/telegram-bot/src/Telegram.php on line 414

from core.

noplanman avatar noplanman commented on May 18, 2024

The "Input is empty!" message is correct, as there is no input.

Have you tried enabling the error and debug logs?
Look here: https://github.com/akalongman/php-telegram-bot/blob/0.35/doc/01-utils.md#logging

Then you can try to send a command to your bot again and see if there is an entry in the logs that may explain what is wrong.

from core.

NabiKAZ avatar NabiKAZ commented on May 18, 2024

I had same problem, The problem is with SSL certificate, I renew key and resolve it.
You must check the hostname in here:
https://www.ssllabs.com/ssltest/analyze.html
And make sure Trusted is Yes.

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.