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
My goal is to create a bot that will handle received MediaGroup messages from user and forward the same data to the channel AS IS. It will act like echo bot, but bot should handle multiple photos,videos and caption in one message for forwarding.
The main struggle is to fill in requirements of function tgbotapi.NewMediaGroup(chatID, files []interface{}) based on received message from user. How to do that? After the files collected I know that I can use bot.SendMediaGroup(config tgbotapi.MediaGroupConfig). But I'm new to Go and need help to make it work together.
Just in case, when bot.SendMessage() is used, messages are being sent one by one in case if MediaGroup is received.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My goal is to create a bot that will handle received MediaGroup messages from user and forward the same data to the channel AS IS. It will act like echo bot, but bot should handle multiple photos,videos and caption in one message for forwarding.
The main struggle is to fill in requirements of function
tgbotapi.NewMediaGroup(chatID, files []interface{})
based on received message from user. How to do that? After the files collected I know that I can usebot.SendMediaGroup(config tgbotapi.MediaGroupConfig)
. But I'm new to Go and need help to make it work together.Just in case, when
bot.SendMessage()
is used, messages are being sent one by one in case if MediaGroup is received.Thanks
Beta Was this translation helpful? Give feedback.
All reactions