PoshBot currently supports custom text responses via New-PoshBotTextResponse and New-PoshBotCardResponse. These send custom object types back in the output stream so PoshBot can detect them and handle the custom formatting of the response. It would be nice if PoshBot was able to be told to upload a file without the plugin author needing to handle the particulars for the current backend.
Proposed Command
New-PoshBotFileUpload would be given a path to a file and send that information back to PoshBot. When PoshBot processes the response from the command, it would detect this custom response object, read in the file, and send to the backend for upload.
PoshBot currently supports custom text responses via
New-PoshBotTextResponse
andNew-PoshBotCardResponse
. These send custom object types back in the output stream so PoshBot can detect them and handle the custom formatting of the response. It would be nice if PoshBot was able to be told to upload a file without the plugin author needing to handle the particulars for the current backend.Proposed Command
New-PoshBotFileUpload
would be given a path to a file and send that information back to PoshBot. When PoshBot processes the response from the command, it would detect this custom response object, read in the file, and send to the backend for upload.Example Usage