Update example

This commit is contained in:
c0re100 2026-07-15 21:32:46 +08:00
parent a2c9f63bac
commit 4fb03a806a
No known key found for this signature in database
GPG key ID: 7C3B3004FE745AAF

View file

@ -100,9 +100,11 @@ func main() {
MessageId: msgId, MessageId: msgId,
}, },
InputMessageContent: &tdlib.InputMessagePhoto{ InputMessageContent: &tdlib.InputMessagePhoto{
Photo: &tdlib.InputPhoto{
Photo: &tdlib.InputFileLocal{ Photo: &tdlib.InputFileLocal{
Path: "./Meru_01.png", Path: "./Meru_01.png",
}, },
},
Caption: text, Caption: text,
}, },
}) })
@ -122,17 +124,21 @@ func main() {
}, },
InputMessageContents: []tdlib.InputMessageContent{ InputMessageContents: []tdlib.InputMessageContent{
&tdlib.InputMessagePhoto{ &tdlib.InputMessagePhoto{
Photo: &tdlib.InputPhoto{
Photo: &tdlib.InputFileLocal{ Photo: &tdlib.InputFileLocal{
Path: "./Meru_01.png", Path: "./Meru_01.png",
}, },
},
Caption: text, Caption: text,
}, },
&tdlib.InputMessagePhoto{ &tdlib.InputMessagePhoto{
Photo: &tdlib.InputPhoto{
Photo: &tdlib.InputFileLocal{ Photo: &tdlib.InputFileLocal{
Path: "./Meru_02.png", Path: "./Meru_02.png",
}, },
}, },
}, },
},
}) })
if err != nil { if err != nil {
continue continue