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

Can't instantiate ForumTopicClosed and ForumTopicReopened #413

Open
BoShurik opened this issue Apr 25, 2023 · 3 comments
Open

Can't instantiate ForumTopicClosed and ForumTopicReopened #413

BoShurik opened this issue Apr 25, 2023 · 3 comments

Comments

@BoShurik
Copy link
Contributor

While working on #412 found that ForumTopicClosed and ForumTopicReopened always null as there is no additional information.

@bernard-ng can you take a glance?

@bernard-ng
Copy link
Contributor

bernard-ng commented Jul 9, 2023

@BoShurik okay

yes for the moment there is no information in these classes as mentioned in telegram api 6.3, this is a special case

https://core.telegram.org/bots/api#forumtopicclosed
https://core.telegram.org/bots/api#forumtopicreopened

ForumTopicReopened
This object represents a service message about a forum topic reopened in the chat. Currently holds no information.

ForumTopicClosed
This object represents a service message about a forum topic closed in the chat. Currently holds no information.

@BoShurik
Copy link
Contributor Author

So it's not possible to handle those objects. Any workaround?

@bernard-ng
Copy link
Contributor

for the moment no idea, we'd have to consider this case, whether it's possible to have an empty json {} or instantiate a class that has no property

I could look into this as soon as I've got a bit of time, and run some tests too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants