X Tutup
Skip to content

enable sending by URL for all sendX methods#151

Merged
jh0ker merged 10 commits intomasterfrom
urls
Jan 13, 2016
Merged

enable sending by URL for all sendX methods#151
jh0ker merged 10 commits intomasterfrom
urls

Conversation

@jh0ker
Copy link
Copy Markdown
Member

@jh0ker jh0ker commented Jan 10, 2016

No description provided.

@leandrotoledo leandrotoledo self-assigned this Jan 10, 2016
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

os.path.basename also works with URIs, like
basename('http://abc.com/test.mp3')
=> 'test.mp3'

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good catch!

@leandrotoledo
Copy link
Copy Markdown
Member

Did some minor comments, but code looks good.
Would be nice to have tests for audio, video and voice as well. We could even point to this repo' data folder to get the files.

@jh0ker
Copy link
Copy Markdown
Member Author

jh0ker commented Jan 10, 2016

@leandrotoledo Nice! I'll get on that :)

@leandrotoledo
Copy link
Copy Markdown
Member

Adding some tests for send(Audio,Video,Voice) by URL, although, tests are failing because the file_size deosn't match (from client perspective I receive the file, but it's unplayable or an empty image).

Needs further investigation.

@leandrotoledo
Copy link
Copy Markdown
Member

@jh0ker LGTM, good to be merged/released.

jh0ker added a commit that referenced this pull request Jan 13, 2016
enable sending by URL for all sendX methods
@jh0ker jh0ker merged commit 70445dc into master Jan 13, 2016
@jh0ker jh0ker deleted the urls branch January 29, 2016 22:56
@github-actions github-actions bot locked and limited conversation to collaborators Aug 25, 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.

2 participants

X Tutup