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
code as follows,how can I get the photo file data here. I want to store the photo to path named xxx.jpg,thanks a lot
dispatcher.OnNewMessage(func(ctx context.Context, e tg.Entities, update *tg.UpdateNewMessage) error {
if msg,ok:=update.Message.(*tg.Message);ok{
switch media := update.Message.(*tg.Message).Media.(type) {
case *tg.MessageMediaPhoto:
//how can I get the photo file data here. I want to store the photo to path named xxx.jpg
}
}
}
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
-
code as follows,how can I get the photo file data here. I want to store the photo to path named xxx.jpg,thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions