Skip to content

Conversation

@jsmnbom
Copy link
Member

@jsmnbom jsmnbom commented May 21, 2017

refs #617

jsmnbom added 2 commits May 21, 2017 14:32
Keep old for now... we can remove it in the future when telegram stops parsing it along.
Also: TODO: write proper Message tests
@jsmnbom jsmnbom changed the base branch from master to beta May 21, 2017 12:45
@jsmnbom jsmnbom changed the base branch from beta to master May 21, 2017 13:41
@tsnoam tsnoam self-requested a review May 22, 2017 21:29
Copy link
Member

@tsnoam tsnoam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments on code.
Other than that, looks good :)

thumb_url,
mpeg4_width=None,
mpeg4_height=None,
mpeg4_duration=None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We had discussions about this in the past. Should new parameters be added in the location where Telegram documentation added them or in the end of the parameters list (before kwargs) to avoid backward compatibility issues.
I prefer the latter.
@jh0ker what do you think?

self.contact = contact
self.location = location
self.venue = venue
self.new_chat_member = new_chat_member
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should help our users by storing the value on self._new_chat_member and make new_chat_member a property + deprecation warning.

return self.bot.getUserProfilePhotos(self.id, *args, **kwargs)

@staticmethod
def de_list(data, bot):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just saying (don't think anything should be changed atm):
JSON can also be a list, so our notion of de_json & to_json should be fixed. (future todo?)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, so you're saying we shouldn't both have a de_list and a de_json, but that de_json should do both?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. but not now. we need to open an issue so we won't forgot.

thumb_url,
gif_width=None,
gif_height=None,
gif_duration=None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment like mpeg4_duration below.

@tsnoam tsnoam mentioned this pull request May 22, 2017
@tsnoam tsnoam merged commit 858684a into master May 26, 2017
@jsmnbom jsmnbom deleted the may18minor branch June 18, 2017 10:43
@github-actions github-actions bot locked and limited conversation to collaborators Aug 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants