Created
October 19, 2022 14:19
-
-
Save AmarnathCJD/960a9da0fd63a196d32052e1c2fb5e6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func sTest(m *telegram.NewMessage) error { | |
f := []string{ | |
"NF81XzYyMzMzOTIxODI1MDY1NTU2NDZfLTc0NTM1Njk4NTgwOTUzMTI0NDc", | |
"NF81XzYyMzMzOTIxODI1MDY1NTU2NDdfMjE2NDQwODI0MzIxMTQ0MTI1OQ", | |
} | |
var med []telegram.MessageMedia | |
for _, v := range f { | |
vx, _ := telegram.ResolveBotFileID(v) | |
med = append(med, vx) | |
} | |
_, err := m.Client.SendAlbum(m.ChatID(), med, &telegram.MediaOptions{NoForwards: true}) | |
return err | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment