New classes for API 6.3: ForumTopic, ForumTopicCreated, ForumTopicClosed, ForumTopicReopened#3356
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. |
harshil21
left a comment
There was a problem hiding this comment.
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,ForumTopicReopenedMessage:forum_topic_created,forum_topic_closed,forum_topic_reopenedto_dict,__eq__etc. for each classtelegram.error.BadRequest: Chat_not_modified.)