-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
UpdateEditChannelMessage gets improperly triggered #221
Comments
You should give more details about your problem.
|
If there is effectively an UpdateEditChannelMessage in the logs, then it's Telegram server behaviour, not the library's. |
Version of WTelegramClient: 3.6.1 I did exactly what you asked for, using
|
ah sorry, i meant to log type of each received update.. foreach (var update in updates.UpdateList)
{
Console.WriteLine(update.GetType().Name);
... |
Sure. I added this line: foreach (var update in updates.UpdateList)
{
_logger.LogInformation("Update type: {Update}", update.GetType().Name); // <-----
switch (update)
/// ... Now the log looks like this:
I can confirm that the message was NOT edited. So, if it's not some kind of bug in the library, I really don't know why Telegram server would send this wrong data.
|
maybe it's not the message itself that was modified but something around it, like reactions, fwd_from infos, topic info, ... anyway, it's a Telegram server notification, so... 🤷🏻♂️ Reminder: this library is developed independently from Telegram teams. |
My sample code (based on this documented example: https://github.com/wiz0u/WTelegramClient/blob/master/Examples/Program_ListenUpdates.cs?ts=4#L23):
Everytime someone posts something new (WITHOUT ANY EDITING) in a supergroup I'm monitoring, my console looks like this:
The text was updated successfully, but these errors were encountered: