Telegram-Bot-API icon indicating copy to clipboard operation
Telegram-Bot-API copied to clipboard

Request 400 Error

Open nicktan147 opened this issue 10 years ago • 1 comments

Everything works fine, until I chat with the bot, it came out 400 error.

C:\xampp\htdocs\whatsapp\v3\telegram\examples>php exampleFunctional.php
####################################
#          Telegram CLIENT         #
####################################

Get Bot Information:
{"ok":true,"result":{"id":17######56,"first_name":"NickBot","username":"Nick147_b
ot"}}

Fatal error: Call to undefined function finfo_open() in C:\xampp\htdocs\whatsapp
\v3\telegram\src\Telegram.php on line 440

nicktan147 avatar Feb 02 '16 10:02 nicktan147

Have a look at your php.ini file and check that the fileinfo.so or php_fileinfo.dll is activated (depending on your platform and version).

There should be a line similar to

extension=fileinfo.so

in your php.ini file

mgp25 avatar Feb 02 '16 10:02 mgp25