Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

allow to send files from commands and filters #35

Merged
merged 7 commits into from
Jul 19, 2020
Merged

allow to send files from commands and filters #35

merged 7 commits into from
Jul 19, 2020

Conversation

hpk42
Copy link
Member

@hpk42 hpk42 commented Jul 19, 2020

Fixes #17 -- command and filter functions now need to accept a "replies" object which now presents the only way to trigger replies.

replies.add() now accepts text, filename, bytefile and chat with most of the params being optional.

Note that if bytefile is a stream, then filename needs to be a "basename" which will be used as a suggested name -- the core will modify it but usually leave prefix and suffix the same.

@hpk42 hpk42 merged commit 175d967 into master Jul 19, 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.

New api can't reply with file
1 participant