From 4fb03a806a83610077cd135c8d1569b23c367064 Mon Sep 17 00:00:00 2001 From: c0re100 Date: Wed, 15 Jul 2026 21:32:46 +0800 Subject: [PATCH] Update example --- example/media/Photo_or_Album.go | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/example/media/Photo_or_Album.go b/example/media/Photo_or_Album.go index f69fbe3..8371943 100644 --- a/example/media/Photo_or_Album.go +++ b/example/media/Photo_or_Album.go @@ -100,8 +100,10 @@ func main() { MessageId: msgId, }, InputMessageContent: &tdlib.InputMessagePhoto{ - Photo: &tdlib.InputFileLocal{ - Path: "./Meru_01.png", + Photo: &tdlib.InputPhoto{ + Photo: &tdlib.InputFileLocal{ + Path: "./Meru_01.png", + }, }, Caption: text, }, @@ -122,14 +124,18 @@ func main() { }, InputMessageContents: []tdlib.InputMessageContent{ &tdlib.InputMessagePhoto{ - Photo: &tdlib.InputFileLocal{ - Path: "./Meru_01.png", + Photo: &tdlib.InputPhoto{ + Photo: &tdlib.InputFileLocal{ + Path: "./Meru_01.png", + }, }, Caption: text, }, &tdlib.InputMessagePhoto{ - Photo: &tdlib.InputFileLocal{ - Path: "./Meru_02.png", + Photo: &tdlib.InputPhoto{ + Photo: &tdlib.InputFileLocal{ + Path: "./Meru_02.png", + }, }, }, },