Lark SDK write by swift programming language
-
send message to Lark Group with a webhook which fetched from the custom bot that been added into Lark Group
-
-
text
-
post
-
image
-
share_chat
-
interactive
-
- add dependency
.package(url: "https://github.com/OrzGeeker/OrzLarkSDK.git", branch: "main")
- use the product on your target dependency
.product(name: "Message", package: "OrzLarkSDK")
- Construct a message and send it to the Lark Group with webhook url. The Lark Group should have a custom bot joined, so you can get the webhook url
import Message
try await Message.make.text("text message content").sendToLark(with: "<your_lark_group_custom_bot_webhook_url>")
- send other type message can reference: unit tests