Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Builder support for audio and video upload #1564

Merged
merged 1 commit into from
Dec 30, 2017

Conversation

tanquetav
Copy link
Contributor

Trying to upload an audio or video from cli interface, I got
entity = DownloadableMediaMessageProtocolEntity.fromFilePath(fpath, url, DownloadableMediaMessageProtocolEntity.MEDIA_TYPE_AUDIO, ip, to, mimeType, preview)
AttributeError: type object 'DownloadableMediaMessageProtocolEntity' has no attribute 'fromFilePath'

I rewrite both to use builder, similar with the image class

@ghost
Copy link

ghost commented Sep 4, 2016

Thanks... it worked nicely

Copy link

@dargmuesli dargmuesli left a comment

Choose a reason for hiding this comment

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

Vote for caption implementation.

builder = VideoDownloadableMediaMessageProtocolEntity.getBuilder(to, path)
builder.set("url", url)
builder.set("ip", ip)
#builder.set("caption", caption)

Choose a reason for hiding this comment

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

How can this be implemented? #1689

Choose a reason for hiding this comment

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

Thank you!!!
Totally worked for me!!!

@tgalal tgalal merged commit e870d7d into tgalal:develop Dec 30, 2017
@tgalal tgalal mentioned this pull request Dec 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants