Comments (14)
Is your link to hook.php secure (https)? In 0.17.2 Exceptions are logged this can help to understand the problem.
from core.
Yes is on HTTPS. I've update file TelegramException.php but i retrive always Input is empty!
from core.
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.
Any ideas?
from core.
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.
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.
I want to solve same problem. i setted using set.php, but message 'Input is empty!'.
plz, help me...
from core.
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.
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.
feel free to reopen this
from core.
have the same problem. Web hook is set but hook.php says input is empty, bot does not respond
from core.
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.
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.
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)
- Using static methods is bad idea HOT 5
- Unable to add a command that handles web_app_daa HOT 2
- Bot API 6.9
- Can't have more than 1 class for generics messages HOT 1
- Bot so slow work...
- getUpdates Fatal error when no connection
- How to send message outside webhooks? HOT 1
- sendDocument doesn't have option to specify only file_id as String to send a file that exists on the Telegram servers HOT 2
- Need help basic flow getUpdates HOT 2
- /chats * with multiple bots HOT 1
- Chat boost
- LoginUrl and Page Security
- MessageOrigin
- forward inline_keyboard with data to command HOT 3
- CallbackqueryCommand -> executeCommand HOT 2
- Bot API 7.0
- Parallel commands HOT 7
- "PHP Deprecated: ... " HOT 3
- Provide further variables to *all* commands.
- Fix PHP Error - Call to a member function getChat() on null
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.