Skip to content

Conversation

@Eldinnie
Copy link
Member

This adds the functionality suggested by @bomjacob to pass an object to the relevant send_* method.
For example send_video not accepts either a string, file or telegram.Video object (in which case it will use it;s file_id).

I also added this for send_location, _venue and _contact which means I added an extra parameter to those methods (in the end) and raise a TypeError when the required arguments nor the object parameter is given.

added tests for these new feature and adjusted the test_official to ignore the added parameters.

Lastly I noticed the TG-docs have updated the MaskPosition by renaming zoom to scale. I also updated this.

Audio
Contact,
Document
Location
Photo
Sticker
Venue
Video
VideoNote
Voice
Docstring check
updating sticker arguments
Changelog
@Eldinnie Eldinnie requested a review from tsnoam July 24, 2017 17:17
@Eldinnie
Copy link
Member Author

fixes #731

@Eldinnie Eldinnie mentioned this pull request Jul 24, 2017
@tsnoam tsnoam merged commit 8d1d38c into master Jul 24, 2017
@tsnoam tsnoam deleted the improved_send_methods branch July 24, 2017 22:35
@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