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

Add images in coin and dice module #128

Closed
swapagarwal opened this issue Dec 4, 2016 · 2 comments
Closed

Add images in coin and dice module #128

swapagarwal opened this issue Dec 4, 2016 · 2 comments

Comments

@swapagarwal
Copy link
Owner

As pointed out in #114,
Instead of displaying text, we can show an image or a gif of a coin showing the result (heads/tails).
This can be used in the dice roll as well.
See the attachment template. Use the Image type.

@mahimg
Copy link

mahimg commented Dec 20, 2016

I was trying this out and could get this kind of output,
{"text": "heads", "quick_replies": [{"payload": "{"entities": null, "intent": "coin"}", "attachment": {"attachment": {"type": "Image", "payload": {"url": "http://coins.silvercoinstoday.com/wp-content/uploads/2010/10/America-the-Beautiful-Silver-Coin-Obverse.jpg"}}}, "content_type": "text", "title": "Flip again!"}]}

Is this fine, I am finding it difficult to test it on messenger, need some help with figuring out ACCESS_KEY.

@swapagarwal
Copy link
Owner Author

@mahim97, this is being worked on in #141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants