Community Server/Control Panel version: Version: 7.3.3 (build:49)
Type of installation of Workspace: exe
OS: Windows Server 2019
Issue:
I have a problem with the Telegram Service to send notifications.
I have created the bot as indicated in the instructions, and them copy the token and the user and past it in Telegram configuration options in Onlyoffice Community, and in the subscription’s options, I active telegram and connect it to the bot with the /start message and the bot response in Ok! but from there I don’t get notifications.
-
- Is there any additional port that must be open for Telegram notifications to work?
-
- What additional configuration should be done?
One of the first things I check if the Telegram service are running in Windows Server services
Telegram Log:
2024-06-05 17:38:07,210 ERROR [33] ASC.Telegram - Telegram.Bot.Exceptions.RequestException: Exception during making request ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. ---> System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
--- End of inner exception stack trace ---
at System.Net.Security._SslStream.EndRead(IAsyncResult asyncResult)
at System.Net.TlsStream.EndRead(IAsyncResult asyncResult)
at System.Net.PooledStream.EndRead(IAsyncResult asyncResult)
at System.Net.Connection.ReadCallback(IAsyncResult asyncResult)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Telegram.Bot.TelegramBotClient.<<MakeRequestAsync>g__SendRequestAsync|22_0>d`1.MoveNext() in /_/src/Telegram.Bot/TelegramBotClient.cs:line 193
--- End of inner exception stack trace ---
at Telegram.Bot.TelegramBotClient.<<MakeRequestAsync>g__SendRequestAsync|22_0>d`1.MoveNext() in /_/src/Telegram.Bot/TelegramBotClient.cs:line 208
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Telegram.Bot.TelegramBotClient.<MakeRequestAsync>d__22`1.MoveNext() in /_/src/Telegram.Bot/TelegramBotClient.cs:line 137
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Telegram.Bot.Extensions.Polling.DefaultUpdateReceiver.<ReceiveAsync>d__4.MoveNext() in /_/src/Telegram.Bot.Extensions.Polling/DefaultUpdateReceiver.cs:line 75
2024-06-06 00:20:56,439 ERROR [26] ASC.Telegram - Telegram.Bot.Exceptions.RequestException: Exception during making request ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. ---> System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
--- End of inner exception stack trace ---
at System.Net.Security._SslStream.EndRead(IAsyncResult asyncResult)
at System.Net.TlsStream.EndRead(IAsyncResult asyncResult)
at System.Net.PooledStream.EndRead(IAsyncResult asyncResult)
at System.Net.Connection.ReadCallback(IAsyncResult asyncResult)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Telegram.Bot.TelegramBotClient.<<MakeRequestAsync>g__SendRequestAsync|22_0>d`1.MoveNext() in /_/src/Telegram.Bot/TelegramBotClient.cs:line 193
--- End of inner exception stack trace ---
at Telegram.Bot.TelegramBotClient.<<MakeRequestAsync>g__SendRequestAsync|22_0>d`1.MoveNext() in /_/src/Telegram.Bot/TelegramBotClient.cs:line 208
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Telegram.Bot.TelegramBotClient.<MakeRequestAsync>d__22`1.MoveNext() in /_/src/Telegram.Bot/TelegramBotClient.cs:line 137
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Telegram.Bot.Extensions.Polling.DefaultUpdateReceiver.<ReceiveAsync>d__4.MoveNext() in /_/src/Telegram.Bot.Extensions.Polling/DefaultUpdateReceiver.cs:line 75