// OnPhoto handle sending a photo
OnPhoto handle sending a photo
// OnPhoto handle sending a photo
func (s *Scene) OnPhoto(ef EventFn, mw ...Middleware) {
	ef = applyMiddleware(ef, append(s.middlewares, mw...)...)
	s.events = append(s.events, func(ctx Context) bool {
		m := ctx.Message()
		if m == nil || len(m.Photo) == 0 {
			return false
		}
		ef(ctx)
		return true
	})
}
func ( s * Scene ) OnPhoto ( ef EventFn , mw ... Middleware ) { ef = applyMiddleware ( ef , append ( s . middlewares , mw ... ) ... ) s . events = append ( s . events , func ( ctx Context ) bool { m := ctx . Message ( ) if m == nil || len ( m . Photo ) == 0 { return false } ef ( ctx ) return true } ) }
OnPhoto handle sending a photo
OnPhoto handle sending a photo