Skip to content

Instantly share code, notes, and snippets.

@AmarnathCJD
Created October 19, 2022 14:19
Show Gist options
  • Save AmarnathCJD/960a9da0fd63a196d32052e1c2fb5e6f to your computer and use it in GitHub Desktop.
Save AmarnathCJD/960a9da0fd63a196d32052e1c2fb5e6f to your computer and use it in GitHub Desktop.
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