Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many unwanted messages #109

Open
boesbo opened this issue Sep 18, 2019 · 2 comments
Open

Many unwanted messages #109

boesbo opened this issue Sep 18, 2019 · 2 comments

Comments

@boesbo
Copy link

boesbo commented Sep 18, 2019

unreal4u/telegram-api v3.5.0 A complete Telegram bot API implementation written in PHP, with support for inline bot

Often it happens (not always) that I send a message via the bot and I receive many more. Of the times 2/3 of the times also 10. Even with a simple code like this recalled 1 time.

$loop = Factory::create();
$sendMessage = new SendMessage();
$sendMessage->text = 'Test message';
$sendMessage->chat_id = $chatId;
$promise = $tgLog->performApiRequest($sendMessage);
$promise->then(
  function ($response) {},
  function (\Exception $exception) {
    throw new Exception($exception->getMessage());
  }
);
$loop->run();
@unreal4u
Copy link
Owner

Hi! Do you mean you are getting 10 exceptions? In that case, what does the exception say?

@boesbo
Copy link
Author

boesbo commented Nov 10, 2019

I tested thoroughly. No exceptions are launched. It probably happens when an immediate response is not received then a second one is sent (third, fourth, fifth).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants