And trying to respond with an image instead of "Hello, world!".
I want to use a local file on desktop, but i can seem to figure out any way. If i try something like :
class HelloBot(Bot):
async def dohello(self, : Message) -> str:
image_path = "./test_image/image.jpg"
await self.send_message(message, imagepath content_type="image/jpeg")
Or other "self.send_XXXX(anything)" it simply wont work.
Any ideas or tips, thanks in advance !
Hey, i'm a bit new to all this. Just trying to work with the basic hellobot.py
from forest.core import Bot, Message, run_bot
class HelloBot(Bot): async def dohello(self, : Message) -> str: return "Hello, world!"
if name == "main": run_bot(HelloBot)
And trying to respond with an image instead of "Hello, world!".
I want to use a local file on desktop, but i can seem to figure out any way. If i try something like : class HelloBot(Bot): async def dohello(self, : Message) -> str: image_path = "./test_image/image.jpg" await self.send_message(message, imagepath content_type="image/jpeg")
Or other "self.send_XXXX(anything)" it simply wont work. Any ideas or tips, thanks in advance !