errors_to_telegram function

Divert output errors to the telegram bot