- Notifications
You must be signed in to change notification settings - Fork5.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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
lemontree210 commentedNov 11, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 modulewill add tests for `ForumTopic` later on
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
`TelegramObject`'s `de_json()` will work fineif `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). Seefilters.StatusUpdate
as examples on how to add them, it's fairly straightforward.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
# 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)
lemontree210 commentedNov 17, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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.
)