commands and filters are only allowed to return an string, it is needed to allow to return file + text so the bot can reply with pictures, etc.
when implementing this, please allow to return a file-like object, don't force to a path because a file object gives much more flexibility (ex. to use a BytesIO object etc.)
commands and filters are only allowed to return an string, it is needed to allow to return file + text so the bot can reply with pictures, etc.
when implementing this, please allow to return a file-like object, don't force to a path because a file object gives much more flexibility (ex. to use a BytesIO object etc.)