josereyero/telegram

execute command on telegram-cli

Opened this issue · 1 comments

tank you for writing this wrapper on telegram-cli.
I read you library ant have a question about one class.
why you wait current thread for 100 millisecond in class TelegramProcess.php line 128?

https://github.com/josereyero/telegram/blob/master/lib/Drupal/telegram/TelegramProcess.php#L128

tank you

The reason is telegram-cli being asynchronous so at some points we had to introduce some waiting times and time outs that would allow to get a proper response or to go on with the process otherwise.

Through testing we found that time to work most of the times.