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

upload image with message reply #53

Open
ashcrok opened this issue Dec 14, 2017 · 2 comments
Open

upload image with message reply #53

ashcrok opened this issue Dec 14, 2017 · 2 comments

Comments

@ashcrok
Copy link

ashcrok commented Dec 14, 2017

Is there any way to attach an image (or a file in general) when replying to a message?

@SharathChandraSreenidhi
Copy link

SharathChandraSreenidhi commented Dec 14, 2017

In the plugins message.reply add image URL

@respond_to('hello$', re.IGNORECASE)
def hello_reply(message):
message.reply('Image url hello sender!')

@ashcrok ashcrok closed this as completed Dec 14, 2017
@ashcrok ashcrok reopened this Dec 14, 2017
@ashcrok
Copy link
Author

ashcrok commented Dec 14, 2017

Yes, that works fine. But I don't want to send the image as an URL, but as an attachment: file comes from local machine.

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

No branches or pull requests

2 participants