mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-07 18:04:46 +08:00
chore: update project files
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
//go:build !omit_feishu
|
||||
|
||||
package channels
|
||||
|
||||
import (
|
||||
@@ -45,8 +43,6 @@ type FeishuChannel struct {
|
||||
tenantTokenErr error
|
||||
}
|
||||
|
||||
const feishuCompiled = true
|
||||
|
||||
func (c *FeishuChannel) SupportsAction(action string) bool {
|
||||
switch strings.ToLower(strings.TrimSpace(action)) {
|
||||
case "", "send":
|
||||
@@ -410,7 +406,6 @@ func (c *FeishuChannel) buildFeishuMediaOutbound(ctx context.Context, media stri
|
||||
return larkim.MsgTypeFile, string(b), nil
|
||||
}
|
||||
|
||||
|
||||
func readFeishuMedia(media string) (string, []byte, error) {
|
||||
if strings.HasPrefix(media, "http://") || strings.HasPrefix(media, "https://") {
|
||||
req, err := http.NewRequest(http.MethodGet, media, nil)
|
||||
|
||||
Reference in New Issue
Block a user