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,8 +100,10 @@ func main() {
MessageId: msgId, MessageId: msgId,
}, },
InputMessageContent: &tdlib.InputMessagePhoto{ InputMessageContent: &tdlib.InputMessagePhoto{
Photo: &tdlib.InputFileLocal{ Photo: &tdlib.InputPhoto{
Path: "./Meru_01.png", Photo: &tdlib.InputFileLocal{
Path: "./Meru_01.png",
},
}, },
Caption: text, Caption: text,
}, },
@ -122,14 +124,18 @@ func main() {
}, },
InputMessageContents: []tdlib.InputMessageContent{ InputMessageContents: []tdlib.InputMessageContent{
&tdlib.InputMessagePhoto{ &tdlib.InputMessagePhoto{
Photo: &tdlib.InputFileLocal{ Photo: &tdlib.InputPhoto{
Path: "./Meru_01.png", Photo: &tdlib.InputFileLocal{
Path: "./Meru_01.png",
},
}, },
Caption: text, Caption: text,
}, },
&tdlib.InputMessagePhoto{ &tdlib.InputMessagePhoto{
Photo: &tdlib.InputFileLocal{ Photo: &tdlib.InputPhoto{
Path: "./Meru_02.png", Photo: &tdlib.InputFileLocal{
Path: "./Meru_02.png",
},
}, },
}, },
}, },