-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New classes for API 6.3: ForumTopic
, ForumTopicCreated
, ForumTopicClosed
, ForumTopicReopened
#3356
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
Conversation
Actually, again, maybe the tests are worth adding when the methods are there, so it might make sense to review this as it is, then hopefully merge, and then we'll add tests with real methods. |
…Created` + change docstring for the module will add tests for `ForumTopic` later on
`TelegramObject`'s `de_json()` will work fine if `None` is passed instead of empty dict
2 tests copied/pasted from another branch still fail
This seems ready to be merged if there are no other comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that all 7 forum methods have been implemented upstream, test_forum.py
should be updated to test that.
Also we can add filters for the new status messages (ForumTopicCreated, etc). See filters.StatusUpdate
as examples on how to add them, it's fairly straightforward.
# Conflicts: # docs/source/telegram.rst # telegram/_message.py
* `icon_color` and `icon_custom_emoji_id` must be optional * remove link to `Message.create_forum_topic` from docstring (there will be no such shortcut)
I'm having trouble adding a test for I tried to see how it was done for other classes representing service messages, but tests for classes like |
return 'ForumTopic', not bool
addresses #3340
ForumTopic
,ForumTopicCreated
, empty classesForumTopicClosed
,ForumTopicReopened
Message
:forum_topic_created
,forum_topic_closed
,forum_topic_reopened
to_dict
,__eq__
etc. for each classtelegram.error.BadRequest: Chat_not_modified.
)