Skip to content
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

Problem with reporting messages #297

Closed
xmongkk opened this issue Oct 16, 2024 · 2 comments
Closed

Problem with reporting messages #297

xmongkk opened this issue Oct 16, 2024 · 2 comments
Labels
telegram api Questions about Telegram API should be asked on StackOverflow

Comments

@xmongkk
Copy link

xmongkk commented Oct 16, 2024

After updating to the latest version
There is no longer ReportReason
But the code now requires a variable of type byte

public static Task<ReportResult> Messages_Report(this Client client, InputPeer peer, int[] id, byte[] option, string message);

I think there is a problem
my Old code


                                       var easonaa2 = uint.Parse(gg.Data6.Trim());
                                        ReportReason ssReason;
                                        if (Enum.IsDefined(typeof(ReportReason), easonaa2))
                                        {
                                            ssReason = (ReportReason)easonaa2;
                                        }
                                        else
                                        {

                                            ssReason = ReportReason.Other;
                                        }
                                      
                                
                                        var userinfox = await Clientuser.Messages_Report(xsx, numbers, ssReason, gg.Data3);

@wiz0u
Copy link
Owner

wiz0u commented Oct 16, 2024

I'm just updating layer as Telegram Client API changes. I'm not responsible for this breaking change and new changes/features are usually undocumented for a while. In any case, here is not the place to ask.

@wiz0u wiz0u added the telegram api Questions about Telegram API should be asked on StackOverflow label Oct 16, 2024
Copy link

Please note that Github issues should be used only for problems with the library code itself.

For questions about Telegram API usage, you can search the API official documentation and the full list of methods.
WTelegramClient covers 100% of the API and let you do anything you can do in an official client.

If the above links didn't answer your problem, click here to ask your question on StackOverflow so the whole community can help and benefit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
telegram api Questions about Telegram API should be asked on StackOverflow
Projects
None yet
Development

No branches or pull requests

2 participants