I am using follow code:
_clientTelegram.OnUpdate += ListenUpdate;
And Handler
of listener updates:
private async Task ListenUpdate(IObject arg)
{
if (arg is not UpdatesBase updates)
{
_logger.LogWarning($"received not UpdatesBase event: {arg.GetType()}");
return;
}
foreach (var update in updates.UpdateList)
switch (update)
{
case UpdateNewMessage unm: await ProcessEventMessage(unm.message); break;
case UpdateEditMessage uem: await ProcessEventMessage(uem.message); break;
default: _logger.LogInformation($"handle a type message type: {update.GetType().Name}"); break;
}
}
And what names of event, where I undersand that new comment added?
Or on every UpdateEditMessage
I have to using await _clientTelegram.Messages_GetReplies(peerChanel, telegramMessageId, limit: MaxRowsComments)
?