You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i use updates := bot.GetUpdatesChan(updateConfig) and loop update := range updates and i get only direct messages, how can i get messages users send in groups or channels?
The text was updated successfully, but these errors were encountered:
to get updates from channels use u := tgbotapi.NewUpdate(0) u.AllowedUpdates = []string{"channel_post"}
to access the messages in your for loop use update.ChannelPost
Hi, i use
updates := bot.GetUpdatesChan(updateConfig)
and loopupdate := range updates
and i get only direct messages, how can i get messages users send in groups or channels?The text was updated successfully, but these errors were encountered: