pluginsGLPI / telegrambot

Telegram Bot for GLPI
https://pluginsglpi.github.io/telegrambot/
GNU General Public License v3.0
39 stars 33 forks source link

Error in messagelistener #10

Open jeffersantoss opened 7 years ago

jeffersantoss commented 7 years ago

Description in log: Action completed, no processing required Details inside item log Running status: Error. Telegram returned an invalid response! Please review your bot name and API key.

I tried with two different bot names and I'm totally sure that token and username are correct but I still the error.

erro_glpi

marcelofares commented 7 years ago

I have this same problem. Did you solve it in what way?

matrixsupport commented 6 years ago

Me too has this Issue !

newtonnh commented 6 years ago

Me too, I already reinstalled my server about six times, but the problem is not solved.

But I do not know if this will help anyone in any way, but there it goes: If you followed GLPi setup guide probably you put as database password something like that something@something. I found on Internet a tip to edit manually the file config_db.php, verify the password, I don't know why, into file config_db.php the "at" appears something like that "%40", I've changed the "%40" for "@", to me the error on GLPi is solved, in my case I've configured to receive a message as a new ticket is open, but this function isn't work yet. I'm still looking for any tip to solve this problem.

Regards

mays1509 commented 6 years ago

I also have that problem, I'm new to the tool, and this is solved?

Drumhazzard commented 6 years ago

Hi All!

I have the same error that @jeffersantoss I try with some differents bots, usernames and tokens, but the issue persits

:(

Drumhazzard commented 6 years ago

¡Solved!

In Windows clients, you need to modify ...\plugins\telegrambot\vendor\longman\telegram-bot\src\Request.php

You must add 'verify' ==> false, at line 215

Like this: self::setClient(new Client(['base_uri' => self::$api_base_uri,'verify' => false,]));

LordBat commented 6 years ago

Hi, any advance about this? i still have the same issue "Error. Telegram returned an invalid response! Please review your bot name and API key." I put the correct API key, and bot name. i try to modify the "Request.php" but the problem continue.

This is my enviroment:

Ubuntu Server 16.04 php 7.0 mariaDB 10

any suggestion will be great.

Thanks and Regards!

yustas84 commented 6 years ago

Hello. We have same problem. tried all the above, the problem remains

sazanof commented 6 years ago

+++ Please help us!

sazanof commented 6 years ago

try this! its solved for me

.... 'base_uri' => 'https://api.telegram.org', 'proxy' => 'socks5://218.248.73.193:1080', 'verify' => false,

marcelofares commented 6 years ago

The tip of our friend Drumhazzard solved it for me.

In Windows clients, you need to modify ... \ plugins \ telegrambot \ vendor \ longman \ telegram-bot \ src \ Request.php

You must add 'verify' ==> false, at line 215

Like this: self :: setClient (new Client (['base_uri' => self :: $ api_base_uri, 'verify' => false,]));

yustas84 commented 6 years ago

This doesn't help too self::setClient(new Client(['base_uri' => ' https://api.telegram.org ', 'proxy' => 'socks5: //218.248.73.193: 1080', 'verify' => false])); image

image

sazanof commented 6 years ago

Try this. Its worked for me

self::setClient(new Client(['base_uri' => self::$api_base_uri,'proxy'=>'socks5://yahaha.us:yahaha.us@socks5-a.yahaha.win:2019']));

if no ssl, then add 'verify' => false