This bot integrates with Feishu/Lark and generates images utilizing the Image Creator from Microsoft Bing service.
To make your bot accessible online, you can leverage services like ngrok or Cloudflare Tunnel.
go build .
lark_event_server_addr
as needed:
cp config.example.json config.json
is_feishu
to false
../lark-dalle3-bot
This step ensures that the server is reachable when setting up event subscriptions soon.
Add features
, activate the Bot
feature.Permissions & Scopes
, add the following API Scopes
:
im:message
im:resource
im:message.group_at_msg:readonly
im:message.p2p_msg:readonly
Event Subscriptions
:
Request URL
with http(s)://<your domain>:<your port>/dalle3
.im.message.receive_v1
event.Obtain private messages sent to the bot
Obtain group messages mentioning the bot
Version Management & Release
tab.For Lark users, please visit Lark Open Platform.
From the Feishu/Lark Open Platform:
App ID
and App Secret
from menuCredentials & Basic Info
.Encrypt Key
and Verification Token
from menuEvent Subscriptions
.From Bing:
Only for Lark users, please set is_feishu
to false
in config file.
Update your config.json
with these credentials, then rerun your bot and enjoy the magic.
Translated by GPT4.
If you use this project for services open to the public in China, you are required to comply with the relevant laws and regulations, and you may need to obtain the necessary permits or complete relevant procedures. This project is only for technical communication and does not assume responsibility for any legal risks that may arise during your use.